public static class RunInstancesRequest.RunInstancesRequestDataDisk
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoSnapshotPolicyId
The ID of the automatic snapshot policy to apply to data disk N.
|
Boolean |
burstingEnabled
Specifies whether to enable the performance burst feature for data disk N.
|
String |
category
The category of data disk N.
|
Boolean |
deleteWithInstance
Specifies whether to release data disk N when the instance is released.
|
String |
description
The description of data disk N.
|
String |
device
The mount point of data disk N.
|
String |
diskName
The name of data disk N.
|
String |
encryptAlgorithm
This parameter is not publicly available.
|
String |
encrypted
Specifies whether to encrypt data disk N.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key to use for data disk N.
|
String |
performanceLevel
The performance level of the ESSD to use as data disk N.
|
Long |
provisionedIops
The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N.
|
Integer |
size
The size of data disk N.
|
String |
snapshotId
The ID of the snapshot to use to create data disk N.
|
String |
storageClusterId
The ID of the dedicated block storage cluster to which data disk N belongs.
|
构造器和说明 |
---|
RunInstancesRequestDataDisk() |
@NameInMap(value="AutoSnapshotPolicyId") public String autoSnapshotPolicyId
The ID of the automatic snapshot policy to apply to data disk N.
example:sp-bp67acfmxazb4p****
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature for data disk N. Valid values:
example:This parameter is available only if you set DataDisk.N.Category to cloud_auto. For more information, see ESSD AutoPL disks.
false
@NameInMap(value="Category") public String category
The category of data disk N. Valid values:
cloud_efficiency: ultra disk
cloud_ssd: standard SSD
cloud_essd: ESSD
cloud: basic disk
cloud_auto: ESSD AutoPL disk
cloud_essd_entry: ESSD Entry disk
**
Note This parameter can be set to cloud_essd_entry
only when InstanceType
is set to ecs.u1
or ecs.e
.
elastic_ephemeral_disk_standard: standard elastic ephemeral disk
elastic_ephemeral_disk_premium: premium elastic ephemeral disk
For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.
example:cloud_ssd
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release data disk N when the instance is released. Valid values:
Default value: true.
example:true
@NameInMap(value="Description") public String description
The description of data disk N. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
DataDisk_Description
@NameInMap(value="Device") public String device
The mount point of data disk N. The mount points are named based on the number of data disks:
[b-z]
.[aa-zz]
. For example, the 26th data disk is named /dev/xvdaa, the 27th data disk is named /dev/xvdab, and so on.example:This parameter is applicable to scenarios in which a full image is used to create instances. A full image is an image that contains an operating system, application software, and business data. For these scenarios, you can set the parameter to the mount point of data disk N contained in the full image and modify the
DataDisk.N.Size
andDataDisk.N.Category
parameters to change the category and size of data disk N created based on the image.
/dev/xvdb
@NameInMap(value="DiskName") public String diskName
The name of data disk N. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
example:cloud_ssdData
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
example:This parameter is not publicly available.
aes-256
@NameInMap(value="Encrypted") public String encrypted
Specifies whether to encrypt data disk N. Valid values:
Default value: false.
example:false
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key to use for data disk N.
example:0e478b7a-4262-4802-b8cb-00d3fb40****
@NameInMap(value="PerformanceLevel") public String performanceLevel
The performance level of the ESSD to use as data disk N. The value of N must be the same as that in DataDisk.N.Category
when DataDisk.N.Category is set to cloud_essd. Valid values:
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 to use as data disk N. 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 if you set DataDisk.N.Category to cloud_auto. For more information, see ESSD AutoPL disks.
40000
@NameInMap(value="Size") public Integer size
The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:
Valid values when DataDisk.N.Category is set to cloud_efficiency: 20 to 32768.
Valid values when DataDisk.N.Category is set to cloud_ssd: 20 to 32768.
Valid values when DataDisk.N.Category is set to cloud_essd: vary based on the value of DataDisk.N.PerformanceLevel
.
Valid values when DataDisk.N.Category is set to cloud: 5 to 2000.
Valid values when DiskCategory is set to cloud_auto: 1 to 65536.
Valid values when DataDisk.N.Category is set to cloud_essd_entry: 10 to 32768.
example:The value of this parameter must be greater than or equal to the size of the snapshot specified by
DataDisk.N.SnapshotId
.
2000
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16.
When the DataDisk.N.SnapshotId
parameter is specified, the DataDisk.N.Size
parameter is ignored. The data disk is created with the size of the specified snapshot. Use snapshots created on or after July 15, 2013. Otherwise, an error is returned and your request is rejected.
s-bp17441ohwka0yuh****
@NameInMap(value="StorageClusterId") public String storageClusterId
The ID of the dedicated block storage cluster to which data disk N belongs. If you want to use a disk in a dedicated block storage cluster as data disk N when you create the instance, you must specify this parameter.
example:dbsc-j5e1sf2vaf5he8m2****
public static RunInstancesRequest.RunInstancesRequestDataDisk build(Map<String,?> map) throws Exception
Exception
public RunInstancesRequest.RunInstancesRequestDataDisk setAutoSnapshotPolicyId(String autoSnapshotPolicyId)
public String getAutoSnapshotPolicyId()
public RunInstancesRequest.RunInstancesRequestDataDisk setBurstingEnabled(Boolean burstingEnabled)
public Boolean getBurstingEnabled()
public RunInstancesRequest.RunInstancesRequestDataDisk setCategory(String category)
public String getCategory()
public RunInstancesRequest.RunInstancesRequestDataDisk setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public RunInstancesRequest.RunInstancesRequestDataDisk setDescription(String description)
public String getDescription()
public RunInstancesRequest.RunInstancesRequestDataDisk setDevice(String device)
public String getDevice()
public RunInstancesRequest.RunInstancesRequestDataDisk setDiskName(String diskName)
public String getDiskName()
public RunInstancesRequest.RunInstancesRequestDataDisk setEncryptAlgorithm(String encryptAlgorithm)
public String getEncryptAlgorithm()
public RunInstancesRequest.RunInstancesRequestDataDisk setEncrypted(String encrypted)
public String getEncrypted()
public RunInstancesRequest.RunInstancesRequestDataDisk setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public RunInstancesRequest.RunInstancesRequestDataDisk setPerformanceLevel(String performanceLevel)
public String getPerformanceLevel()
public RunInstancesRequest.RunInstancesRequestDataDisk setProvisionedIops(Long provisionedIops)
public Long getProvisionedIops()
public RunInstancesRequest.RunInstancesRequestDataDisk setSize(Integer size)
public Integer getSize()
public RunInstancesRequest.RunInstancesRequestDataDisk setSnapshotId(String snapshotId)
public String getSnapshotId()
public RunInstancesRequest.RunInstancesRequestDataDisk setStorageClusterId(String storageClusterId)
public String getStorageClusterId()
Copyright © 2024. All rights reserved.