DiskProps
Properties for defining a Disk.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-disk
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkens"
&alicloudroscdkens.DiskProps {
Category: interface{},
EnsRegionId: interface{},
InstanceChargeType: interface{},
Size: interface{},
DiskName: interface{},
Encrypted: interface{},
KmsKeyId: interface{},
SnapshotId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Category |
interface{} |
Property category: The category of the disk. |
EnsRegionId |
interface{} |
Property ensRegionId: The ID of the edge node. |
InstanceChargeType |
interface{} |
Property instanceChargeType: The billing method of the instance. |
Size |
interface{} |
Property size: The size of the disk. |
DiskName |
interface{} |
Property diskName: The name of the disk. |
Encrypted |
interface{} |
Property encrypted: Specifies whether to encrypt the new system disk. |
KmsKeyId |
interface{} |
Property kmsKeyId: The ID of the Key Management Service (KMS) key that is used by the cloud disk. |
SnapshotId |
interface{} |
Property snapshotId: The ID of the snapshot that you want to use to create the disk. |
CategoryRequired
Category interface{}
- Type: interface{}
Property category: The category of the disk.
Valid values: cloud_efficiency: ultra disk. cloud_ssd: all-flash disk.
EnsRegionIdRequired
EnsRegionId interface{}
- Type: interface{}
Property ensRegionId: The ID of the edge node.
InstanceChargeTypeRequired
InstanceChargeType interface{}
- Type: interface{}
Property instanceChargeType: The billing method of the instance.
Set the value to PostPaid.
SizeRequired
Size interface{}
- Type: interface{}
Property size: The size of the disk.
Unit: GiB.
DiskNameOptional
DiskName interface{}
- Type: interface{}
Property diskName: The name of the disk.
EncryptedOptional
Encrypted interface{}
- Type: interface{}
Property encrypted: Specifies whether to encrypt the new system disk.
Valid values: true false (default): no
KmsKeyIdOptional
KmsKeyId interface{}
- Type: interface{}
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
SnapshotId interface{}
- Type: interface{}
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.