All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::AttachDisk

Last Updated:Jul 31, 2024

Description

Attaches a pay-as-you-go data disk or a system disk to an Elastic Compute Service (ECS) instance.

Syntax

Action: ACS::ECS::AttachDisk
Properties:
 regionId: String
 instanceId: String
 diskId: String
 deleteWithInstance: Boolean

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

instanceId

The ID of the ECS instance.

String

Yes

Maximum length: 30 characters Minimum length: 1 character

diskId

The ID of the data disk that you want to attach to the ECS instance.

String

Yes

Regular expression for string verification: d-[A-Za-z0-9]* Maximum length: 30 characters Minimum length: 1 character

deleteWithInstance

Specifies whether to delete the data disk when you delete the ECS instance. By default, the data disk is not deleted.

Boolean

No

False

Output

None

References

For more information, see ACS::ECS::AttachDisk.yml at GitHub.