Querying Tags of a BMS
Function
- This API is used to query tags of a specified BMS.
- TMS uses this API to query all tags of a specified BMS.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
bms:servers:showBaremetalServerTags
read
instance*
- g:EnterpriseProjectId
- g:ResourceTag/<tag-key>
bms:servers:get
-
Example Request
None
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
tags |
List<resource_tag> |
Specifies the tag list. For details, see Table 2. |
Example Response
{
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value3"
}
]
}
Returned Values
- Normal
Returned Values
Description
200
OK
- Abnormal
Returned Values
Description
400
Invalid tag.
401
Authentication failed.
403
Insufficient permission.
404
The requested resource was not found.
500
A system exception occurred.
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