public class DescribeSnapshotsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter |
static class |
DescribeSnapshotsRequest.DescribeSnapshotsRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
category
The type of the snapshot.
|
String |
diskId
The ID of the disk.
|
Boolean |
dryRun
Specifies whether to perform a dry run.
|
Boolean |
encrypted
Specifies whether the snapshot is encrypted.
|
List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> |
filter |
String |
instanceId
The ID of the instance.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the data disk.
|
Integer |
maxResults
The maximum number of entries to return on each page.
|
String |
nextToken
The token used to start the query.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
pageNumber
The number of the page to return.
|
Integer |
pageSize
The number of entries to return on each page.
|
String |
regionId
The region ID of the disk.
|
String |
resourceGroupId
The ID of the resource group to which the snapshot belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
snapshotIds
The IDs of snapshots.
|
String |
snapshotLinkId
The ID of the snapshot chain.
|
String |
snapshotName
The name of the snapshot.
|
String |
snapshotType
The type of the snapshot.
|
String |
sourceDiskType
The type of the source disk for which the snapshot was created.
|
String |
status
The state of the snapshot.
|
List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> |
tag
The tags of the snapshot.
|
String |
usage
Specifies whether the snapshot has been used to create custom images or disks.
|
构造器和说明 |
---|
DescribeSnapshotsRequest() |
@NameInMap(value="Filter") public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> filter
@NameInMap(value="Category") public String category
The type of the snapshot. Valid values:
* Standard: normal snapshot
* Flash: local snapshot
The local snapshot feature is replaced by the instant access feature. When you specify this parameter, take note of the following items:
* If you have used local snapshots before December 14, 2020, you can use this parameter.
* If you have not used local snapshots before December 14, 2020, you cannot use this parameter.
For more information, see [Snapshot service upgrade and addition of a new billable item on December 14, 2020](https://help.aliyun.com/noticelist/articleid/1060755542.html).
> This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
@NameInMap(value="DiskId") public String diskId
The ID of the disk.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run. Default value: false. Valid values:
* true: performs a dry run. The system checks your AccessKey pair, the permissions of the RAM user, and the required parameters. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned.
* false: performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether the snapshot is encrypted. Default value: false.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the data disk.
@NameInMap(value="MaxResults") public Integer maxResults
The maximum number of entries to return on each page. Maximum value: 100.
Default value: 10.
@NameInMap(value="NextToken") public String nextToken
The token used to start the query. Set the value to the NextToken value obtained from the response to the previous request.
@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. Pages 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="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 snapshot 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="SnapshotIds") public String snapshotIds
The IDs of snapshots. The value can be a JSON array that consists of up to 100 snapshot IDs. Separate the snapshot IDs with commas (,).
@NameInMap(value="SnapshotLinkId") public String snapshotLinkId
The ID of the snapshot chain. The value is a JSON array that consists of up to 100 snapshot chain IDs. Separate the snapshot chain IDs with commas (,).
@NameInMap(value="SnapshotName") public String snapshotName
The name of the snapshot.
@NameInMap(value="SnapshotType") public String snapshotType
The type of the snapshot. Valid values:
* auto: automatic snapshot
* user: manual snapshot
* all: This parameter indicates all snapshot types.
@NameInMap(value="SourceDiskType") public String sourceDiskType
The type of the source disk for which the snapshot was created. Valid values:
* System: system disk
* data: data disk
> The value of this parameter is case-insensitive.
@NameInMap(value="Status") public String status
The state of the snapshot. Default value: all. Valid values:
* progressing: The snapshot is being created.
* accomplished: The snapshot is created.
* failed: The snapshot fails to be created.
* all: This parameter indicates all snapshot states.
@NameInMap(value="Tag") public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> tag
The tags of the snapshot.
@NameInMap(value="Usage") public String usage
Specifies whether the snapshot has been used to create custom images or disks. Valid values:
* image: The snapshot has been used to create custom images.
* disk: The snapshot is used to create disks.
* image_disk: The snapshot has been used to create both custom images and data disks.
* none: The snapshot has not been used to create custom images or disks.
public static DescribeSnapshotsRequest build(Map<String,?> map) throws Exception
Exception
public DescribeSnapshotsRequest setFilter(List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> filter)
public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> getFilter()
public DescribeSnapshotsRequest setCategory(String category)
public String getCategory()
public DescribeSnapshotsRequest setDiskId(String diskId)
public String getDiskId()
public DescribeSnapshotsRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public DescribeSnapshotsRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public DescribeSnapshotsRequest setInstanceId(String instanceId)
public String getInstanceId()
public DescribeSnapshotsRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public DescribeSnapshotsRequest setMaxResults(Integer maxResults)
public Integer getMaxResults()
public DescribeSnapshotsRequest setNextToken(String nextToken)
public String getNextToken()
public DescribeSnapshotsRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeSnapshotsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeSnapshotsRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeSnapshotsRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeSnapshotsRequest setRegionId(String regionId)
public String getRegionId()
public DescribeSnapshotsRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public DescribeSnapshotsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeSnapshotsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeSnapshotsRequest setSnapshotIds(String snapshotIds)
public String getSnapshotIds()
public DescribeSnapshotsRequest setSnapshotLinkId(String snapshotLinkId)
public String getSnapshotLinkId()
public DescribeSnapshotsRequest setSnapshotName(String snapshotName)
public String getSnapshotName()
public DescribeSnapshotsRequest setSnapshotType(String snapshotType)
public String getSnapshotType()
public DescribeSnapshotsRequest setSourceDiskType(String sourceDiskType)
public String getSourceDiskType()
public DescribeSnapshotsRequest setStatus(String status)
public String getStatus()
public DescribeSnapshotsRequest setTag(List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> tag)
public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> getTag()
public DescribeSnapshotsRequest setUsage(String usage)
public String getUsage()
Copyright © 2023. All rights reserved.