Querying All Tags of a Tenant
Function
This API is used to query the tags of all resources owned by a tenant in a specified project.
URI
GET /v2/{project_id}/dcs/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Request
None
Response
Example response with status code 200:
Parameter |
Type |
Description |
---|---|---|
tags |
Array of Tag Objects |
List of tags. |
Example Request
POST https://{dcs_endpoint}/v2/{project_id}/dcs/tags
Example Response
Example response with status code 200:
Successfully queried all tags of a tenant.
{ "tags" : [ { "value" : [ "value1", "value2" ], "key" : 1 }, { "value" : [ "value1", "value2" ], "key" : 2 } ] }
Status Code
Status Code |
Description |
---|---|
200 |
Successfully queried all tags of a tenant. |
400 |
The request is invalid. |
500 |
Internal service error. |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot