Querying Pipeline Permissions of a User
Function
This API is used to query whether the current user has the permissions to edit and execute pipelines based on the tenant ID.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{tenant_id}/api/pipelines/check-rights
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
tenant_id |
Yes |
String |
Definition: Tenant ID, that is, domain ID of a user. Constraints: N/A Value range: The value consists of 32 characters, including only digits and letters. Default value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
resourceIds |
No |
Array of strings |
Definition: Authentication success list. Value range: N/A |
|
resourceType |
No |
String |
Definition: Pipeline authentication resource type. Range:
|
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
query |
Boolean |
Definition: Whether the query permission is granted. Range:
|
|
update |
Boolean |
Definition: Whether the edit permission is granted. Range:
|
|
execute |
Boolean |
Definition: Whether the execute permission is granted. Range:
|
|
delete |
Boolean |
Definition: Whether the delete permission is granted. Range:
|
|
banned |
Boolean |
Definition: Whether the disable permission is granted. Range:
|
|
copy |
Boolean |
Definition: Whether the clone permission is granted. Range:
|
|
authorize |
Boolean |
Definition: Whether the authorization permission is granted. Range:
|
|
tag |
Boolean |
Definition: Whether the tag permission is granted. Range:
|
Example Requests
POST https://{endpoint}/v5/{tenant_id}/api/pipelines/check-rights
{
"resource_ids" : [ "139953f68ab9419b864f7bfa8091894d" ],
"resource_type" : "pipeline"
}
Example Responses
Status code: 200
OK
[ {
"139953f68ab9419b864f7bfa8091894d" : {
"query" : true,
"update" : true,
"execute" : true,
"delete" : true,
"banned" : true,
"copy" : true,
"authorize" : true,
"tag" : true,
"manual_release" : 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