ListServiceAuths
Retrieves a list of service authorizations for an organization.
Try it now
Test
RAM authorization
Request syntax
GET /organization/{organizationId}/serviceAuths HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. You can find this ID in your browser's address bar after logging in to the Alibaba Cloud DevOps console. The URL is in the format |
5ebbc0228123212b59xxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceAuthType |
string |
Yes |
The service authorization type. |
RAM (阿里云RAM类型) |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
"" |
| success |
boolean |
Indicates whether the request was successful. |
true |
| serviceAuths |
array<object> |
The list of service authorizations. |
|
|
object |
|||
| id |
integer |
The service authorization ID. |
123 |
| ownerName |
string |
The owner name. |
张三 |
| type |
string |
The service authorization type. |
Codeup |
| ownerStaffId |
string |
The staff ID of the owner. |
123456789 |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMessage": "\"\"",
"errorCode": "\"\"",
"success": true,
"serviceAuths": [
{
"id": 123,
"ownerName": "张三",
"type": "Codeup",
"ownerStaffId": "123456789"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.ParamNotPresent | The parameter is invalid. | The parameter is invalid. |
| 400 | InvalidUser.NotFound | The user that is invoking the API service is not a registered user. | The user that is invoking the API service is not a registered user. |
| 403 | Forbidden.UserNotInCurrentOrganization | The user is not in the organization and is not authorized to perform the operation. | |
| 404 | InvalidOrganization.NotFound | The organization is not found. | The organization is not found. Please check the organization ID. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.