ListServiceCredentials

Updated at:

Lists service credentials by type.

Applicable editions

Central edition, Region edition

Service endpoint and authorization

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

  • Yes, for the Central edition

  • No, for the Region edition

The organization ID.

5ebbc0228123212b59xxxxx

serviceCredentialType

string

query

Yes

The service credential type. Set this to username_password to list username-password credentials.

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.