forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
9.4 KiB
9.4 KiB
Querying Tags of a Tenant's Resource
Function
This API is used to obtain tags of resources of a tenant based on the tenant ID and resource type.
URI
GET /v1/{project_id}/{resource_type}/tags
Table 1 describes parameters in this URI.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
resource_type |
Yes |
String |
Specifies the resource type, which can be endpoint_service or endpoint. |
Request
Response
- Parameter description
Table 2 Response parameter Parameter
Mandatory
Type
Description
tags
Yes
List<resource_tag>
Lists the tags.
Table 3 Data structure of field resource_tag Parameter
Mandatory
Type
Description
key
Yes
String
Specifies the tag key.
values
Yes
List<String>
Specifies the tag value list.
- Example response
{ "tags": [ { "key": "key1", "values": [ "*value1", "value2" ] } ] }
Status Codes
See Status Codes.
Parent topic: Tags