文档

ListServiceConnections - 获取服务连接列表

更新时间:

可以获取服务连接列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /organization/{organizationId}/serviceConnections

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

5ebbc0228123212b59xxxxx
sericeConnectionTypestring

服务连接类型

  • aliyun_code 阿里云代码

  • Codeup Codeup

  • Gitee 码云

  • github Github

  • ack 容器服务 Kubernetes(ACK)

  • docker_register_aliyun 容器镜像服务(ACR)

  • ecs ecs 主机

  • edas 企业级分布式应用(EDAS)

  • emas 移动研发平台(EMAS)

  • fc 阿里云函数计算(FC)

  • kubernetes 自建 k8s 集群

  • oss 对象存储(OSS)

  • PACKAGES 制品仓库

  • ros 资源编排服务(ROS)

  • sae Serverless 应用引擎(SAE)

codeup

返回参数

名称类型描述示例值
object
requestIdstring

请求 id,每次请求都是唯一值,便于后续排查问题

ASSDS-ASSASX-XSAXSA-XSAXSAXS
errorMessagestring

错误信息

""
errorCodestring

错误码

""
successboolean

true 接口调用成功,false 接口调用失败

true
serviceConnectionsobject []

服务连接

ownerAccountIdlong

拥有者阿里云账号 id

1212123212121212
namestring

服务连接名称

张三的oss服务连接
idlong

服务连接 Id

123
typestring

服务连接类型

oss
createTimelong

创建时间

1586863220000
uuidstring

uuid

示例

正常返回示例

JSON格式

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMessage": "\"\"",
  "errorCode": "\"\"",
  "success": true,
  "serviceConnections": [
    {
      "ownerAccountId": 1212123212121212,
      "name": "张三的oss服务连接",
      "id": 123,
      "type": "oss",
      "createTime": 1586863220000,
      "uuid": ""
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400InvalidParam.ParamNotPresentThe parameter is invalid.参数有误,请检查参数
400InvalidUser.NotFoundThe user that is invoking the API service is not a registered user.调用 API 的用户,未注册为云效用户
403Forbidden.UserNotInCurrentOrganizationThe user is not in the organization and is not authorized to perform the operation.当前用户不在该企业中,无权进行操作。
404InvalidOrganization.NotFoundThe organization is not found.企业不存在,请检查企业ID是否正确

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-09-20OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
    删除错误码:403
    删除错误码:404
出参OpenAPI 返回结构发生变更
  • 本页导读 (0)
文档反馈