ConoHa API Documantation

サブネット詳細取得 - Network API v2.0

Description

サブネットの詳細を取得します。

Request URL

Network API v2.0

GET /v2.0/subnets/{subnet_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
subnet_id subnet 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/subnets/0569c47a-d349-4a23-a45b-ae9a50d9d847
  • RES
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 08:30:56 GMT
Content-Type: application/json
Content-Length: 453
Connection: keep-alive

{
    "subnet": {
        "name": "ext-133-130-48-0-23",
        "enable_dhcp": true,
        "network_id": "d3ae282c-3c79-4bb6-ae9d-40318bc1059e",
        "tenant_id": "647dcc7827f24909a096147ea4a4ccca",
        "dns_nameservers": [
            "157.7.180.133",
            "210.157.3.4"
        ],
        "gateway_ip": "133.130.48.1",
        "ipv6_ra_mode": null,
        "allocation_pools": [
            {
                "start": "133.130.48.16",
                "end": "133.130.49.240"
            }
        ],
        "host_routes": [],
        "ip_version": 4,
        "ipv6_address_mode": null,
        "cidr": "133.130.48.0/23",
        "id": "0569c47a-d349-4a23-a45b-ae9a50d9d847"
    }
}