Help Center/ Cloud Operations Center/ API Reference/ API/ Application Resource Management/ Enterprise Projects/ Querying Enterprise Projects That Are Added to Favorites
Updated on 2025-10-24 GMT+08:00

Querying Enterprise Projects That Are Added to Favorites

Function

This API is used to query enterprise projects that are added to favorites. You can filter resources by enterprise project to quickly view resources.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    coc::listEpsCollection

    List

    -

    -

    • coc:enterpriseProject:listCollect

    -

URI

GET /v1/enterprise-project-collect

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

id

No

String

Definition:

Unique ID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

marker

No

String

Definition:

Pagination query parameter, which is the last ID of the request on the previous page.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

limit

Yes

Integer

Definition:

Number of items displayed on each page when the pagination query is performed.

Constraints:

N/A

Value range:

It is user-defined. The value ranges from 1 to 500.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

data

Array of data objects

Definition:

Objects that are added to favorites.

Value range:

The list contains 0 to 500 items.

Table 3 data

Parameter

Type

Description

id

String

Definition:

Unique ID.

Value range:

N/A

user_id

String

Definition:

User ID.

Value range:

N/A

ep_id_list

Array of strings

Definition:

List of enterprise projects added to favorites.

Value range:

N/A

Example Requests

Query enterprise projects that are added to favorites.

GET https://{Endpoint}/v1/enterprise-project-collect?limit=1

Example Responses

Status code: 200

The enterprise projects that are added to favorites are queried.

{
  "data" : [ {
    "id" : "67f377fb82f8e23d90f75574",
    "user_id" : "653989085ba7487184d7cf219b8aa51e",
    "ep_id_list" : [ "0", "a30b64a9-4b25-46b1-b063-ed477ee94069", "fae3f65d-43b1-4ec6-bd0f-ba23c3d1df05" ]
  } ]
}

Status Codes

Status Code

Description

200

The enterprise projects that are added to favorites are queried.

Error Codes

See Error Codes.