Skip to main content

rg group

Manage resource groups

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

create​

ecctl rg group create [flags]

Create resource group

  • Kind: mutation · Risk: medium
  • Synchronous: waits for OK (waiter ok_after_create, timeout 10s); use --no-wait to skip.
APIWhen calledPurpose
CreateResourceGroupEvery time the command runs.Perform the resource operation.
GetResourceGroupEvery time the command runs.Poll until the resource reaches the target state. (repeated)
GetResourceGroupEvery time the command runs.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--display-namestring✓resource group display name
--namestring✓resource group identifier
--regionstring✓Alibaba Cloud region
--tagkey_valuetag assignment key=value

update​

ecctl rg group update <id> [flags]

Update resource group

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
UpdateResourceGroupEvery time the command runs.Perform the resource operation.
GetResourceGroupEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstring✓Alibaba Cloud region
--display-namestringresource group display name

delete​

ecctl rg group delete <id> [flags]

Delete resource group

  • Kind: mutation · Risk: high
APIWhen calledPurpose
DeleteResourceGroupEvery time the command runs.Perform the resource operation.
ListResourceGroupsEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstring✓Alibaba Cloud region

get​

ecctl rg group get <id> [flags]

Get resource group

  • Kind: read · Risk: low
APIWhen calledPurpose
GetResourceGroupEvery time the command runs.Read the resource view.
GetResourceGroupResourceCountsWhen --with-counts is specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstring✓Alibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--with-countsbooleaninclude resource counts

list​

ecctl rg group list [<ids>...] [flags]

List resource groups

  • Kind: read · Risk: low
APIWhen calledPurpose
ListResourceGroupsWhen --with-auth-details is not specified.Read the resource view.
ListResourceGroupsWithAuthDetailsWhen --with-auth-details is specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstring✓Alibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--filterkey_valuefilter expression key=value
--limitintegermaximum resources to return (default: 100)
--pageintegerresults page to return (default: 1)
--with-auth-detailsbooleaninclude authorization details