ListServiceAuths - Get Service Authorization List

Updated at:

Retrieves the list of service authorizations.

Applicable editions

Central edition, Region edition

Service Endpoints and Authorization Information

Product

Resource

Required Permissions

Pipeline

Service connection

Read-only

Request Syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/serviceAuths

Region edition

GET https://{domain}/oapi/v1/flow/serviceAuths

Request Headers

Parameter

Type

Required

Description

Example Value

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request Parameters

Parameter

Type

Location

Required

Description

Example Value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Enterprise ID.

5ebbc0228123212b59xxxxx

serviceAuthType

string

query

Yes

Service authorization type.

RAM (Alibaba Cloud RAM type)

Request Examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/serviceAuths?serviceAuthType=RAM (Alibaba Cloud RAM type)' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/serviceAuths?serviceAuthType=RAM (Alibaba Cloud RAM type)' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response Parameters

Parameter

Type

Description

Example Value

-

array

-

object

id

integer

Service certificate ID.

123

ownerName

string

Service certificate name.

Zhang San

ownerStaffId

string

Staff ID of the authorized user.

123456789

type

string

Service certificate type.

Codeup

Response Examples

[
    {
        "id": 123,
        "ownerName": "Zhang San",
        "ownerStaffId": "123456789",
        "type": "Codeup"
    }
]

Error Codes

For API error codes, see Error Code Center.