Adds tags to a resource.
Debugging
Authorization information
Request syntax
POST /2021-04-06/tag
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | The details of tags. | |
resourceArn | string | Yes | The ARN of the resource. Note
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.
| acs:fc:cn-shanghai:188077086902****:services/demo |
tags | object | Yes | The tag dictionary. | |
string | No | The tag dictionary. A tag consists of the following parameters:
Tag keys and tag values are case-sensitive. If you specify multiple tags, the system adds all the tags to the specified resources. Each tag key on a resource can have only one tag value. If you attempt to add a tag that has the same key as an existing tag, the value of the existing tag is overwritten.
| ||
X-Fc-Account-Id | string | No | The ID of your Alibaba Cloud account. | 188077086902**** |
X-Fc-Date | string | No | The time when the function is invoked. The format is EEE,d MMM yyyy HH:mm:ss GMT. | Wed, 11 May 2022 09:00:00 GMT |
X-Fc-Trace-Id | string | No | The custom request ID. | my-test-trace-id |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
| ||||||||||||||||
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
| ||||||||||||||||
2021-06-29 | The request parameters of the API has changed | see changesets | ||||||||||||||
|