Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Querying Whether Pipeline Resource-Level Permission Is Enabled
Updated on 2025-09-08 GMT+08:00

Querying Whether Pipeline Resource-Level Permission Is Enabled

Function

This API is used to query whether pipeline resource-level permission is enabled.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{project_id}/api/pipeline-permissions/{pipeline_id}/permission-switch

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

Project ID. For details, see Obtaining a Project ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

pipeline_id

Yes

String

Definition:

Pipeline ID. Obtain the ID by calling the API for querying pipelines. pipelines.pipelineId indicates the pipeline ID.

Constraints:

N/A

Value range:

The value consists of 32 characters, including digits and letters.

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

is_use_devuc

Boolean

Whether to enable project permission configuration.

is_allow_edit

Boolean

Whether the permissions can be edited.

Example Requests

GET http://(endpoint)/v5/071112d87d3e4ed49130c691936202e9/api/pipeline-permissions/53acae73a3f44b2994f9b20a710721c6/permission-switch

Example Responses

Status code: 200

Response body.

{
  "is_use_devuc" : false,
  "is_allow_edit" : true
}

Status Codes

Status Code

Description

200

Response body.

Error Codes

See Error Codes.