• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Keystone
  5. Project Management
  6. Querying the List of Projects to Be Deleted

Querying the List of Projects to Be Deleted

Function Description

This interface is used to query the list of projects to be deleted.

URI

  • URI format

    GET /core/v3-ext/abandoned-projects{?region}

  • Query parameter description

    Parameter

    Mandatory

    Type

    Description

    region

    No

    String

    Indicates the region where the list of projects to be deleted is to be queried.

    NOTE:

    The list of all projects to be deleted is returned when region is set to global.

Request

  • Request header parameter description

    Parameter

    Mandatory

    Type

    Description

    Content-Type

    Yes

    String

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

    X-Auth-Token

    Yes

    String

    A valid token (the token of a user with the op_cacheproxy permission).

  • Sample request
    curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -X "X-Auth-Token:$token" -X GET https://10.145.93.56:31943/core/v3-ext/abandoned-projects?region=cn-north-1

Response

Sample response
{
  "871697fa8d0c4ccb965430b7d9d19f88": // domainId
    ["3909c3c7cfbd4c9ca0e3121d4977dfd3", "c7d5144e91b24e628a8f2678a49176ea"], //projectId list
  "26762e93adf04de2b1437235e856ff08": 
    ["b5ed4c3fb60f4b8b897cfc223ec41361"],
  "225d904cec604c3b98f589ab2508170f": 
    ["0dc01ff8291a4c63940170f2cbf6b11a"]
}

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.

503

Failed to complete the request because the service is unavailable.