DiskProps
Properties for defining a Disk.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ens;
new DiskProps {
object Category,
object EnsRegionId,
object InstanceChargeType,
object Size,
object DiskName = null,
object Encrypted = null,
object InstanceBillingCycle = null,
object KmsKeyId = null,
object SnapshotId = null
};
Properties
| Name | Type | Description |
|---|---|---|
Category | object | Property category: The category of the disk. |
EnsRegionId | object | Property ensRegionId: The ID of the edge node. |
InstanceChargeType | object | Property instanceChargeType: The billing method of the instance. |
Size | object | Property size: The size of the disk. |
DiskName | object | Property diskName: The name of the disk. |
Encrypted | object | Property encrypted: Specifies whether to encrypt the disk. |
InstanceBillingCycle | object | Property instanceBillingCycle: The billing cycle of the instance. |
KmsKeyId | object | Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk. |
SnapshotId | object | Property snapshotId: The ID of the snapshot that you want to use to create the disk. |
CategoryRequired
public object Category { get; set; }
- Type: object
Property category: The category of the disk.
Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.
EnsRegionIdRequired
public object EnsRegionId { get; set; }
- Type: object
Property ensRegionId: The ID of the edge node.
InstanceChargeTypeRequired
public object InstanceChargeType { get; set; }
- Type: object
Property instanceChargeType: The billing method of the instance.
Set the value to PostPaid.
SizeRequired
public object Size { get; set; }
- Type: object
Property size: The size of the disk.
Unit: GiB.
DiskNameOptional
public object DiskName { get; set; }
- Type: object
Property diskName: The name of the disk.
EncryptedOptional
public object Encrypted { get; set; }
- Type: object
Property encrypted: Specifies whether to encrypt the disk.
Valid values:
- true
- false (default)
InstanceBillingCycleOptional
public object InstanceBillingCycle { get; set; }
- Type: object
Property instanceBillingCycle: The billing cycle of the instance.
KmsKeyIdOptional
public object KmsKeyId { get; set; }
- Type: object
Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk.
Note If you set the Encrypted parameter to true, the default service key is used when the KMSKeyId parameter is empty.
SnapshotIdOptional
public object SnapshotId { get; set; }
- Type: object
Property snapshotId: The ID of the snapshot that you want to use to create the disk.
The following limits apply to the SnapshotId and Size parameters: If the size of the snapshot specified by SnapshotId 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 SnapshotId is smaller than the specified Size value, the size of the created disk is equal to the specified Size value.