public class DescribeDisksRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeDisksRequest.DescribeDisksRequestFilter |
static class |
DescribeDisksRequest.DescribeDisksRequestTag |
限定符和类型 | 字段和说明 |
---|---|
List<String> |
additionalAttributes
The attribute value.
|
String |
autoSnapshotPolicyId
The ID of the automatic snapshot policy that is applied to the cloud disk.
|
String |
category
The category of the disk.
|
Boolean |
deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the cloud disk after the disk is released.
|
Boolean |
deleteWithInstance
Specifies whether the disk is released when the associated instance is released.
|
String |
diskChargeType
The billing method of the disk.
|
String |
diskIds
The IDs of cloud disks, local disks, or elastic ephemeral disks.
|
String |
diskName
The name of the disk.
|
String |
diskType
The type of the disk.
|
Boolean |
dryRun
Specifies whether to perform only a dry run without performing the actual request.
|
Boolean |
enableAutomatedSnapshotPolicy
Specifies whether an automatic snapshot policy is applied to the cloud disk.
|
Boolean |
enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the cloud disk.
|
Boolean |
enableShared
Specifies whether the disk is a Shared Block Storage device.
|
Boolean |
encrypted
Specifies whether to query only encrypted cloud disks.
|
List<DescribeDisksRequest.DescribeDisksRequestFilter> |
filter |
String |
instanceId
The ID of the Elastic Compute Service (ECS) instance to which the disk is attached.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key that is used by the cloud disk.
|
String |
lockReason
The reason why the disk is locked.
|
Integer |
maxResults
The maximum number of entries per page.
|
String |
multiAttach
Specifies whether the multi-attach feature is enabled for the disk.
|
String |
nextToken
The query token.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries to return per page.
|
Boolean |
portable
Specifies whether the disk is removable.
|
String |
regionId
The region ID of the disk.
|
String |
resourceGroupId
The ID of the resource group to which the disk belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
snapshotId
The ID of the snapshot from which you create the cloud disk.
|
String |
status
The status of the disk.
|
List<DescribeDisksRequest.DescribeDisksRequestTag> |
tag
The tags of the disk.
|
String |
zoneId
The zone ID.
|
构造器和说明 |
---|
DescribeDisksRequest() |
@NameInMap(value="Filter") public List<DescribeDisksRequest.DescribeDisksRequestFilter> filter
@NameInMap(value="AdditionalAttributes") public List<String> additionalAttributes
The attribute value. Set the value to IOPS, which indicates the maximum IOPS of the disk.
example:IOPS
@NameInMap(value="AutoSnapshotPolicyId") public String autoSnapshotPolicyId
The ID of the automatic snapshot policy that is applied to the cloud disk.
example:sp-m5e2w2jutw8bv31****
@NameInMap(value="Category") public String category
The category of the disk. Valid values:
Default value: all.
example:all
@NameInMap(value="DeleteAutoSnapshot") public Boolean deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the cloud disk after the disk is released.
Default value: false
example:false
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether the disk is released when the associated instance is released. Valid values:
Default value: false.
example:false
@NameInMap(value="DiskChargeType") public String diskChargeType
The billing method of the disk. Valid values:
PostPaid
@NameInMap(value="DiskIds") public String diskIds
The IDs of cloud disks, local disks, or elastic ephemeral disks. The value is a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,).
example:["d-bp67acfmxazb4p****", "d-bp67acfmxazb4g****", … "d-bp67acfmxazb4d****"]
@NameInMap(value="DiskName") public String diskName
The name of the disk. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
example:testDiskName
@NameInMap(value="DiskType") public String diskType
The type of the disk. Valid values:
Default value: all.
example:Elastic ephemeral disks cannot be used as system disks.
all
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run without performing the actual request. Valid values:
DryRunOperation
error code is returned.Default value: false
example:false
@NameInMap(value="EnableAutoSnapshot") public Boolean enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the cloud disk.
example:By default, the automatic snapshot policy feature is enabled for cloud disks that are already created. Additionally, only the automatic snapshot policy needs to be applied to a cloud disk before you can use the automatic snapshot policy.
true
@NameInMap(value="EnableAutomatedSnapshotPolicy") public Boolean enableAutomatedSnapshotPolicy
Specifies whether an automatic snapshot policy is applied to the cloud disk.
Default value: false
example:false
@NameInMap(value="EnableShared") public Boolean enableShared
Specifies whether the disk is a Shared Block Storage device.
example:false
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to query only encrypted cloud disks.
Default value: false
example:false
@NameInMap(value="InstanceId") public String instanceId
The ID of the Elastic Compute Service (ECS) instance to which the disk is attached.
example:i-bp67acfmxazb4q****
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key that is used by the cloud disk.
example:0e478b7a-4262-4802-b8cb-00d3fb40****
@NameInMap(value="LockReason") public String lockReason
The reason why the disk is locked. Valid values:
recycling
@NameInMap(value="MaxResults") public Integer maxResults
The maximum number of entries per page. Valid values: 10 to 500.
Default value:
50
@NameInMap(value="MultiAttach") public String multiAttach
Specifies whether the multi-attach feature is enabled for the disk. Valid values:
The multi-attach feature is available to select users. To use this feature, submit a ticket.
example:Disabled
@NameInMap(value="NextToken") public String nextToken
The query token. Set the value to the NextToken
value that was returned in the last call to this operation.
For more information about how to check the responses returned by this operation, see the preceding "Description" section.
example:AAAAAdDWBF2****
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PageNumber") public Integer pageNumber
The page number.
Pages start from page 1.
Default value: 1.
example:1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries to return per page.
Maximum value: 100.
Default value: 10.
example:10
@NameInMap(value="Portable") public Boolean portable
Specifies whether the disk is removable. Valid values:
The Portable
attribute of the following types of disks is false
, and these types of disks share the same lifecycle with their associated instances:
false
@NameInMap(value="RegionId") public String regionId
The region ID of the disk. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the disk belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
example:Resources in the default resource group are displayed in the response regardless of the value specified for this parameter.
rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot from which you create the cloud disk.
example:s-bp67acfmxazb4p****
@NameInMap(value="Status") public String status
The status of the disk. For more information, see Disk states. Valid values:
Default value: All.
example:All
@NameInMap(value="Tag") public List<DescribeDisksRequest.DescribeDisksRequestTag> tag
The tags of the disk.
@NameInMap(value="ZoneId") public String zoneId
The zone ID.
example:cn-hangzhou-g
public static DescribeDisksRequest build(Map<String,?> map) throws Exception
Exception
public DescribeDisksRequest setFilter(List<DescribeDisksRequest.DescribeDisksRequestFilter> filter)
public List<DescribeDisksRequest.DescribeDisksRequestFilter> getFilter()
public DescribeDisksRequest setAdditionalAttributes(List<String> additionalAttributes)
public DescribeDisksRequest setAutoSnapshotPolicyId(String autoSnapshotPolicyId)
public String getAutoSnapshotPolicyId()
public DescribeDisksRequest setCategory(String category)
public String getCategory()
public DescribeDisksRequest setDeleteAutoSnapshot(Boolean deleteAutoSnapshot)
public Boolean getDeleteAutoSnapshot()
public DescribeDisksRequest setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public DescribeDisksRequest setDiskChargeType(String diskChargeType)
public String getDiskChargeType()
public DescribeDisksRequest setDiskIds(String diskIds)
public String getDiskIds()
public DescribeDisksRequest setDiskName(String diskName)
public String getDiskName()
public DescribeDisksRequest setDiskType(String diskType)
public String getDiskType()
public DescribeDisksRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public DescribeDisksRequest setEnableAutoSnapshot(Boolean enableAutoSnapshot)
public Boolean getEnableAutoSnapshot()
public DescribeDisksRequest setEnableAutomatedSnapshotPolicy(Boolean enableAutomatedSnapshotPolicy)
public Boolean getEnableAutomatedSnapshotPolicy()
public DescribeDisksRequest setEnableShared(Boolean enableShared)
public Boolean getEnableShared()
public DescribeDisksRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public DescribeDisksRequest setInstanceId(String instanceId)
public String getInstanceId()
public DescribeDisksRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public DescribeDisksRequest setLockReason(String lockReason)
public String getLockReason()
public DescribeDisksRequest setMaxResults(Integer maxResults)
public Integer getMaxResults()
public DescribeDisksRequest setMultiAttach(String multiAttach)
public String getMultiAttach()
public DescribeDisksRequest setNextToken(String nextToken)
public String getNextToken()
public DescribeDisksRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeDisksRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeDisksRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeDisksRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeDisksRequest setPortable(Boolean portable)
public Boolean getPortable()
public DescribeDisksRequest setRegionId(String regionId)
public String getRegionId()
public DescribeDisksRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public DescribeDisksRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeDisksRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeDisksRequest setSnapshotId(String snapshotId)
public String getSnapshotId()
public DescribeDisksRequest setStatus(String status)
public String getStatus()
public DescribeDisksRequest setTag(List<DescribeDisksRequest.DescribeDisksRequestTag> tag)
public List<DescribeDisksRequest.DescribeDisksRequestTag> getTag()
public DescribeDisksRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.