Queries the tags that are added to resources.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ResourceType | string | Yes | The type of the resource. Valid values:
| application |
ResourceIds | string | No | The IDs of the resources. You can specify up to 20 IDs. Set this parameter to a JSON array. | ["000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877"] |
Tags | string | No | The key-value pairs that specify the tags.
| [{"key":"key1","value":"v1"},{"key":"key2","value":"v2"}] |
ResourceRegionId | string | Yes | The region in which the resource resides. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"Message": "success",
"RequestId": "xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx",
"TagResources": {
"TagResource": {
"ResourceId": "000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877",
"TagKey": "key1",
"ResourceType": "ALIYUN::EDAS::APPLICATION",
"TagValue": "value1"
}
},
"Code": 200
}
XML
format
<Message>success</Message>
<RequestId>xxxxE654-xxxx-xxxx-xxxx-98F45996xxxx</RequestId>
<TagResources>
<TagResource>
<ResourceId>000e5836-xxxx-xxxx-xxxx-0d6ab2ac4877</ResourceId>
<TagKey>key1</TagKey>
<ResourceType>ALIYUN::EDAS::APPLICATION</ResourceType>
<TagValue>value1</TagValue>
</TagResource>
</TagResources>
<Code>200</Code>
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | Edas.errorcode.InstanceNotExist.Instance.message | The instance does not exist. | The instance does not exist. |
For a list of error codes, visit the Service error codes.