虚拟私有云 VPC-创建安全组规则:请求示例

时间:2024-04-29 19:23:38

请求示例

  • 创建一条入方向安全组规则,所在安全组id为1c8d9f94-6022-4518-bb98-e0145fcc7b33。
    POST https://{Endpoint}/v3/{project_id}/vpc/security-group-rules
    
    {
        "security_group_rule": {
            "security_group_id": "1c8d9f94-6022-4518-bb98-e0145fcc7b33", 
            "direction": "ingress", 
            "protocol": "tcp", 
            "description": "security group rule description", 
            "action": "allow", 
            "priority": 1, 
            "multiport": "33", 
            "remote_ip_prefix": "10.10.0.0/16"
        }
    }
support.huaweicloud.com/api-vpc/vpc_apiv3_0016.html