rg resource
Manage resources across resource groups
Run ecctl rg resource <action> -h for usage, or ecctl schema rg.resource.<action> --full for the complete, agent-readable spec of every parameter and behavior.
update
ecctl rg resource update <id> [flags]
Move resources to a target resource group
- Kind:
mutation· Risk: medium - Synchronous: waits for
matched(waiterresources_visible_after_move, timeout300s); use--no-waitto skip.
| API | When called | Purpose |
|---|---|---|
MoveResources | Every time the command runs. | Perform the resource operation. |
ListResources | When --no-wait is not specified. | Poll until the resource reaches the target state. (repeated) |
| Parameter | Type | Required | Description |
|---|---|---|---|
--region | string | ✓ | Alibaba Cloud region |
--resource | object | ✓ | resources to move |
list
ecctl rg resource list <id> [flags]
List resources in a resource group
- Kind:
read· Risk: low
| API | When called | Purpose |
|---|---|---|
ListResources | Every time the command runs. | Read the resource view. |
| Parameter | Type | Required | Description |
|---|---|---|---|
--region | string | ✓ | Alibaba Cloud region |
--fields | string | comma-separated resource fields to include | |
--filter | key_value | filter expression key=value | |
--limit | integer | maximum resources to return (default: 100) | |
--page | integer | results page to return (default: 1) |