Skip to main content

ecs disk

Manage disk resources

Run ecctl ecs disk <action> -h for usage, or ecctl schema ecs.disk.<action> --full for the complete, agent-readable spec of every parameter and behavior.

create

ecctl ecs disk create [flags]

Create disk

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_create, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
CreateDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeDisksWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--bursting-enabledbooleanenable performance burst
--categorystringdisk category
--descriptionstringdisk description
--encryptedbooleanencrypt the disk
--kms-key-idstringKMS key ID for disk encryption
--namestringdisk name
--performance-levelstringESSD performance level
--provisioned-iopsintegerprovisioned IOPS
--resource-groupstringresource group ID
--sizeintegerdisk size in GiB
--snapshotstringsnapshot ID
--tagkey_valuetag assignment key=value
--zonestringzone ID

update

ecctl ecs disk update <id> [flags]

Update disk

  • Kind: mutation · Risk: medium
  • Idempotent via ClientToken.
APIWhen calledPurpose
ModifyDiskAttributeWhen --name is specified or --description is specified or --delete-with-instance is specified or --delete-auto-snapshot is specified.Perform the resource operation.
ResizeDiskWhen --size is specified.Perform the resource operation.
ModifyDiskSpecWhen --category is specified or --performance-level is specified or --provisioned-iops is specified or --bursting-enabled is specified.Perform the resource operation.
ModifyDiskChargeTypeWhen --charge-type is specified.Perform the resource operation.
ModifyDiskDeploymentWhen --storage-cluster is specified.Perform the resource operation.
EnableDiskEncryptionByDefaultWhen --encryption-default equals enable.Perform the resource operation.
DisableDiskEncryptionByDefaultWhen --encryption-default equals disable.Perform the resource operation.
ModifyDiskDefaultKMSKeyIdWhen --default-kms-key-id is specified.Perform the resource operation.
ResetDiskDefaultKMSKeyIdWhen --reset-default-kms-key is specified.Perform the resource operation.
DescribeDisksWhen &lt;id> is specified and --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--auto-paybooleanautomatically pay for prepaid disks
--bursting-enabledbooleanenable performance burst
--categorystringdisk category
--charge-typestringdisk charge type
--default-kms-key-idstringaccount-level default disk encryption KMS key ID
--delete-auto-snapshotbooleandelete automatic snapshots with the disk
--delete-with-instancebooleanrelease the disk with the instance
--descriptionstringdisk description
--encryption-defaultstringenable or disable account-level default disk encryption
--instancestringinstance ID
--namestringdisk name
--performance-levelstringESSD performance level
--provisioned-iopsintegerprovisioned IOPS
--reset-default-kms-keybooleanreset account-level default disk encryption KMS key
--resize-typestringresize mode
--sizeintegerdisk size in GiB
--storage-clusterstringstorage cluster ID for disk deployment migration

delete

ecctl ecs disk delete <id> [flags]

Delete disk

  • Kind: mutation · Risk: high
  • Synchronous: waits for absent (waiter deleted_after_delete, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
DeleteDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--forcebooleanforce the disk operation when supported by the API (default: false)

get

ecctl ecs disk get <id> [flags]

Get disk

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeDiskEncryptionByDefaultStatusWhen --encryption-default is specified.Read the resource view.
DescribeDiskDefaultKMSKeyIdWhen --default-kms-key is specified.Read the resource view.
DescribeDisksWhen &lt;id> is specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--default-kms-keybooleanquery account-level default disk encryption KMS key
--encryption-defaultbooleanquery account-level default disk encryption status
--fieldsstringcomma-separated resource fields to include

list

ecctl ecs disk list [<ids>...] [flags]

List disks

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeDisksEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--filterkey_valuefilter expression key=value
--limitintegermaximum resources to return (default: 100)
--next-tokenstringtoken for the next result page

attach

ecctl ecs disk attach <id> [flags]

Attach disk

  • Kind: mutation · Risk: medium
  • Synchronous: waits for In_use (waiter in_use_after_attach, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
AttachDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeDisksWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--instancestringinstance ID
--regionstringAlibaba Cloud region
--delete-with-instancebooleanrelease the disk with the instance
--devicestringdevice name in the instance
--forcebooleanforce the disk operation when supported by the API (default: false)

clone

ecctl ecs disk clone <id> [flags]

Clone disk

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Finished (waiter clone_finished, timeout 3600s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
CloneDisksEvery time the command runs.Perform the resource operation.
DescribeTasksWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
ParameterTypeRequiredDescription
--categorystringdisk category
--multi-attachstringmulti-attach mode
--regionstringAlibaba Cloud region
--sizeintegerdisk size in GiB
--bursting-enabledbooleanenable performance burst
--encryptedbooleanencrypt the disk
--kms-key-idstringKMS key ID for disk encryption
--namestringdisk name
--performance-levelstringESSD performance level
--provisioned-iopsintegerprovisioned IOPS
--resource-groupstringresource group ID
--tagkey_valuetag assignment key=value

detach

ecctl ecs disk detach <id> [flags]

Detach disk

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_detach, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
DetachDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeDisksWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--instancestringinstance ID
--regionstringAlibaba Cloud region
--delete-with-instancebooleanrelease the disk with the instance

monitor

ecctl ecs disk monitor <id> [flags]

Query disk monitor data

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeDiskMonitorDataEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--end-timestringmonitoring end time
--regionstringAlibaba Cloud region
--start-timestringmonitoring start time
--period-secondsintegermonitoring period in seconds

reinit

ecctl ecs disk reinit <id> [flags]

Reinitialize disk

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
ReInitDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region

reset

ecctl ecs disk reset <id> [flags]

Reset disk from snapshot

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
ResetDiskEvery time the command runs.Perform the resource operation.
DescribeDisksWhen --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--snapshotstringsnapshot ID