虚拟私有云

查询安全组规则

2022-06-13 09:47:39

接口名

URI

请求方法

查询安全组规则

/v3/getSecurityGroupRules

GET

参数列表

参数名

类型

是否必选

描述


regionId

String

资源池ID, 例:100054c0416811e9a6690242ac110002


securityGroupRuleId

 

String

安全组规则ID, 例:96445d0b-d6cd-494e-af8f-f52f6e30f375

 


securityGroupId

 

String

安全组ID, 例:707fdf58-924c-4d6f-9e33-fc1e6a9fc58b

 


请求示例


HTTP Header:

 

regionId: 100054xxxx

securityGroupRuleId: 96445d0b-d6cd-494e-af8f-f52f6e30f375

securityGroupId: 707fdf58-924c-4d6f-9e33-fc1e6a9fc58b


返回示例


{

    "returnObj": {

        "security_group_rules": [

            {

                "remote_group_id": null,

                "direction": "ingress",

                "description": "",

                "ethertype": "IPv4",

                "security_group_id": "3492ddc0-762e-4fd2-9485-19a2696f0cee",

                "tenant_id": "e426e5359cb848c0a97c9c77fd45df72",

                "id": "c6bdd878-ee93-4502-95b1-d3729de94956"

            }

        ]

    },

    "statusCode": 800

}