• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Common Information
  6. Filtering Query Results

Filtering Query Results

Neutron APIs v2.0 allow users to filter returned results by adding the fields parameter to the URL of the list request.

Request Example

GET
/v2.0/networks?fields=name&fields=id

Response Example

{
    "networks": [
        {
            "name": "testnet01",
            "id": "3d42a0d4-a980-4613-ae76-a2cddecff054"
        },
        {
            "name": "liudongtest ",
            "id": "60c809cb-6731-45d0-ace8-3bf5626421a9"
        },
        {
            "name": "publicnet",
            "id": "9daeac7c-a98f-430f-8e38-67f9c044e299"
        }
    ]
}