Querying Tags of a Specified Resource Instance
Function
This API is used to query tags of a specified resource instance.
URI
GET /v3/{project_id}/{resource_type}/{resource_id}/tags
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID. |
resource_type |
Yes |
String |
Resource type. The options are:
|
resource_id |
Yes |
String |
Resource ID. Minimum length: 1 character Maximum length: 1,000 characters Obtain it as follows:
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Number of records displayed on each page. The default value is 1000. |
offset |
No |
Integer |
Query result offset. The default value is 0. |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
count |
Integer |
Number of tags. |
tags |
Array of objects |
List of resource tags. For details, see Table 4. |
Example Request
None
Example Response
{ "count": 2, "tags": [ { "key": "key1", "value": "value1" }, { "key": "key2", "value": "value3" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
The modification is successful. |
400 |
Request error. |
500 |
Internal server error. |
Error Codes
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