Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
21 KiB
Response Parameters for Querying Security Groups
Response parameters are as follows.
Parameter description
Parameter |
Type |
Description |
---|---|---|
security_groups |
Array of security_group objects |
Specifies the security group objects. For details, see Table 2. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Specifies the security group name. |
description |
String |
Provides supplementary information about the security group. |
id |
String |
Specifies the security group ID, which uniquely identifies the security group. |
vpc_id |
String |
Specifies the resource ID of the VPC to which the security group belongs. NOTE:
This parameter has been discarded. Do not use it. |
security_group_rules |
Array of security_group_rule objects |
Specifies the default security group rules, which ensure that resources in the security group can communicate with one another. |
enterprise_project_id |
String |
NOTE:
This parameter is unsupported. Do not use it. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the security group rule ID, which uniquely identifies the security group rule. |
description |
String |
|
security_group_id |
String |
Specifies the security group rule ID, which uniquely identifies the security group rule. |
direction |
String |
|
ethertype |
String |
|
protocol |
String |
|
port_range_min |
int |
|
port_range_max |
int |
|
remote_ip_prefix |
String |
|
remote_group_id |
String |
|
Example response
{ "security_groups": [ { "id": "16b6e77a-08fa-42c7-aa8b-106c048884e6", "name": "qq", "description": "qq", "vpc_id": "3ec3b33f-ac1c-4630-ad1c-7dba1ed79d85", "security_group_rules": [ { "direction": "egress", "ethertype": "IPv4", "id": "369e6499-b2cb-4126-972a-97e589692c62", "description": "", "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6" }, { "direction": "ingress", "ethertype": "IPv4", "id": "0222556c-6556-40ad-8aac-9fd5d3c06171", "description": "", "remote_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6", "security_group_id": "16b6e77a-08fa-42c7-aa8b-106c048884e6" } ] }, { "id": "9c0f56be-a9ac-438c-8c57-fce62de19419", "name": "default", "description": "qq", "vpc_id": "13551d6b-755d-4757-b956-536f674975c0", "security_group_rules": [ { "direction": "egress", "ethertype": "IPv4", "id": "95479e0a-e312-4844-b53d-a5e4541b783f", "description": "", "security_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419" }, { "direction": "ingress", "ethertype": "IPv4", "id": "0c4a2336-b036-4fa2-bc3c-1a291ed4c431", "description": "", "remote_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419", "security_group_id": "9c0f56be-a9ac-438c-8c57-fce62de19419" } ] } ] }