public class DescribeDisksRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeDisksRequest.DescribeDisksRequestFilter |
static class |
DescribeDisksRequest.DescribeDisksRequestTag |
限定符和类型 | 字段和说明 |
---|---|
List<String> |
additionalAttributes
The values of attributes.
|
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 when the disk is released.
|
Boolean |
deleteWithInstance
Specifies whether to release the cloud disk when its associated instance is released.
|
String |
diskChargeType
The billing method of the disk.
|
String |
diskIds
The IDs of disks.
|
String |
diskName
The name of the disk.
|
String |
diskType
The type of the disk.
|
Boolean |
dryRun
Specifies whether to check the validity of the request without actually making the request.
|
Boolean |
enableAutomatedSnapshotPolicy
Specifies whether an automatic snapshot policy is applied to the cloud disk.
|
Boolean |
enableAutoSnapshot
Specifies whether the automatic snapshot policy feature is enabled 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 instance to which the disk is attached.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key used by the cloud disk.
|
String |
lockReason
The reason why the disk is locked.
|
Integer |
maxResults
The maximum number of entries to return on each 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 number of the page to return.
|
Integer |
pageSize
The number of entries to return on each 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 that was used to create the cloud disk.
|
String |
status
The state of the cloud disk.
|
List<DescribeDisksRequest.DescribeDisksRequestTag> |
tag
The tags.
|
String |
zoneId
The zone ID of the disk.
|
构造器和说明 |
---|
DescribeDisksRequest() |
@NameInMap(value="Filter") public List<DescribeDisksRequest.DescribeDisksRequestFilter> filter
@NameInMap(value="AdditionalAttributes") public List<String> additionalAttributes
The values of attributes.
@NameInMap(value="AutoSnapshotPolicyId") public String autoSnapshotPolicyId
The ID of the automatic snapshot policy that is applied to the cloud disk.
@NameInMap(value="Category") public String category
The category of the disk. Valid values:
* all: all disk categories
* cloud: basic disk
* cloud_efficiency: ultra disk
* cloud_ssd: standard SSD
* cloud_essd: enhanced SSD (ESSD)
* local\_ssd_pro: I/O-intensive local disk
* local\_hdd_pro: throughput-intensive local disk
* ephemeral: retired local disk
* ephemeral_ssd: retired local SSD
Default value: all.
@NameInMap(value="DeleteAutoSnapshot") public Boolean deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the cloud disk when the disk is released.
* true: The automatic snapshots of the cloud disk are deleted when the disk is released.
* false: The automatic snapshots of the cloud disk are not deleted when the disk is released.
Default value: false.
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release the cloud disk when its associated instance is released. Valid values:
* true: The cloud disk is released when its associated instance is released.
* false: The cloud disk is not released but is retained as a pay-as-you-go data disk when its associated instance is released.
Default value: false.
@NameInMap(value="DiskChargeType") public String diskChargeType
The billing method of the disk. Valid values:
* PrePaid: subscription
* PostPaid: pay-as-you-go
@NameInMap(value="DiskIds") public String diskIds
The IDs of disks. The value is a JSON array that consists of up to 100 disk IDs. Separate the disk IDs with commas (,).
@NameInMap(value="DiskName") public String diskName
The name of the disk.
@NameInMap(value="DiskType") public String diskType
The type of the disk. Valid values:
* all: system disk and data disk
* system: system disk
* data: data disk
Default value: all.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to check the validity of the request without actually making the request. Valid values:
* true: The validity of the request is checked but the request is not made. Check items include whether your AccessKey pair is valid, whether Resource Access Management (RAM) users are granted required permissions, and whether the required parameters are specified. If the check fails, the corresponding error is returned. If the check succeeds, the `DryRunOperation` error code is returned.
* false: The validity of the request is checked. If the check succeeds, a 2XX HTTP status code is returned, and the request is made.
Default value: false.
@NameInMap(value="EnableAutoSnapshot") public Boolean enableAutoSnapshot
Specifies whether the automatic snapshot policy feature is enabled for the cloud disk.
* true: The automatic snapshot policy feature is enabled for the cloud disk.
* false: The automatic snapshot policy feature is not enabled for the cloud disk.
> By default, the automatic snapshot policy feature is enabled for created cloud disks. You only need to apply an automatic snapshot policy to a cloud disk before you can use the automatic snapshot policy.
@NameInMap(value="EnableAutomatedSnapshotPolicy") public Boolean enableAutomatedSnapshotPolicy
Specifies whether an automatic snapshot policy is applied to the cloud disk.
* true: An automatic snapshot policy is applied to the cloud disk.
* false: No automatic snapshot policy is applied to the cloud disk.
Default value: false.
@NameInMap(value="EnableShared") public Boolean enableShared
Specifies whether the disk is a Shared Block Storage device.
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to query only encrypted cloud disks.
* true: queries only encrypted cloud disks.
* false: does not query encrypted cloud disks.
Default value: false.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance to which the disk is attached.
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key used by the cloud disk.
@NameInMap(value="LockReason") public String lockReason
The reason why the disk is locked. Valid values:
* financial: The disk is locked due to overdue payments.
* security: The disk is locked due to security reasons.
* recycling: The preemptible instance is locked and pending release.
* dedicatedhostfinancial: The instance is locked due to overdue payments for the dedicated host.
@NameInMap(value="MaxResults") public Integer maxResults
The maximum number of entries to return on each page. Valid values: 1 to 500.
Default value:
* If this parameter is not specified or is set to a value smaller than 10, the default value is 10.
* If this parameter is set to a value greater than 500, the default value is 500.
@NameInMap(value="MultiAttach") public String multiAttach
Specifies whether the multi-attach feature is enabled for the disk. Valid values:
* Disabled: The multi-attach feature is not enabled for the disk.
* Enabled: The multi-attach feature is enabled for the disk.
* LegacyShared: Shared Block Storage devices are queried.
The multi-attach feature is in invitational preview. To use this feature, [submit a ticket](https://workorder-intl.console.aliyun.com/console.htm#/ticket/list).
@NameInMap(value="NextToken") public String nextToken
The query token. Set the value to the `NextToken` value returned in the last call to the Describedisks operation.
For more information about how to check the responses returned by this operation, see the preceding "Description" section.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PageNumber") public Integer pageNumber
The number of the page to return.
Page start from page 1.
Default value: 1.
@NameInMap(value="PageSize") public Integer pageSize
The number of entries to return on each page.
Maximum value: 100
Default value: 10.
@NameInMap(value="Portable") public Boolean portable
Specifies whether the disk is removable. Valid values:
* true: The disk is removable. A removable disk can independently exist and can be attached to or detached from an instance within the same zone.
* false: The disk is not removable. A disk that is not removable cannot independently exist or be attached to or detached from an instance within the same zone.
The `Portable` attribute of the following disks is `false`, and these disks share the same lifecycle with their associated instances:
* Local disks
* Local SSDs
* Subscription data disks
@NameInMap(value="RegionId") public String regionId
The region ID of the disk. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@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.
> Resources in the default resource group are displayed in the response regardless of how this parameter is set.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot that was used to create the cloud disk.
@NameInMap(value="Status") public String status
The state of the cloud disk. For more information, see [Disk states](~~25689~~). Valid values:
* In_use
* Available
* Attaching
* Detaching
* Creating
* ReIniting
* All
Default value: All.
@NameInMap(value="Tag") public List<DescribeDisksRequest.DescribeDisksRequestTag> tag
The tags.
@NameInMap(value="ZoneId") public String zoneId
The zone ID of the disk.
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 © 2023. All rights reserved.