Skip to main content

ecs port-range-list

Manage ECS port range lists

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

create

ecctl ecs port-range-list create [flags]

Create port range list

  • Kind: mutation · Risk: medium
  • Synchronous: waits for matched (waiter entries_visible, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
CreatePortRangeListEvery time the command runs.Perform the resource operation.
DescribePortRangeListEntriesWhen --no-wait is not specified and --entry is specified.Poll until the resource reaches the target state. (repeated)
DescribePortRangeListsWhen --no-wait is not specified.Read the resource view.
DescribePortRangeListEntriesWhen --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--max-entriesintegermaximum number of entries allowed in the port range list
--namestringport range list name
--regionstringAlibaba Cloud region
--descriptionstringport range list description
--entryobjectport ranges to include when creating the list
--resource-groupstringresource group ID
--tagkey_valuetag assignment key=value

update

ecctl ecs port-range-list update <id> [flags]

Update port range list

  • Kind: mutation · Risk: medium
  • Synchronous: waits for matched (waiter entries_visible, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
ModifyPortRangeListEvery time the command runs.Perform the resource operation.
DescribePortRangeListEntriesWhen --no-wait is not specified and --entry contains a value prefixed with +.Poll until the resource reaches the target state. (repeated)
DescribePortRangeListEntriesWhen --no-wait is not specified and --entry contains a value prefixed with -.Poll until the resource reaches the target state. (repeated)
DescribePortRangeListsWhen --no-wait is not specified.Read the resource view.
DescribePortRangeListEntriesWhen --no-wait is not specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--descriptionstringport range list description
--entrystringport range entry change; prefix with + to add or - to remove
--namestringport range list name

delete

ecctl ecs port-range-list delete <id> [flags]

Delete port range list

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

get

ecctl ecs port-range-list get <id> [flags]

Get port range list

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribePortRangeListsEvery time the command runs.Read the resource view.
DescribePortRangeListAssociationsWhen --with-associations is specified.Read the resource view.
DescribePortRangeListEntriesWhen --with-entries is specified.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--with-associationsbooleaninclude associated resources
--with-entriesbooleaninclude port range entries

list

ecctl ecs port-range-list list [<ids>...] [flags]

List port range lists

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