Skip to content

DiskInstanceAttachmentProps

Properties for defining a DiskInstanceAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-diskinstanceattachment

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ens;
new DiskInstanceAttachmentProps {
    object DiskId,
    object InstanceId,
    object DeleteWithInstance = null
};

Properties

Name Type Description
DiskId object Property diskId: The ID of the cloud disk to be mounted.
InstanceId object Property instanceId: Instance ID.
DeleteWithInstance object Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance.

DiskIdRequired

public object DiskId { get; set; }
  • Type: object

Property diskId: The ID of the cloud disk to be mounted.

The Cloud Disk (DiskId) and the instance (InstanceId) must be on the same node.


InstanceIdRequired

public object InstanceId { get; set; }
  • Type: object

Property instanceId: Instance ID.


DeleteWithInstanceOptional

public object DeleteWithInstance { get; set; }
  • Type: object

Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance.

false: When the instance is released, the cloud disk is retained and is not released together with the instance. Empty means false by default.