public class CreateDiskRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateDiskRequest.CreateDiskRequestArn |
static class |
CreateDiskRequest.CreateDiskRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
advancedFeatures
This parameter is unavailable.
|
List<CreateDiskRequest.CreateDiskRequestArn> |
arn
该参数暂未开放使用。
|
Boolean |
burstingEnabled
This parameter is unavailable.
|
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 unavailable.
|
Boolean |
encrypted
Specifies whether to encrypt the disk.
|
String |
instanceId
The ID of the instance to which the created subscription disk is automatically attached.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key used by 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 ESSD.
|
Long |
provisionedIops
This parameter is unavailable.
|
String |
regionId
The ID of the region in which to create the disk.
|
String |
resourceGroupId
The ID of the resource group to which to assign the disk.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
size
The size of the disk.
|
String |
snapshotId
The ID of the snapshot used to create the disk.
|
String |
storageClusterId
The ID of the dedicated block storage cluster.
|
String |
storageSetId
The ID of the storage set.
|
Integer |
storageSetPartitionNumber
The number of partitions in the storage set.
|
List<CreateDiskRequest.CreateDiskRequestTag> |
tag
云盘的标签信息列表。
|
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 unavailable.
@NameInMap(value="Arn") public List<CreateDiskRequest.CreateDiskRequestArn> arn
该参数暂未开放使用。
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
This parameter is unavailable.
@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 value, but you must make sure that the value is unique among different requests. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@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 empty by default.
@NameInMap(value="DiskCategory") public String diskCategory
The category of the data disk. Valid values:
* cloud: basic disk
* cloud_efficiency: ultra disk
* cloud_ssd: standard SSD
* cloud_essd: ESSD
Default value: cloud.
@NameInMap(value="DiskName") public String diskName
The name of the disk. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
This parameter is empty by default.
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
This parameter is unavailable.
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt the disk. Valid values:
* true: encrypts the disk.
* false: does not encrypt the disk.
Default value: false.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance to which the created subscription disk is automatically attached.
* After you specify the instance ID, the specified ResourceGroupId, Tag.N.Key, Tag.N.Value, ClientToken, and KMSKeyId parameters are ignored.
* You cannot specify ZoneId and InstanceId at the same time.
This parameter is empty by default. This indicates that a pay-as-you-go disk is created. The RegionId and ZoneId parameters specify where the disk resides.
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key used by the disk.
@NameInMap(value="MultiAttach") public String multiAttach
Specifies whether to enable the multi-attach feature for the disk. Valid values:
* Disabled: disables the multi-attach feature.
* Enabled: enables the multi-attach feature. Set the value to `Enabled` only for ESSDs.
Default value: Disabled.
> Disks for which the multi-attach feature is enabled support only the pay-as-you-go billing method. When the `MultiAttach` parameter is set to Enabled, you cannot specify the `InstanceId` parameter. You can call the [AttachDisk](~~25515~~) 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.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PerformanceLevel") public String performanceLevel
The performance level of the ESSD. Valid values:
* PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
* PL1: An ESSD can deliver up to 50,000 random read/write IOPS.
* PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
* PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
Default value: PL1.
For more information about ESSD performance levels, see [ESSDs](~~122389~~).
@NameInMap(value="ProvisionedIops") public Long provisionedIops
This parameter is unavailable.
@NameInMap(value="RegionId") public String regionId
The ID of the region in which to create 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 to assign the disk.
@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 2,000
* Valid values when DiskCategory is set to cloud_efficiency: 20 to 32,768
* Valid values when DiskCategory is set to cloud_ssd: 20 to 32,768
* Valid values when DiskCategory is set to cloud_essd: depends on the `PerformanceLevel` value.
* Valid values when PerformanceLevel is set to PL0: 40 to 32,768
* Valid values when PerformanceLevel is set to PL1: 20 to 32,768
* Valid values when PerformanceLevel is set to PL2: 461 to 32,768
* Valid values when PerformanceLevel is set to PL3: 1,261 to 32,768
If the `SnapshotId` parameter is specified, the following limits apply to the `SnapshotId` and `Size` parameters:
* If the size of the snapshot specified by the `SnapshotId` parameter is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size.
* If the size of the snapshot specified by the `SnapshotId` parameter is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value.
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot used 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 the `SnapshotId` and `Size` parameters:
* If the size of the snapshot specified by the `SnapshotId` parameter is greater than the specified `Size` value, the size of the created disk is equal to the specified snapshot size.
* If the size of the snapshot specified by the `SnapshotId` parameter is smaller than the specified `Size` value, the size of the created disk is equal to the specified `Size` value.
@NameInMap(value="StorageClusterId") public String storageClusterId
The ID of the dedicated block storage cluster. To create a disk in a specific dedicated block storage cluster, specify this parameter. For more information about dedicated block storage clusters, see [What is Dedicated Block Storage Cluster?](~~208883~~)
> You can specify only one of the storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and dedicated block storage cluster-related parameter (`StorageClusterId`). If you specify more than one of the preceding parameters, the call fails.
@NameInMap(value="StorageSetId") public String storageSetId
The ID of the storage set.
> You can specify only one of the storage set-related parameters (`StorageSetId` and `StorageSetPartitionNumber`) and dedicated block storage cluster-related parameter (`StorageClusterId`). If you specify more than one of the preceding parameters, the call fails.
@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 [DescribeAccountAttributes](~~73772~~) operation.
Default value: 2.
@NameInMap(value="Tag") public List<CreateDiskRequest.CreateDiskRequestTag> tag
云盘的标签信息列表。
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone in which to create the pay-as-you-go disk.
* If the InstanceId parameter is not specified, the ZoneId parameter is required.
* You cannot specify ZoneId and InstanceId at the same time.
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 © 2023. All rights reserved.