ConoHa API Documantation

セキュリティグループ詳細取得 - Network API v2.0

Description

Request URL

Network API v2.0

GET /v2.0/security-groups/{security_group_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
security_group_id security_group ID URI セキュリティグループID

Request Json

This operation does not accept a request body.

Normal response codes

200

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
https://networking.tyo1.conoha.io/v2.0/security-groups/6cdb77f5-0e85-49cf-b093-acb3ab41e730
  • RES
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 08:37:53 GMT
Content-Type: application/json
Content-Length: 1443
Connection: keep-alive

{
    "security_group": {
        "tenant_id": "22394afc818d471ca2f0308c06ae7460",
        "description": "default",
        "id": "6cdb77f5-0e85-49cf-b093-acb3ab41e730",
        "security_group_rules": [
            {
                "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": "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": "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"
            }
        ],
        "name": "default"
    }
}