セキュリティグループ一覧取得

Description

セキュリティグループ一覧を取得します。

Request URL

Network API v2.0

GET /v2.0/security-groups

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID

Response

  • Normal response codes
200

Example

  • Request
curl -i -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
https://networking.jpt1.cloud.z.com/v2.0/security-groups
  • Response
HTTP/1.1 200 OK
Date: Thu, 07 Jul 2016 05:18:51 GMT
Server: Apache
Content-Length: 1535
Content-Type: application/json

{
    "security_groups": [
        {
            "tenant_id": "テナントID",
            "description": "セキュリティグループの説明や概要",
            "id": "セキュリティグループID",
            "security_group_rules": [
                {
                    "remote_group_id": null,
                    "direction": "ルールを適用するトラフィックの向き",
                    "remote_ip_prefix": null,
                    "protocol": null,
                    "ethertype": "イーサタイプ",
                    "tenant_id": "テナントID",
                    "port_range_max": null,
                    "port_range_min": null,
                    "id": "セキュリティグループルールID",
                    "security_group_id": "セキュリティグループID"
                },
                {
                    "remote_group_id": "通信を許可するセキュリティグループID",
                    "direction": "ルールを適用するトラフィックの向き",
                    "remote_ip_prefix": null,
                    "protocol": null,
                    "ethertype": "イーサタイプ",
                    "tenant_id": "テナントID",
                    "port_range_max": null,
                    "port_range_min": null,
                    "id": "セキュリティグループルールID",
                    "security_group_id": "セキュリティグループID"
                }
            ],
            "name": "セキュリティグループの名前"
        }
    ]
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.