All Products
Search
Document Center

Function Compute:GetResourceTags

Last Updated:Jun 02, 2023

Queries all the tags of a resource.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/tag

Request parameters

ParameterTypeRequiredDescriptionExample
resourceArnstringYes

The ARN of the resource.

NoteNote: You can use the value of this parameter to query the information about the resource, such as the account, service, and region information of the resource.
acs:fc:cn-shanghai:188077086902****:services/demo
X-Fc-Account-IdstringNo

The Alibaba Cloud Resource Name (ARN) of the resource.

NoteNote: You can use the value of this parameter to query the information about the resource, such as the account, service, and region information of the resource. You can manage tags only for services for top level resources.
188077086902****
X-Fc-DatestringNo

The tag dictionary. Valid values:

  • key: the key of the tag.
  • value: the value of the tag.
Wed, 11 May 2022 09:00:00 GMT
X-Fc-Trace-IdstringNo

Example 1

my-test-trace-id

Response parameters

ParameterTypeDescriptionExample
object

Queries all the tags of a resource.

resourceArnstring

147258

acs:fc:cn-shanghai:188077086902****:services/demo

Examples

Sample success responses

JSONformat

{
  "resourceArn": "acs:fc:cn-shanghai:188077086902****:services/demo",
  "tags": {
    "key": "{\"k1\":\"v1\"}"
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id