• Elastic IP

eip
  1. Help Center
  2. Elastic IP
  3. API Reference
  4. OpenStack Neutron APIs
  5. API Version Information
  6. Querying a Specified API Version

Querying a Specified API Version

Function

This interface is used to query the version of a specified API.

URI

GET /{api_version}

Table 1 Parameter description

Parameter

Type

Description

api_version

String

Specifies the version number, for example v2.0.

Request Message

  • Request parameter
    Table 2 Request parameter

    Parameter

    Type

    Description

    api_version

    String

    Specifies the version number, for example v2.0.

  • Example request
    GET /v2.0

Response Message

  • Response parameter
    Table 3 Response parameter

    Parameter

    Type

    Description

    resources

    List

    Specifies the resource object list.

    Table 4 resource object

    Parameter

    Type

    Description

    name

    String

    Specifies the resource name.

    collection

    String

    Specifies the resource collection name.

    links

    List

    Specifies the link list.

    href

    String

    Specifies the API link.

    rel

    String

    Specifies the relationship between the API link and the API version.

  • Example response
    {
        "resources": [
            {
                "links": [
                    {
                        "href": "https://vpc.systems.com/v2.0/subnets",
                        "rel": "self"
                    }
                ],
                "name": "subnet",
                "collection": "subnets"
            },
            {
                "links": [
                    {
                        "href": "https://vpc.systems.com/v2.0/networks",
                        "rel": "self"
                    }
                ],
                "name": "network",
                "collection": "networks"
            },
            {
                "links": [
                    {
                        "href": "https://vpc.systems.com/v2.0/ports",
                        "rel": "self"
                    }
                ],
                "name": "port",
                "collection": "ports"
            }
        ]
    }

Status Codes

For details, see section Status Codes.