This API is used to query all tags of a specified resource type in a specified project of a tenant.
For details, see Calling APIs.
GET /v5/{project_id}/{resource_type}/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 |
|
Returned status code 200: successful query
Parameter |
Type |
Description |
---|---|---|
tags |
Array of ResourceTag objects |
Specifies the list of resource tags. |
{ "tags":[ { "key":"key1", "values":["value1"] } ] }
For details, see Status Codes.