ListServiceConnections

Updated at:

Retrieves the list of service connections.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /organization/{organizationId}/serviceConnections HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. It is a string value that you can obtain from the Apsara DevOps URL, such as https://devops.aliyun.com/organization/[OrganizationId].

5ebbc0228123212b59xxxxx

Request parameters

Parameter

Type

Required

Description

Example

sericeConnectionType

string

Yes

The service connection type. Valid values:

  • aliyun_code: Alibaba Cloud Code.

  • Codeup: Codeup.

  • Gitee: Gitee.

  • github: GitHub.

  • ack: Container Service for Kubernetes (ACK).

  • docker_register_aliyun: Container Registry (ACR).

  • ecs: Elastic Compute Service (ECS) instance.

  • edas: Enterprise Distributed Application Service (EDAS).

  • emas: Enterprise Mobile Application Service (EMAS).

  • fc: Function Compute (FC).

  • kubernetes: Self-managed Kubernetes cluster.

  • oss: Object Storage Service (OSS).

  • PACKAGES: Artifact repository.

  • ros: Resource Orchestration Service (ROS).

  • sae: Serverless App Engine (SAE).

codeup

Response elements

Element

Type

Description

Example

object

requestId

string

The request ID. Each request has a unique ID for troubleshooting.

ASSDS-ASSASX-XSAXSA-XSAXSAXS

errorMessage

string

The error message.

""

errorCode

string

The error code.

""

success

boolean

Indicates whether the API call was successful. Valid values:

  • true: The API call was successful.

  • false: The API call failed.

true

serviceConnections

array<object>

The service connections.

object

ownerAccountId

integer

The Alibaba Cloud account ID of the owner.

1212123212121212

name

string

The name of the service connection.

Zhang San's OSS service connection

id

integer

The ID of the service connection.

123

type

string

The type of the service connection.

oss

createTime

integer

The creation time. The value is a UNIX timestamp in milliseconds.

1586863220000

uuid

string

uuid

o53grjznxeu1fofz

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMessage": "\"\"",
  "errorCode": "\"\"",
  "success": true,
  "serviceConnections": [
    {
      "ownerAccountId": 1212123212121212,
      "name": "Zhang San's OSS service connection",
      "id": 123,
      "type": "oss",
      "createTime": 1586863220000,
      "uuid": "o53grjznxeu1fofz"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParam.ParamNotPresent The parameter is invalid. The parameter is invalid.
400 InvalidUser.NotFound The user that is invoking the API service is not a registered user. The user that is invoking the API service is not a registered user.
403 Forbidden.UserNotInCurrentOrganization The user is not in the organization and is not authorized to perform the operation.
404 InvalidOrganization.NotFound The organization is not found. The organization is not found. Please check the organization ID.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.