Skip to main content

ecs snapshot-group

Manage snapshot-consistent groups

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

create

ecctl ecs snapshot-group create [flags]

Create snapshot group

  • Kind: mutation · Risk: medium
  • Synchronous: waits for accomplished (waiter accomplished_after_create, timeout 600s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
CreateSnapshotGroupEvery time the command runs.Perform the resource operation.
DescribeSnapshotGroupsWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeSnapshotGroupsWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--instancestringsource instance ID
--regionstringAlibaba Cloud region
--descriptionstringsnapshot group description
--disk-idsarraydisk IDs to include in the group
--exclude-disk-idsarraydisk IDs to exclude from the group
--instant-accessbooleanenable instant access for the group snapshots
--instant-access-retention-daysintegerinstant access retention days
--namestringsnapshot group name
--resource-groupstringresource group ID
--tagkey_valuetag assignment key=value

update

ecctl ecs snapshot-group update <id> [flags]

Update snapshot group

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
ModifySnapshotGroupEvery time the command runs.Perform the resource operation.
DescribeSnapshotGroupsWhen --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--descriptionstringsnapshot group description
--namestringsnapshot group name

delete

ecctl ecs snapshot-group delete <id> [flags]

Delete snapshot group

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

get

ecctl ecs snapshot-group get <id> [flags]

Get snapshot group

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeSnapshotGroupsEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include

list

ecctl ecs snapshot-group list [<ids>...] [flags]

List snapshot groups

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeSnapshotGroupsEvery 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