Skip to main content

tag associated-resource-rule

Manage associated resource tag rules

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

create

ecctl tag associated-resource-rule create [flags]

Create associated resource rule

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
CreateAssociatedResourceRulesEvery time the command runs.Perform the resource operation.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--setting-namestringassociated resource rule setting name
--existing-statusstringwhether to apply the rule to existing associated resources
--statusstringassociated resource rule status (default: Enable)
--tag-keysstring_arraytag keys applied by the associated resource rule

update

ecctl tag associated-resource-rule update <setting-name> [flags]

Update associated resource rule

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
ListAssociatedResourceRulesWhen &lt;setting-name> is specified and (--status is not specified or --existing-status is not specified or --tag-keys is not specified).Read the existing rule so omitted fields are preserved during the update.
UpdateAssociatedResourceRuleEvery time the command runs.Perform the resource operation.
ListAssociatedResourceRulesEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--existing-statusstringwhether to apply the rule to existing associated resources
--statusstringassociated resource rule status
--tag-keysstring_arraytag keys applied by the associated resource rule

delete

ecctl tag associated-resource-rule delete <setting-name> [flags]

Delete associated resource rule

  • Kind: mutation · Risk: high
APIWhen calledPurpose
DeleteAssociatedResourceRuleEvery time the command runs.Perform the resource operation.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region

list

ecctl tag associated-resource-rule list [<setting-name>...] [flags]

List associated resource rules

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