ConoHa API Documantation

ネットワーク一覧取得 - Network API v2.0

Description
ネットワーク一覧を取得します

Request URL

Network API v2.0

GET /v2.0/networks

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン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/networks
  • RES
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 08:45:33 GMT
Content-Type: application/json
Content-Length: 2646
Connection: keep-alive

{
    "networks": [
        {
            "status": "ACTIVE",
            "subnets": [
                "ae494681-aa99-44da-a0e0-cc2ac50aae03"
            ],
            "name": "shared-172-21-114-0-23",
            "router:external": false,
            "tenant_id": "647dcc7827f24909a096147ea4a4ccca",
            "admin_state_up": true,
            "shared": true,
            "id": "19444ca8-23e3-4857-94bf-c25d720e1156"
        },
        {
            "status": "ACTIVE",
            "subnets": [
                "4e6b5a68-f25b-45a0-8690-961a95aa1adf"
            ],
            "name": "shared-172-21-140-0-23",
            "router:external": false,
            "tenant_id": "647dcc7827f24909a096147ea4a4ccca",
            "admin_state_up": true,
            "shared": true,
            "id": "f1aad83c-2f38-4836-b89e-c25587001cf2"
        }
    ]
}