• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Project
  6. Querying the List of Projects Accessible to Federated Users

Querying the List of Projects Accessible to Federated Users

Function Description

This interface is used to query the list of projects accessible to federated users. The project list is used to obtain the scoped token in federated identity authentication mode.

URI

URI format

GET /v3/OS-FEDERATION/projects

Request

  • Sample request
    GET /v3/OS-FEDERATION/projects

Response

  • Response body parameter description

    Parameter

    Mandatory

    Type

    Description

    projects

    Yes

    array

    List of projects.

    links

    Yes

    Object

    Link to a resource.

  • Sample response
    {
      "links": {
        "self": "https://sample.domain.com/v3/OS-FEDERATION/projects",
        "previous": null,
        "next": null
      },
      "projects": [
        {
          "is_domain": false,
          "description": "",
          "links": {
            "self": "https://sample.domain.com/v3/projects/05cf683c351e43518618d9fa96a5efa9"
          },
          "enabled": true,
          "id": "05cf683c351e43518618d9fa96a5efa9",
          "parent_id": "e31ac82d778b4d128cb6fed37fd72cdb",
          "domain_id": "e31ac82d778b4d128cb6fed37fd72cdb",
          "name": "region_name"
        },
        {
          "is_domain": false,
          "description": "",
          "links": {
            "self": "https://sample.domain.com/v3/projects/32b56f108f87418e8219317beb0fff3c"
          },
          "enabled": true,
          "id": "32b56f108f87418e8219317beb0fff3c",
          "parent_id": "e31ac82d778b4d128cb6fed37fd72cdb",
          "domain_id": "e31ac82d778b4d128cb6fed37fd72cdb",
          "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.

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.