Show Network

Verb URI Description
GET /networks/network_id Returns details about a specific network, including provider networks attributes.

Normal Response Code: 200 OK

Error Response Code: 401 Unauthorized, 404 Not Found

When the provider networks extension is enabled, and the user submitting the request is authorized to see provider networks mapping, this operation returns, for the network specified in the request URI, its provider network attributes, as well as all the attributes normally retuned by the show networks operation.

 

Example 4.3. Show network with provider attributes: JSON Response

{
  "network":
  {
    "status": "ACTIVE",
    "subnets": [],
    "name": "network-1",
    "admin_state_up": true,
    "tenant_id": "c1210485b2424d48804aad5d39c61b8f",
    "id": "3a06dfc7-d239-4aad-9a57-21cd171c72e5",
    "shared": false,
    "provider:network_type": "vlan",
    "provider:physical_network": "physnet_1",
    "provider:segmentation_id": 101
  }
}

 

Example 4.4. Show network with provider attributes: XML Response

<?xml version='1.0' encoding='UTF-8'?>
<network xmlns="http://openstack.org/neutron/api/v2.0"
    xmlns:provider="http://docs.openstack.org/ext/provider/api/v1.0"
    xmlns:neutron="http://openstack.org/neutron/api/v2.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <status>ACTIVE</status>
    <name>network-1</name>
    <admin_state_up neutron:type="bool">True</admin_state_up>
    <tenant_id>c1210485b2424d48804aad5d39c61b8f</tenant_id>
    <shared neutron:type="bool">False</shared>
    <id>3a06dfc7-d239-4aad-9a57-21cd171c72e5</id>
    <provider:network_type>vlan</provider:network_type>
    <provider:physical_network>physnet_1</provider:physical_network>
    <provider:segmentation_id neutron:type="int"
        >101</provider:segmentation_id>
</network>

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...