Modifying Pipeline Role Permissions
Function
This API is used to modify pipeline role permissions.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{project_id}/api/pipeline-permissions/{pipeline_id}/update-role-permission
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
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
pipeline_id |
No |
String |
Pipeline ID. |
operation_query |
Yes |
Boolean |
Permission to query. |
operation_execute |
Yes |
Boolean |
Permission to execute. |
operation_update |
Yes |
Boolean |
Permission to edit. |
operation_delete |
Yes |
Boolean |
Permission to delete. |
operation_authorize |
Yes |
Boolean |
Permission configuration permissions. |
role_id |
Yes |
Integer |
Role ID. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Definition: Response status. Value range: N/A |
Example Requests
POST http://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-permissions/0747d5a7099e45f69dc1d099945909a9/update-role-permission { "pipeline_id" : null, "operation_query" : true, "operation_execute" : true, "operation_update" : true, "operation_delete" : false, "operation_authorize" : false, "role_id" : 4 }
Example Responses
Status code: 200
Response body.
{ "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body. |
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