虚拟私有云 VPC-创建安全组:响应示例

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

响应示例

状态码: 201

POST操作正常返回,更多状态码请参见状态码

  • {
      "security_group" : {
        "id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
        "name" : "security_group_1",
        "project_id" : "060576782980d5762f9ec014dd2f1148",
        "description" : "security group description",
        "enterprise_project_id" : "0",
        "security_group_rules" : [ {
          "id" : "f11a3824-ac19-4fad-b4f1-c5f4a6dd0a80",
          "project_id" : "060576782980d5762f9ec014dd2f1148",
          "security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "remote_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "direction" : "ingress",
          "protocol" : null,
          "description" : "",
          "created_at" : "2020-07-09T05:56:27Z",
          "updated_at" : "2020-07-09T05:56:27Z",
          "ethertype" : "IPv6",
          "remote_ip_prefix" : null,
          "multiport" : null,
          "remote_address_group_id" : null,
          "action" : "allow",
          "priority" : 100
        }, {
          "id" : "3d6480e8-9ea4-46dc-bb1b-8db190cd5677",
          "project_id" : "060576782980d5762f9ec014dd2f1148",
          "security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "remote_group_id" : null,
          "direction" : "egress",
          "protocol" : null,
          "description" : "",
          "created_at" : "2020-07-09T05:56:27Z",
          "updated_at" : "2020-07-09T05:56:27Z",
          "ethertype" : "IPv6",
          "remote_ip_prefix" : null,
          "multiport" : null,
          "remote_address_group_id" : null,
          "action" : "allow",
          "priority" : 100
        }, {
          "id" : "9581f18c-1fdd-43da-ace9-7758a56ef28a",
          "project_id" : "060576782980d5762f9ec014dd2f1148",
          "security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "remote_group_id" : null,
          "direction" : "egress",
          "protocol" : null,
          "description" : "",
          "created_at" : "2020-07-09T05:56:27Z",
          "updated_at" : "2020-07-09T05:56:27Z",
          "ethertype" : "IPv4",
          "remote_ip_prefix" : null,
          "multiport" : null,
          "remote_address_group_id" : null,
          "action" : "allow",
          "priority" : 100
        }, {
          "id" : "a3ba270e-e58b-432d-a912-aeb7eace9fb8",
          "project_id" : "060576782980d5762f9ec014dd2f1148",
          "security_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "remote_group_id" : "69c999ad-d9ef-4d79-94fd-35e6ceb75325",
          "direction" : "ingress",
          "protocol" : null,
          "description" : "",
          "created_at" : "2020-07-09T05:56:27Z",
          "updated_at" : "2020-07-09T05:56:27Z",
          "ethertype" : "IPv4",
          "remote_ip_prefix" : null,
          "multiport" : null,
          "remote_address_group_id" : null,
          "action" : "allow",
          "priority" : 100
        } ],
        "created_at" : "2020-07-09T05:56:27Z",
        "updated_at" : "2020-07-09T05:56:27Z"
      },
      "request_id" : "a8cf4f79ca3c22ca685e7e8872e8c20b"
    }
support.huaweicloud.com/api-vpc/vpc_apiv3_0010.html