ListServiceConnections - List service connections

Updated at:

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 a personal access token.

  • 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

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

sericeConnectionType

string

query

Yes

Deprecated. Use serviceConnectionType instead.
The service connection type.
Central edition: ecs, Elastic Compute Service (ECS); Gitee, Gitee; Github, GitHub; docker_register_aliyun, Container Registry (ACR); ack, Container Service for Kubernetes (ACK); Codeup, Yunxiao Codeup; oss, Object Storage Service (OSS); edas, Enterprise Distributed Application Service (EDAS); sae, Serverless App Engine (SAE); ros, Resource Orchestration Service (ROS); fc, Function Compute (FC); emas, Enterprise Mobile Application Studio (EMAS); PACKAGES, Yunxiao Packages; customGitlab, self-managed GitLab; git, generic Git; gitlab, GitLab; bitbucket, Bitbucket; jenkins, Jenkins; private_docker_registry, private image registry; ess, Auto Scaling (ESS); atomGit, AtomGit; svn, SVN; gitlabAPI, self-managed GitLab (API V4 or later); vpc, Virtual Private Cloud (VPC).
Region edition: ecs, Elastic Compute Service (ECS); Github, GitHub; docker_register_aliyun, Container Registry (ACR); ack, Container Service for Kubernetes (ACK); Codeup, Yunxiao Codeup; oss, Object Storage Service (OSS); sae, Serverless App Engine (SAE); PACKAGES, Yunxiao Packages; customGitlab, self-managed GitLab; git, generic Git; gitlab, GitLab; bitbucket, Bitbucket; private_docker_registry, private image registry; gitlabAPI, self-managed GitLab (API V4 or later); vpc, Virtual Private Cloud (VPC).


codeup

serviceConnectionType

string

query

Yes

The service connection type.
Central edition: ecs, Elastic Compute Service (ECS); Gitee, Gitee; Github, GitHub; docker_register_aliyun, Container Registry (ACR); ack, Container Service for Kubernetes (ACK); Codeup, Yunxiao Codeup; oss, Object Storage Service (OSS); edas, Enterprise Distributed Application Service (EDAS); sae, Serverless App Engine (SAE); ros, Resource Orchestration Service (ROS); fc, Function Compute (FC); emas, Enterprise Mobile Application Studio (EMAS); PACKAGES, Yunxiao Packages; customGitlab, self-managed GitLab; git, generic Git; gitlab, GitLab; bitbucket, Bitbucket; jenkins, Jenkins; private_docker_registry, private image registry; ess, Auto Scaling (ESS); atomGit, AtomGit; svn, SVN; gitlabAPI, self-managed GitLab (API V4 or later); vpc, Virtual Private Cloud (VPC).
Region edition: ecs, Elastic Compute Service (ECS); Github, GitHub; docker_register_aliyun, Container Registry (ACR); ack, Container Service for Kubernetes (ACK); Codeup, Yunxiao Codeup; oss, Object Storage Service (OSS); sae, Serverless App Engine (SAE); PACKAGES, Yunxiao Packages; customGitlab, self-managed GitLab; git, generic Git; gitlab, GitLab; bitbucket, Bitbucket; private_docker_registry, private image registry; gitlabAPI, self-managed GitLab (API V4 or later); vpc, Virtual Private Cloud (VPC).

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.