Files
doc-exports/docs/iam/api-ref/en-us_topic_0066154567.html
weihongmin1 46d24ba358 IAM API 0401 Version
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-01-14 14:13:49 +00:00

21 KiB

Querying Information About a Specified Project

Function

This API is used to query detailed information about a project based on the project ID.

URI

  • URI format

    GET /v3/projects/{project_id}

  • URI parameters

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID.

Request Parameters

  • Parameters in the request header

    Parameter

    Mandatory

    Type

    Description

    X-Auth-Token

    Yes

    String

    Authenticated token.

    Content-Type

    Yes

    String

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

  • Example request

    Obtaining information about the project whose ID is project_id=619d3e78f61b4be68bc5aa0b59edcf7b

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

Response Parameters

  • Parameters in the response body

    Parameter

    Type

    Description

    project

    Object

    Project information.

  • project

    Parameter

    Type

    Description

    is_domain

    Boolean

    false.

    description

    String

    Description of the project.

    links

    Object

    Project resource link.

    enabled

    Boolean

    Whether a project is available.

    id

    String

    Project ID.

    parent_id

    String

    ID of the specified project if you query a project created by you.

    Account ID if you query a specified system project.

    domain_id

    String

    Account ID of the project.

    name

    String

    Project name.

  • project.links
  • Example response
{
  "project": {
    "is_domain": false,
    "description": "",
    "links": {
      "self": "https://sample.domain.com/v3/projects/2e93d63d8d2249f5a4ac5e2c78586a6e"
    },
    "enabled": true,
    "id": "2e93d63d8d2249f5a4ac5e2c78586a6e",
    "parent_id": "44c0781c83484eb9a4a5d4d233522cea",
    "domain_id": "44c0781c83484eb9a4a5d4d233522cea",
    "name": "MOS"   //Default project name of OBS
  }
}

Status Codes

Status Code

Description

200

The request is successful.

400

The server failed to process the request.

401

Authentication failed.

403

Access denied.

404

The requested resource cannot be found.

500

Internal server error.