Querying the Enterprise Project List

Function

This API is used to query the list of enterprise projects that can be managed by a user. The user can add resources to an enterprise project in the list.

URI

GET /v1.0/enterprise-projects

Table 1 Query parameters

Name

Mandatory

Type

Description

id

No

String

Specifies the ID of an enterprise project. The value 0 indicates enterprise project default.

limit

No

Interger

Specifies the number of records to be queried. The default value is 1000. The maximum value is 1000, and the minimum value is 1.

name

No

String

Specifies the enterprise project name. Fuzzy search is supported.

offset

No

Interger

Specifies the index position, which starts from the next data record specified by offset. The value must be a number and cannot be a negative number. The default value is 0.

sort_dir

No

String

Specifies the result sorting order. The default value is desc.

  • desc: Results are sorted in descending order.
  • asc: Results are sorted in ascending order.

sort_key

No

String

Specifies the keyword by which the results to return are sorted. Keywords such as updated_at are supported. By default, the keyword created_at is used.

status

No

Integer

Specifies the enterprise project status.

  • 1: The enterprise project is enabled.
  • 2: The enterprise project is disabled.

Request

Table 2 Parameters in the request header

Parameter

Mandatory

Type

Description

X-Auth-Token

No

String

Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set scope to domain. The value of X-Subject-Token in the response header is the user token.

Response

Status code: 200

Status Codes

For details, see Status Code.

Error Codes

For details, see Error Codes.