列出连接 - 开发工具控制台

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

列出连接

您可以使用开发人员工具控制台或 AWS Command Line Interface (AWS CLI) 中的 list-connections 命令,来查看您账户中的连接列表。

列出连接(控制台)

列出连接
  1. https://console.aws.amazon.com/codesuite/settings/connections 打开开发工具控制台。

  2. 选择 Settings > Connections (设置 > 连接)

  3. 查看连接的名称、状态和 ARN。

列出连接 (CLI)

您可以使用列出您与第三方代码存储库的连接。 AWS CLI 对于与主机资源关联的连接(例如与 En GitHub terprise Server 的连接),输出还会返回主机 ARN。

为此,请使用 list-connections 命令。

列出连接
  • 打开终端(Linux、macOS 或 Unix)或命令提示符 (Windows),然后使用运行命令。 AWS CLI list-connections

    aws codestar-connections list-connections --provider-type Bitbucket --max-results 5 --next-token: next-token

    此命令将返回以下输出。

    { "Connections": [ { "ConnectionName": "my-connection", "ProviderType": "Bitbucket", "Status": "PENDING", "ARN": "arn:aws:codestar-connections:us-west-2:account_id:connection/aEXAMPLE-8aad-4d5d-8878-dfcab0bc441f", "OwnerAccountId": "account_id" }, { "ConnectionName": "my-other-connection", "ProviderType": "Bitbucket", "Status": "AVAILABLE", "ARN": "arn:aws:codestar-connections:us-west-2:account_id:connection/aEXAMPLE-8aad-4d5d-8878-dfcab0bc441f", "OwnerAccountId": "account_id" }, ], "NextToken": "next-token" }