Querying Security Group Tags in a Specified Project
Function
This API is used to query all security group tags of a tenant in a specified region.
Debugging
You can debug this API through automatic authentication in API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpc:securityGroups:listTags
List
securityGroup *
-
- vpc:securityGroupTags:get
-
URI
GET /v2.0/{project_id}/security-groups/tags
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
tags |
Array of ListTag objects |
Tags |
Example Requests
Querying Security Group Tags in a Specified Project
GET https://{Endpoint}/v2.0/{project_id}/security-groups/tags
Example Responses
Status code: 200
The response to the request is normal. For more status codes, see Status Codes.
{
"tags" : [ {
"key" : "key1",
"values" : [ "value1", "value2" ]
}, {
"key" : "key2",
"values" : [ "value1", "value2" ]
} ]
}
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