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
|
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 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
resource |
No |
String |
Definition: Permission type. Constraints: N/A Range:
Default value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
[items] |
Array of AuthorizationVerdictVO objects |
Definition: Permission list. Range: N/A |
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.
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