Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Querying the DevUC Permissions of a Pipeline User
Updated on 2025-12-04 GMT+08:00

Querying the DevUC Permissions of a Pipeline User

Function

This API is used to query the DevUC permissions of a pipeline user in a project based on the user ID.

Calling Method

For details, see Calling APIs.

URI

GET /v2/{cloudProjectId}/cicd/devuc-auth/query

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

cloudProjectId

Yes

String

Definition:

32-character UUID of a CodeArts project, which must be unique.

Constraints:

N/A

Value range:

The value contains 32 characters.

Default value:

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

resource

No

String

Definition:

Permission type.

Constraints:

N/A

Range:

  • create: permission to create a pipeline.

  • delete: permission to delete a pipeline.

  • update: permission to update a pipeline.

  • read: permission to query a pipeline.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of AuthorizationVerdictVO objects

Definition:

Permission list.

Range:

N/A

Table 4 AuthorizationVerdictVO

Parameter

Type

Description

action

String

Definition:

Permission details.

Value range:

N/A

verdict

String

Definition:

Whether the account has the permission.

Value range:

  • allow: The account has the permission.

  • deny: The account does not have the permission.

Example Requests

GET https://{endpoint}/v2/{cloudProjectId}/cicd/devuc-auth/query?cloud_project_id=4fca5a98a2814d3e982ca09bd8b43180&cloudProjectId=4fca5a98a2814d3e982ca09bd8b43180&_=1763887132015

Example Responses

Status code: 200

OK

[ {
  "action" : "create",
  "verdict" : "allow"
}, {
  "action" : "delete",
  "verdict" : "allow"
}, {
  "action" : "update",
  "verdict" : "allow"
}, {
  "action" : "read",
  "verdict" : "allow"
} ]

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.