Description

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

Request URL

Network API

GET /v2.0/security-group-rules

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークンIDを指定します。

Response Code

Success

200

Example

Request

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
https://networking.tyo1.conoha.io/v2.0/security-group-rules

Response

HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 08:39:45 GMT
Content-Type: application/json
Content-Length: 5771
Connection: keep-alive

{
    "security_group_rules": [
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": "tcp",
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": 21,
            "port_range_min": 21,
            "id": "1a6d4892-3bfc-43cd-9ff8-f3f57a89af23",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "1c33f1ad-c2e4-47c2-9f00-414f3742fe63",
            "security_group_id": "4cb278af-80b9-4e81-9f70-b4407d826286"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "276247d2-80f2-4d88-90da-c3c36ef865d6",
            "security_group_id": "32e49620-88d5-4dec-9318-a70a5ed544be"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "289304be-e42a-4de2-ad3d-ae653b1dfb7b",
            "security_group_id": "32e49620-88d5-4dec-9318-a70a5ed544be"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "2ffdf2d2-3b2a-4b3a-89a2-fb5b2a9f8811",
            "security_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730"
        },
        {
            "remote_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730",
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "4117d7a3-e0ac-4f71-823a-e524d1d4ffc1",
            "security_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "5ae49198-c2a1-4fe1-8676-46fbab478894",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": "tcp",
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": 443,
            "port_range_min": 443,
            "id": "667f495e-60b5-41c5-844c-bc65decf7546",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": "tcp",
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": 80,
            "port_range_min": 80,
            "id": "6a06a7c2-1931-41df-8cde-a3c7415f2dce",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        },
        {
            "remote_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730",
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "8238b994-abea-42e6-b872-be475d5b306e",
            "security_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "87cc8101-9798-4e91-a0fd-a3fd3e25dae0",
            "security_group_id": "bda5122c-81bc-4dc5-b353-2d349c3e2063"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "a3cc9cbe-f4dd-4010-a3c5-1843e5c9ff17",
            "security_group_id": "4cb278af-80b9-4e81-9f70-b4407d826286"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv6",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "b9c2c5ba-cb22-4c09-8d46-3d2b7e725a95",
            "security_group_id": "4cb278af-80b9-4e81-9f70-b4407d826286"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "c291e64a-e450-454a-89ae-5ee6e5b62717",
            "security_group_id": "bda5122c-81bc-4dc5-b353-2d349c3e2063"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": "tcp",
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": 22,
            "port_range_min": 22,
            "id": "c3cfce5b-ae1f-4579-8a45-d323bb281069",
            "security_group_id": "bda5122c-81bc-4dc5-b353-2d349c3e2063"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "c79e56f0-d180-499c-bb4a-f6cd6f155eb7",
            "security_group_id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "db97cacc-e487-47fc-8139-628f749e3253",
            "security_group_id": "32e49620-88d5-4dec-9318-a70a5ed544be"
        },
        {
            "remote_group_id": null,
            "direction": "ingress",
            "remote_ip_prefix": null,
            "protocol": "tcp",
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": 20,
            "port_range_min": 20,
            "id": "dc14a4c6-f851-48ee-9819-62d18637e2de",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        },
        {
            "remote_group_id": null,
            "direction": "egress",
            "remote_ip_prefix": null,
            "protocol": null,
            "ethertype": "IPv4",
            "tenant_id": "22394afc818d471ca2f0308c06ae7460",
            "port_range_max": null,
            "port_range_min": null,
            "id": "dc64f144-5ce9-47f9-9cbf-06d3dc689f64",
            "security_group_id": "0b996a5e-c759-4850-b728-aa3324bde9dc"
        }
    ]
}

ConoHaにて提供しておりますAPIにつきましては、クラウド基盤として採用しておりますOpenStackの機能にて実装しておりますので、詳細な情報や使い方はOpenStackのドキュメントにてご確認ください。