Queries all tags of a specified Function Compute resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetResourceTags |
get |
*All Resource
|
None | None |
Request syntax
GET /2021-04-06/tag HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| resourceArn |
string |
Yes |
The Alibaba Cloud Resource Name (ARN) of the resource. Note
The ARN identifies the account, service, and region of the resource. Tags can only be managed for services that are top-level resources. |
acs:fc:cn-shanghai:188077086902****:services/demo |
| 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, in EEE,d MMM yyyy HH:mm:ss GMT format. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
The request ID. |
my-test-trace-id |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
acs:fc:cn-shanghai:188077086902****:services/demo |
|
| resourceArn |
string |
The Alibaba Cloud Resource Name (ARN) of the resource. Note
The ARN identifies the account, service, and region of the resource. |
acs:fc:cn-shanghai:188077086902****:services/demo |
| tags |
object |
The tag dictionary. |
{"k1":"v1"} |
|
string |
A tag key-value pair:
|
{"k1":"v1"} |
Examples
Success response
JSON format
{
"resourceArn": "acs:fc:cn-shanghai:188077086902****:services/demo",
"tags": {
"key": "{\"k1\":\"v1\"}"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.