DescribeTags#

Description#

The request to get a tag set.

Request Parameters#

  • Filter.N — One or more filters.

    • Type: List of Filter objects

    • Required: No

Supported Filters#

  • key — The tag key.

  • resource-id — The ID of the resource.

  • resource-type — The resource type (address-pool | customer-gateway | dhcp-options | elastic-ip | image | instance | key-pair | network-acl | network-interface | placement-group | route-table | security-group | snapshot | subnet | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume | vpc | vpn-connection).

  • value — The tag value.

Response Elements#

  • requestId — The request ID.

    • Type: String

  • tagSet — Information about tags.

    • Type: List of Tag objects

Examples#

c2-ec2 DescribeTags
c2-ec2 DescribeTags Filter.1.Name key Filter.1.Value <key>
c2-ec2 DescribeTags Filter.1.Name resource-id Filter.1.Value <volume-id> Filter.2.Name resource-type Filter.2.Value volume