ListServiceCredentials
Lists service credentials by type.
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
- Obtain a service endpoint: Replace
{domain}in the request syntax with your service endpoint. - Obtain a personal access token.
- Obtain your organization ID from the Basic Information page in the organization management console. This is required only for the Central edition.
|
Product |
Resource |
Required permission |
|
pipeline |
service connection |
Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/serviceCredentials
Region edition
GET https://{domain}/oapi/v1/flow/serviceCredentials
Request headers
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
The personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Position |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
The organization ID. |
5ebbc0228123212b59xxxxx |
|
serviceCredentialType |
string |
query |
Yes |
The service credential type. Set this to |
username_password |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/serviceCredentials?serviceCredentialType=username_password' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/flow/serviceCredentials?serviceCredentialType=username_password' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
array |
The list of service credentials. |
|
| - |
object |
|
|
| id |
integer |
The service credential ID. |
123 |
| ownerName |
string |
The name of the owner. |
test-user |
| ownerStaffId |
string |
The staff ID of the authorized user. |
123456789 |
| type |
string |
The type of the service credential. |
Codeup |
Response example
[
{
"id": 123,
"ownerName": "test-user",
"ownerStaffId": "123456789",
"type": "Codeup"
}
]
Error codes
For common API error codes, see the Error Code Center.