• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Network
  6. Show network

Show network

Function Description

This interface is used to query details about a network.

Interface Format

Method

URI

Description

GET

/v2.0/networks/{network-id}

Queries details about the specified network.

Restrictions

N/A

Request Parameter

None

Response Parameter

Parameter

Type

Mandatory

Description

network

Dict

Yes

Specifies the network object. For details, see Table 1.

Request Example

GET /v2.0/networks/60c809cb-6731-45d0-ace8-3bf5626421a9

Response Example

{
    "network": {
        "status": "ACTIVE",
        "subnets": [],
"availability_zone_hints": [],
"availability_zones": [],
        "name": "demo-net",
        "admin_state_up": true,
        "tenant_id": "6fbe9263116a4b68818cf1edce16bc4f",
        "router:external": false,
        "shared": false,
        "port_security_enabled":true,
        "id": "60c809cb-6731-45d0-ace8-3bf5626421a9",
    }
}

Error Code

See section Return Code Processing.