• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Project
  6. Querying Information About a Specified Project

Querying Information About a Specified Project

Function Description

This interface is used to query detailed information about a project based on the project ID. This interface applies only to domain names in the Global zone.

URI

  • URI format

    GET /v3/projects/{project_id}

  • URI parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Valid token (the token of the current domain)

    Content-Type

    Yes

    String

    Fill application/json;charset=utf8 in this field.

  • Sample request

    Obtaining information about the project whose ID is 619d3e78f61b4be68bc5aa0b59edcf7b

    curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -H "X-Auth-Token:$token" -X GET https://10.64.23.150:31943/v3/projects/619d3e78f61b4be68bc5aa0b59edcf7b

Response

  • Sample response
{
  "project": {
    "is_domain": false,
    "description": "",
    "links": {
      "self": "None/v3/projects/2e93d63d8d2249f5a4ac5e2c78586a6e"
    },
    "enabled": true,
    "id": "2e93d63d8d2249f5a4ac5e2c78586a6e",
    "parent_id": "44c0781c83484eb9a4a5d4d233522cea",
    "domain_id": "44c0781c83484eb9a4a5d4d233522cea",
    "name": "MOS"
  }
}

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.

500

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