public class CreateDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateDiskRequest.CreateDiskRequestArn |
static class |
CreateDiskRequest.CreateDiskRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
advancedFeatures
This parameter is not publicly available.
|
List<CreateDiskRequest.CreateDiskRequestArn> |
arn
This parameter is not publicly available.
|
Boolean |
burstingEnabled
Specifies whether to enable the performance burst feature.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the disk.
|
String |
diskCategory
The category of the data disk.
|
String |
diskName
The name of the disk.
|
String |
encryptAlgorithm
This parameter is not publicly available.
|
Boolean |
encrypted
Specifies whether to encrypt the disk.
|
String |
instanceId
The ID of the subscription instance to which to attach the subscription disk.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the disk.
|
String |
multiAttach
Specifies whether to enable the multi-attach feature for the disk.
|
String |
ownerAccount |
Long |
ownerId |
String |
performanceLevel
The performance level of the disk if the disk is an ESSD.
|
Long |
provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk.
|
String |
regionId
The ID of the region in which to create the disk.
|
String |
resourceGroupId
The ID of the resource group to which to add the disk.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
size
The size of the disk.
|
String |
snapshotId
The ID of the snapshot to use to create the disk.
|
String |
storageClusterId
The ID of the dedicated block storage cluster in which to create the disk.
|
String |
storageSetId
The ID of the storage set.
|
Integer |
storageSetPartitionNumber
The number of partitions in the storage set.
|
List<CreateDiskRequest.CreateDiskRequestTag> |
tag
The tags to add to the disk.
|
String |
zoneId
The ID of the zone in which to create the pay-as-you-go disk.
|
构造器和说明 |
---|
CreateDiskRequest() |
@NameInMap(value="AdvancedFeatures") public String advancedFeatures
This parameter is not publicly available.
example:hide
@NameInMap(value="Arn") public List<CreateDiskRequest.CreateDiskRequestArn> arn
This parameter is not publicly available.
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature. Valid values:
example:This parameter is available only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks.
false
@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 disk. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
This parameter is left empty by default.
example:testDescription
@NameInMap(value="DiskCategory") public String diskCategory
The category of the data disk. Valid values:
Default value: cloud.
example:cloud_ssd
@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 and digits. The name can contain colons (:), underscores (_), periods (.), and hyphens (-).
This parameter is left empty by default.
example:testDiskName
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
This parameter is not publicly available.
example:hide
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt the disk. Valid values:
Default value: false.
example:false
@NameInMap(value="InstanceId") public String instanceId
The ID of the subscription instance to which to attach the subscription disk.
This parameter is empty by default, which indicates that a pay-as-you-go disk is created in the region and zone specified by RegionId and ZoneId.
example:i-bp18pnlg1ds9rky4****
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the disk.
example:0e478b7a-4262-4802-b8cb-00d3fb40826X
@NameInMap(value="MultiAttach") public String multiAttach
Specifies whether to enable the multi-attach feature for the disk. Valid values:
Enabled
only for ESSDs.Default value: Disabled.
example:Disks for which the multi-attach feature is enabled support only the pay-as-you-go billing method. When
MultiAttach
is set to Enabled, you cannot specifyInstanceId
. You can call the AttachDisk operation to attach disks to instances after the disks are created. Disks for which the multi-attach feature is enabled can be attached only as data disks.
Disabled
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PerformanceLevel") public String performanceLevel
The performance level of the disk if the disk is an ESSD. Valid values:
Default value: PL1.
For information about ESSD performance levels, see ESSDs.
example:PL1
@NameInMap(value="ProvisionedIops") public Long provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}.
Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.
example:This parameter is available only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks.
40000
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create 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 to add the disk.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Size") public Integer size
The size of the disk. Unit: GiB. This parameter is required. Valid values:
Valid values when DiskCategory is set to cloud: 5 to 2000.
Valid values when DiskCategory is set to cloud_efficiency: 20 to 32768.
Valid values when DiskCategory is set to cloud_ssd: 20 to 32768.
Valid values when DiskCategory is set to cloud_essd: vary based on the PerformanceLevel
value.
Valid values when DiskCategory is set to cloud_auto: 1 to 65536.
Valid values when DiskCategory is set to cloud_essd_entry: 10 to 32768.
Valid values when DiskCategory is set to elastic_ephemeral_disk_standard: 64 to 8192.
Valid values when DiskCategory is set to elastic_ephemeral_disk_premium: 64 to 8192.
If SnapshotId
is specified, the following limits apply to SnapshotId
and Size
:
SnapshotId
is larger than the value of Size
, the size of the created disk is equal to the size of the snapshot.SnapshotId
is smaller than the value of Size
, the size of the created disk is equal to the value of Size
.2000
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot to use to create the disk. Snapshots that were created on or before July 15, 2013 cannot be used to create disks.
The following limits apply to SnapshotId
and Size
:
SnapshotId
is larger than the value of Size
, the size of the created disk is equal to the specified snapshot size.SnapshotId
is smaller than the value of Size
, the size of the created disk is equal to the value of Size
.s-bp67acfmxazb4p****
@NameInMap(value="StorageClusterId") public String storageClusterId
The ID of the dedicated block storage cluster in which to create the disk. To create a disk in a specific dedicated block storage cluster, you must specify this parameter.
example:You can specify the storage set-related parameters (
StorageSetId
andStorageSetPartitionNumber
) or the dedicated block storage cluster-related parameter (StorageClusterId
), but not both. If you specify a storage set-related parameter and a dedicated block storage cluster-related parameter in a request, the request fails.
dbsc-j5e1sf2vaf5he8m2****
@NameInMap(value="StorageSetId") public String storageSetId
The ID of the storage set.
example:You cannot specify storage set-related parameters (
StorageSetId
andStorageSetPartitionNumber
) and the dedicated block storage cluster-related parameter (StorageClusterId
) at the same time. Otherwise, the operation cannot be called.
ss-bp67acfmxazb4p****
@NameInMap(value="StorageSetPartitionNumber") public Integer storageSetPartitionNumber
The number of partitions in the storage set. The value must be greater than or equal to 2 but cannot exceed the quota obtained by calling the DescribeAccountAttributesoperation.
Default value: 2.
example:3
@NameInMap(value="Tag") public List<CreateDiskRequest.CreateDiskRequestTag> tag
The tags to add to the disk.
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone in which to create the pay-as-you-go disk.
cn-hangzhou-g
public static CreateDiskRequest build(Map<String,?> map) throws Exception
Exception
public CreateDiskRequest setAdvancedFeatures(String advancedFeatures)
public String getAdvancedFeatures()
public CreateDiskRequest setArn(List<CreateDiskRequest.CreateDiskRequestArn> arn)
public List<CreateDiskRequest.CreateDiskRequestArn> getArn()
public CreateDiskRequest setBurstingEnabled(Boolean burstingEnabled)
public Boolean getBurstingEnabled()
public CreateDiskRequest setClientToken(String clientToken)
public String getClientToken()
public CreateDiskRequest setDescription(String description)
public String getDescription()
public CreateDiskRequest setDiskCategory(String diskCategory)
public String getDiskCategory()
public CreateDiskRequest setDiskName(String diskName)
public String getDiskName()
public CreateDiskRequest setEncryptAlgorithm(String encryptAlgorithm)
public String getEncryptAlgorithm()
public CreateDiskRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public CreateDiskRequest setInstanceId(String instanceId)
public String getInstanceId()
public CreateDiskRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public CreateDiskRequest setMultiAttach(String multiAttach)
public String getMultiAttach()
public CreateDiskRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateDiskRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateDiskRequest setPerformanceLevel(String performanceLevel)
public String getPerformanceLevel()
public CreateDiskRequest setProvisionedIops(Long provisionedIops)
public Long getProvisionedIops()
public CreateDiskRequest setRegionId(String regionId)
public String getRegionId()
public CreateDiskRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateDiskRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateDiskRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateDiskRequest setSize(Integer size)
public Integer getSize()
public CreateDiskRequest setSnapshotId(String snapshotId)
public String getSnapshotId()
public CreateDiskRequest setStorageClusterId(String storageClusterId)
public String getStorageClusterId()
public CreateDiskRequest setStorageSetId(String storageSetId)
public String getStorageSetId()
public CreateDiskRequest setStorageSetPartitionNumber(Integer storageSetPartitionNumber)
public Integer getStorageSetPartitionNumber()
public CreateDiskRequest setTag(List<CreateDiskRequest.CreateDiskRequestTag> tag)
public List<CreateDiskRequest.CreateDiskRequestTag> getTag()
public CreateDiskRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.