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

时间:2024-09-14 15:40:20

请求示例

  • 创建安全组,指定名称为security_group_1,描述为security group description,指定预检该请求。

    POST https://{Endpoint}/v3/{project_id}/vpc/security-groups
    
    {
      "security_group" : {
        "name" : "security_group_1",
        "description" : "security group description"
      },
      "dry_run" : true
    }
  • 创建安全组,指定名称为security_group_1,描述为security group description。

    POST https://{Endpoint}/v3/{project_id}/vpc/security-groups
    
    {
      "security_group" : {
        "name" : "security_group_1",
        "description" : "security group description"
      }
    }
support.huaweicloud.com/api-vpc/vpc_apiv3_0010.html