forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Hongwei, King Wang <king.wanghongwei@huawei.com> Co-committed-by: Hongwei, King Wang <king.wanghongwei@huawei.com>
12 KiB
12 KiB
Querying Resource Tags
Function
This API is used to query tags of a specified instance.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/{resource_type}/{resource_id}/tags
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
resource_type |
String |
Yes |
|
resource_id |
String |
Yes |
Indicates a resource ID. |
Request
Response
- Response parameters
Returned status code 200: successful query
Table 2 Parameters in the response body Parameter
Type
Description
tags
Array of ResourceTag objects
Specifies the list of resource tags.
- Example response
{ "tags":[ { "key":"key1", "value":"value1" } ] }
Status Codes
For details, see Status Codes.
Parent topic: Tags