• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Services and Endpoints
  6. Querying the Service Catalog

Querying the Service Catalog

Function Description

This interface is used to query the service catalog corresponding to X-Auth-Token contained in the request.

URI

URI format

GET /v3/auth/catalog

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Authenticated scoped token of a project.

  • Sample request
    curl -i -k -H 'Accept:application/json' -H 'X-Auth-Token:$token' -H 'Content-Type:application/json;charset=utf8' -X GET https://iam.example.com/v3/auth/catalog

Response

Sample response (successful request)
{
  "catalog": [
    {
      "endpoints": [
        {
          "region_id": null,
          "url": "https://172.30.49.68:7443/v2/c972a59e958e407e89b0c6d8e522df3b",
          "region": null,
          "interface": "public",
          "id": "04f0ee42038447f0a9c7b407028fd7b9"
        }
      ],
      "type": "compute",
      "id": "eb884e9f64b44dd0ac73cdc55d817286",
      "name": "nova"
    }
  ],
  "links": {
    "self": "https://iam.example.com/v3/auth/catalog"
  }
}

Status Codes

Status Code

Description

200

The request is successful.

400

The server failed to process the request.

401

You must enter a username and password to access the requested page.

403

You are forbidden to access the requested page.

404

The server could not find the requested page.

405

You are not allowed to use the method specified in the request.

413

The request entity is too large.

500

Failed to complete the request because of an internal service error.

503

Failed to complete the request because the service is unavailable.