Querying Security Group Tags
Function
This API is used to query tags of a specified security group.
Debugging
You can debug this API through automatic authentication in API Explorer.
URI
GET /v2.0/{project_id}/security-groups/{security_group_id}/tags
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID |
|
security_group_id |
Yes |
String |
Security Group ID |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
tags |
Array of ResourceTag objects |
Tags |
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
String |
|
|
value |
String |
|
Example Requests
Querying Security Group Tags
GET https://{Endpoint}/v2.0/{project_id}/security-groups/{security_group_id}/tags
Example Responses
Status code: 200
The response to the request is normal. For more status codes, see Status Codes.
{
"tags" : [ {
"key" : "key1",
"value" : "value1"
}, {
"key" : "key2",
"value" : "value3"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The response to the request is normal. For more status codes, see Status Codes. |
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