Querying Pipeline Role Permissions
Function
This API is used to query pipeline role permissions.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/api/pipeline-permissions/{pipeline_id}/role-permission
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Parameter description: CodeArts project ID. Constraints: N/A. Value Range: The value contains 32 characters. Default value: N/A. |
pipeline_id |
Yes |
String |
Parameter description: Pipeline ID. Constraints: N/A. Value Range: The value contains 32 characters. Default value: N/A. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
roles |
Array of roles objects |
Details list. |
Parameter |
Type |
Description |
---|---|---|
pipeline_id |
String |
Pipeline ID. |
role_id |
Integer |
Role ID. |
role_name |
String |
Role name. |
operation_query |
Boolean |
Permission to query. |
operation_execute |
Boolean |
Permission to execute. |
operation_update |
Boolean |
Permission to edit. |
operation_delete |
Boolean |
Permission to delete. |
operation_authorize |
Boolean |
Permission to configure pipeline permissions. |
Example Requests
GET https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-permissions/0747d5a7099e45f69dc1d099945909a9/role-permission
Example Responses
Status code: 200
ok
{ "roles" : [ { "pipeline_id" : null, "role_id" : 1, "role_name" : "Pipeline creator.", "operation_query" : true, "operation_execute" : true, "operation_update" : true, "operation_delete" : true, "operation_authorize" : false } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
ok |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot