ネットワーク一覧取得

Description

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

Request URL

Network API v2.0

GET /v2.0/network

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" \
ネットワークエンドポイント/networks
  • Response
HTTP/1.1 200 OK
Date: Fri, 30 Mar 2018 02:15:48 GMT
Server: Apache
Content-Length: 1643
Content-Type: application/json

{
    "networks": [
        {
            "status": "ACTIVE", 
            "subnets": [
                "サブネットID"
            ], 
            "name": "ネットワーク名", 
            "router:external": false, 
            "tenant_id": "テナントID", 
            "admin_state_up": true, 
            "shared": false, 
            "id": "ネットワークID"
       }, 
       {
           "status": "ACTIVE", 
            "subnets": [
            ], 
            "name": "ネットワーク名", 
            "router:external": false, 
            "tenant_id": "テナントID", 
            "admin_state_up": true, 
            "shared": true, 
            "id": "ネットワークID"
       } 
    ]
}

Internet for everyone

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