public class CreateSnapshotGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the snapshot-consistent group.
|
List<String> |
diskId
The ID of cloud disk N for which you want to create snapshots.
|
List<String> |
excludeDiskId
The ID of cloud disk N for which you do not want to create snapshots.
|
String |
instanceId
The instance ID.
|
Boolean |
instantAccess
Specifies whether to enable the instant access feature.
|
Integer |
instantAccessRetentionDays
The number of days for which the instant access feature is available.
|
String |
name
The name of the snapshot-consistent group.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
String |
resourceGroupId
The ID of the resource group to which the snapshot-consistent group belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
storageLocationArn
This parameter is unavailable for public use.
|
List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> |
tag
The list of tags.
|
构造器和说明 |
---|
CreateSnapshotGroupRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
This is description.
@NameInMap(value="DiskId") public List<String> diskId
The ID of cloud disk N for which you want to create snapshots. You can specify multiple cloud disk IDs across instances within the same zone. Valid values of N: 1 to 16. A single snapshot-consistent group can contain snapshots of up to 16 cloud disks whose total disk size does not exceed 32 TiB.
Take note of the following items:
ExcludeDiskId.N
in the same request.InstanceId
is set, you can use DiskId.N to specify only cloud disks attached to the instance specified by InstanceId, and you cannot use DiskId.N to specify cloud disks attached to multiple instances.@NameInMap(value="ExcludeDiskId") public List<String> excludeDiskId
The ID of cloud disk N for which you do not want to create snapshots. If this parameter is specified, the created snapshot-consistent group does not contain snapshots of the cloud disk. Valid values of N: 1 to 16.
This parameter is empty by default, which indicates that snapshots are created for all the disks of the instance.
example:You cannot specify ExcludeDiskId.N and
DiskId.N
in the same request.
d-j6cf7l0ewidb78lq****
@NameInMap(value="InstanceId") public String instanceId
The instance ID.
example:i-j6ca469urv8ei629****
@NameInMap(value="InstantAccess") public Boolean instantAccess
Specifies whether to enable the instant access feature. Valid values:
Default value: false.
example:This parameter is no longer used. By default, new standard snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.
false
@NameInMap(value="InstantAccessRetentionDays") public Integer instantAccessRetentionDays
The number of days for which the instant access feature is available. Unit: days. Valid values: 1 to 65535.
This parameter takes effect only when InstantAccess
is set to true. The instant access feature is automatically disabled when the specified duration ends.
This parameter is left empty by default, which indicates that the instant access feature is automatically disabled when the instant access snapshots are released.
example:This parameter is no longer used. By default, new standard snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.
1
@NameInMap(value="Name") public String name
The name of the snapshot-consistent group. The name must be 2 to 128 characters in length. The name can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:). It must start with a letter and cannot start with http://
or https://
.
testName
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. You can call the DescribeRegions operation to query the most recent list of regions.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the snapshot-consistent group belongs.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StorageLocationArn") public String storageLocationArn
example:This parameter is unavailable for public use.
null
@NameInMap(value="Tag") public List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> tag
The list of tags.
public static CreateSnapshotGroupRequest build(Map<String,?> map) throws Exception
Exception
public CreateSnapshotGroupRequest setClientToken(String clientToken)
public String getClientToken()
public CreateSnapshotGroupRequest setDescription(String description)
public String getDescription()
public CreateSnapshotGroupRequest setDiskId(List<String> diskId)
public CreateSnapshotGroupRequest setExcludeDiskId(List<String> excludeDiskId)
public CreateSnapshotGroupRequest setInstanceId(String instanceId)
public String getInstanceId()
public CreateSnapshotGroupRequest setInstantAccess(Boolean instantAccess)
public Boolean getInstantAccess()
public CreateSnapshotGroupRequest setInstantAccessRetentionDays(Integer instantAccessRetentionDays)
public Integer getInstantAccessRetentionDays()
public CreateSnapshotGroupRequest setName(String name)
public String getName()
public CreateSnapshotGroupRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateSnapshotGroupRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSnapshotGroupRequest setRegionId(String regionId)
public String getRegionId()
public CreateSnapshotGroupRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSnapshotGroupRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSnapshotGroupRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSnapshotGroupRequest setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public CreateSnapshotGroupRequest setTag(List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> tag)
public List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> getTag()
Copyright © 2024. All rights reserved.