All Products
Search
Document Center

Simple Application Server:ListTagResources

Last Updated:Apr 17, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

cn-hangzhou
ClientTokenstringNo

The client token that you want to use to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence

123e4567-e89b-12d3-a456-426655440000
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results.

AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***
ResourceTypestringYes

The resource type. Valid values:

  • instance
  • snapshot
  • customimage
  • command
  • firewallrule
  • disk
instance
ResourceIdarrayNo

The resource IDs. You can specify up to 50 resource IDs.

stringNo

The resource ID.

s-bw526m1vi6x20c6g****
Tagobject []No

The tags. You can specify up to 20 tags.

KeystringNo

The key of tag N that you want to add to the simple application server. A tag key can be 1 to 64 characters in length. Valid values of N: 1 to 20.

TestKey
ValuestringNo

The value of tag N that you want to add to the simple application server. A tag value can be up to 64 characters in length. Valid values of N: 1 to 20.

TestValue

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***
RequestIdstring

The request ID.

20758A-585D-4A41-A9B2-28DA8F4F534F
TagResourcesobject []

A collection of resource IDs and tags. The information includes the resource IDs, resource types, and key-value pairs.

ResourceTypestring

The resource type.

ALIYUN::SWAS::INSTANCE
TagValuestring

The tag value.

TestValue
ResourceIdstring

The resource ID.

s-bw526m1vi6x20c6g****
TagKeystring

The tag key.

TestKey

Examples

Sample success responses

JSONformat

{
  "NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***",
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F\t",
  "TagResources": {
    "TagResource": [
      {
        "ResourceType": "ALIYUN::SWAS::INSTANCE",
        "TagValue": "TestValue",
        "ResourceId": "s-bw526m1vi6x20c6g****\n",
        "TagKey": "TestKey"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.