ListServiceConnections
Retrieves the list of service connections.
Try it now
Test
RAM authorization
Request syntax
GET /organization/{organizationId}/serviceConnections HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. It is a string value that you can obtain from the Apsara DevOps URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
5ebbc0228123212b59xxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sericeConnectionType |
string |
Yes |
The service connection type. Valid values:
|
codeup |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. Each request has a unique ID for troubleshooting. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
"" |
| success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
| serviceConnections |
array<object> |
The service connections. |
|
|
object |
|||
| ownerAccountId |
integer |
The Alibaba Cloud account ID of the owner. |
1212123212121212 |
| name |
string |
The name of the service connection. |
Zhang San's OSS service connection |
| id |
integer |
The ID of the service connection. |
123 |
| type |
string |
The type of the service connection. |
oss |
| createTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1586863220000 |
| uuid |
string |
uuid |
o53grjznxeu1fofz |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorMessage": "\"\"",
"errorCode": "\"\"",
"success": true,
"serviceConnections": [
{
"ownerAccountId": 1212123212121212,
"name": "Zhang San's OSS service connection",
"id": 123,
"type": "oss",
"createTime": 1586863220000,
"uuid": "o53grjznxeu1fofz"
}
]
}
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.