Show Subnet

Verb URI Description
GET /subnets/subnet-id Gets information about a specified subnet.

Normal Response Code: 200

Error Response Codes: Unauthorized (401), Not Found (404)

This operation returns data about the subnet specified in the request URI. You can control which attributes are returned by using the fields query parameter, as discussed in the section called “Filtering and Column Selection”.

This operation does not require a request body.

This operation returns a response body.

 

Example 4.17. Show Subnet: JSON Request

GET /v2.0/subnets/4156c7a5-e8c4-4aff-a6e1-8f3c7bc83861
Accept: application/json

 

Example 4.18. Show Subnet: JSON Response

status: 200
content-length: 309
content-type: application/json 
status: 200
content-length: 309
content-type: application/json

{
  "subnet": 
    {
     "name": "",
     "network_id": "ed2e3c10-2e43-4297-9006-2863a2d1abbc",
     "tenant_id": "c1210485b2424d48804aad5d39c61b8f",
     "allocation_pools": [{"start": "10.10.0.2", "end": "10.10.0.254"}],
     "gateway_ip": "10.10.0.1",
     "ip_version": 4,
     "cidr": "10.10.0.0/24", 
     "id": "4156c7a5-e8c4-4aff-a6e1-8f3c7bc83861",
     "enable_dhcp": false
    }
}
                   

Log a bug against this page


loading table of contents...