ListServiceCredentials
Retrieves a list of service credentials.
Try it now
Test
RAM authorization
Request syntax
GET /organization/{organizationId}/serviceCredentials HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The ID of the organization. You can get the organization ID from the URL of your organization in Alibaba Cloud DevOps, for example, |
5ebbc0228123212b59xxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceCredentialType |
string |
Yes |
Filters the results by the service credential type. |
username_password (用户名密码类型) |
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 |
| serviceCredentials |
array<object> |
The list of service credentials. |
|
|
object |
An object that contains the details of a service credential. |
||
| id |
integer |
The ID of the service credential. |
123 |
| ownerName |
string |
The owner name. |
张三 |
| type |
string |
The service credential type. |
Codeup |
| ownerStaffId |
string |
The Staff ID of the credential owner. |
123456789 |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMessage": "\"\"",
"errorCode": "\"\"",
"success": true,
"serviceCredentials": [
{
"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.