ListServiceConnections - List service connections
Lists service connections by using OpenAPI.
|
Applicable editions |
Central edition, Region edition |
Service endpoints and authorization information
-
Obtain the service endpoint: use it to replace the {domain} parameter in the API request syntax.
-
Obtain the organizationId: required only for the Central edition. Go to the Organization Management console > Basic Information page to obtain the organization ID.
|
Product |
Resource |
Required permissions |
|
Pipeline |
Service connection |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/serviceConnections
Region edition
GET https://{domain}/oapi/v1/flow/serviceConnections
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
Your personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
The organization ID. |
5ebbc0228123212b59xxxxx |
|
sericeConnectionType |
string |
query |
Yes |
Deprecated. Use serviceConnectionType instead. |
codeup |
|
serviceConnectionType |
string |
query |
Yes |
The service connection type. |
codeup |
Sample request
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/serviceConnections?sericeConnectionType=codeup&serviceConnectionType=codeup' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/serviceConnections?sericeConnectionType=codeup&serviceConnectionType=codeup' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
array |
||
| - |
object |
||
|
createTime |
integer |
The time when the service connection was created. |
1586863220000 |
|
id |
integer |
The service connection ID. |
123 |
|
name |
string |
The name of the service connection. |
Zhang San's OSS service connection |
|
ownerAccountId |
integer |
The ID of the Alibaba Cloud account that owns the service connection. |
1212123212121212 |
|
type |
string |
The service connection type. |
oss |
|
uuid |
string |
The UUID. |
Sample response
[
{
"createTime": 1586863220000,
"id": 123,
"name": "Zhang San's OSS service connection",
"ownerAccountId": 1212123212121212,
"type": "oss",
"uuid": ""
}
]
Error codes
For more information, Error code centersee the error codes for this API.