Skip to content

DiskAttachmentProps

Properties for defining a DiskAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-diskattachment

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ecs;
new DiskAttachmentProps {
    object DiskId,
    object InstanceId,
    object DeleteAutoSnapshot = null,
    object DeleteWithInstance = null,
    object Device = null
};

Properties

Name Type Description
DiskId object Property diskId: The disk id to attached.
InstanceId object Property instanceId: The instanceId to attach the disk.
DeleteAutoSnapshot object Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
DeleteWithInstance object Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.
Device object Property device: The device where the volume is exposed on the instance.

DiskIdRequired

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

Property diskId: The disk id to attached.


InstanceIdRequired

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

Property instanceId: The instanceId to attach the disk.


DeleteAutoSnapshotOptional

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

Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.

Default to true.


DeleteWithInstanceOptional

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

Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.


DeviceOptional

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

Property device: The device where the volume is exposed on the instance.

could be /dev/xvd[b-z]. If not specification, will use default value.