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

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 トークンID 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" \
ネットワークエンドポイント/security-groups
  • Response
HTTP/1.1 200 OK
Date: Sat, 07 Apr 2018 18:25:56 GMT
Server: Apache
Content-Length: 3457
Content-Type: application/json

{
    "security_groups": [
        {
            "tenant_id": "テナントID", 
            "description": "", 
            "id": "セキュリティグループID", 
            "security_group_rules": [
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv6", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv4", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }
            ], 
            "name": "n-default"
        }, 
        {
            "tenant_id": "テナントID", 
            "description": "default", 
            "id": "セキュリティグループID", 
            "security_group_rules": [
                {
                    "remote_group_id": "48fc1847-ec0a-49d7-8a84-35ad2c112665", 
                    "direction": "ingress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv6", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": "48fc1847-ec0a-49d7-8a84-35ad2c112665", 
                    "direction": "ingress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv4", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv4", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv6", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }
            ], 
            "name": "default"
        }, 
        {
            "tenant_id": "テナントID", 
            "description": "", 
            "id": "セキュリティグループID", 
            "security_group_rules": [
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv6", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": null, 
                    "direction": "ingress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv4", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }, 
                {
                    "remote_group_id": null, 
                    "direction": "egress", 
                    "remote_ip_prefix": null, 
                    "protocol": null, 
                    "ethertype": "IPv4", 
                    "tenant_id": "テナントID", 
                    "port_range_max": null, 
                    "port_range_min": null, 
                    "id": "セキュリティグループルールID", 
                    "security_group_id": "セキュリティグループID"
                }
            ], 
            "name": "l-default"
        }
    ]
}

Internet for everyone

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