サブネット一覧取得

Description

サブネットの一覧を取得します。

Request URL

Network API v2.0

GET /v2.0/subnets

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン 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" \
https://networking.jpt1.cloud.z.com/v2.0/subnets
  • Response
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 07:31:57 GMT
Server: Apache
Content-Length: 3314
Content-Type: application/json

{
    "subnets": [
        {
            "allocation_pools": [
                {
                    "end": "IPアドレス範囲の末尾", 
                    "start": "IPアドレス範囲の先頭"
                }
            ], 
            "cidr": "サブネットマスク", 
            "dns_nameservers": [], 
            "enable_dhcp": false, 
            "gateway_ip": null, 
            "host_routes": [], 
            "id": "サブネットID", 
            "ip_version": 4, 
            "ipv6_address_mode": null, 
            "ipv6_ra_mode": null, 
            "name": "サブネットの名前", 
            "network_id": "ネットワークID", 
            "tenant_id": "テナントID"
        }, 
        {
            "allocation_pools": [
                {
                    "end": "IPアドレス範囲の末尾", 
                    "start": "IPアドレス範囲の先頭"
                }
            ], 
            "cidr": "サブネットマスク", 
            "dns_nameservers": [], 
            "enable_dhcp": false, 
            "gateway_ip": "ゲートウェイのIPアドレス", 
            "host_routes": [], 
            "id": "サブネットID", 
            "ip_version": 4, 
            "ipv6_address_mode": null, 
            "ipv6_ra_mode": null, 
            "name": "サブネットの名前", 
            "network_id": "ネットワークID", 
            "tenant_id": "テナントID"
        }
    ]
}

Internet for everyone

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