すべてのプロダクト
Search
ドキュメントセンター

Cloud Enterprise Network:ListTransitRouterEcrAttachments

最終更新日:Jun 10, 2026

Enterprise Edition トランジットルーター上の Express Connect Router (ECR) 接続の情報 (接続ステータス、接続 ID、インスタンス料金の支払者など) を照会します。

操作説明

You can use the following methods to query ECR connection information:

  • Specify the ID of an Enterprise Edition transit router.

  • Specify the ID of an Enterprise Edition transit router and the ID of the region in which the Enterprise Edition transit router is deployed.

  • Configure the TransitRouterAttachmentId parameter to specify the ECR connection that you want to query.

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

cen:ListTransitRouterEcrAttachments

list

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

*TransitRouterEcrAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/*

TransitRouterEcrAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#TransitRouterAttachmentId}

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

CenId

string

任意

Cloud Enterprise Network (CEN) インスタンスの ID。

cen-7qthudw0ll6jmc****

RegionId

string

任意

トランジットルーターのリージョン ID。

DescribeChildInstanceRegions 操作を呼び出して、最新のリージョンリストをクエリできます。

cn-hangzhou

TransitRouterAttachmentId

string

任意

ECR 接続の ID。

tr-attach-nls9fzkfat8934****

TransitRouterId

string

任意

トランジットルーターの ID。

tr-6ehx7q2jze8ch5ji0****

MaxResults

integer

任意

各ページに返すエントリ数。デフォルト値: 20

20

NextToken

string

任意

次のリクエストで新しいページの結果を取得するために使用されるページネーショントークン。有効な値:

  • 最初のリクエストではこのパラメーターを指定する必要はありません。

  • 前回のクエリから取得したトークンを NextToken の値として指定する必要があります。

FFmyTO70tTpLG6I3FmYAXGKPd****

Tag

array<object>

任意

タグ。

最大 20 個のタグを指定できます。

object

任意

Key

string

任意

The tag key.

The tag key cannot be an empty string. The tag key can be up to 64 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://.

You can specify at most 20 tag keys in each call.

TagKey

Value

string

任意

The tag value.

The tag value can be an empty string. The tag value can be up to 128 characters in length. It cannot start with aliyun or acs: and cannot contain http:// or https://.

Each key-value must be unique. You can specify at most 20 tag values in each call.

TagValue

レスポンスフィールド

フィールド

説明

object

NextToken

string

A pagination token. It can be used in the next request to retrieve a new page of results.

FFmyTO70tTpLG6I3FmYAXGKPd****

RequestId

string

The request ID.

461EC1B5-04A8-4706-8764-8F5BCEF48A6F

TotalCount

integer

The total number of entries returned.

4

MaxResults

integer

The number of entries per page.

20

TransitRouterAttachments

array<object>

The information about the ECR connections.

array<object>

CreationTime

string

The time when the ECR connection was created.

The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.

2021-06-15T02:14Z

Status

string

The status of the ECR connection. Valid values:

  • Attached

  • Attaching

  • Detaching

Attached

TransitRouterAttachmentId

string

The ID of the ECR connection.

tr-attach-nls9fzkfat8934****

TransitRouterId

string

The ID of the Enterprise Edition transit router.

tr-bp1su1ytdxtataupl****

ResourceType

string

The type of resource to which the transit router is connected. Valid values:

The value is ECR, which indicates ECR connections.

ECR

TransitRouterRegionId

string

The region ID of the transit router.

You can call the DescribeChildInstanceRegions operation to query the most recent region list.

cn-shanghai

TransitRouterAttachmentDescription

string

The description of the ECR connection.

desctest

EcrOwnerId

integer

The ID of the Alibaba Cloud account to which the ECR connection belongs.

1688111111111111

AutoPublishRouteEnabled

boolean

Indicates whether the Enterprise Edition transit router can automatically advertise routes to ECRs.

The value is true, which indicates that the Enterprise Edition transit router can automatically advertise routes to ECRs.

true

EcrId

string

The ID of the ECR with which the ECR connection is associated.

ecr-n78omt2qsko06y****

TransitRouterAttachmentName

string

The name of the ECR connection.

testname

Tags

array<object>

The tags.

object

Key

string

The tag key.

test

Value

string

The tag value.

test

CenId

string

The ID of the CEN instance.

cen-j3jzhw1zpau2km****

OrderType

string

The entity that pays the fees of the network instance. Valid values: Valid values:

  • PayByCenOwner: The Alibaba Cloud account to which the transit router belongs pays the connection and data forwarding fees of the ECR.

  • PayByResourceOwner: The Alibaba Cloud account to which the ECR belongs pays the connection and data forwarding fees of the ECR.

PayByCenOwner

成功レスポンス

JSONJSON

{
  "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
  "RequestId": "461EC1B5-04A8-4706-8764-8F5BCEF48A6F",
  "TotalCount": 4,
  "MaxResults": 20,
  "TransitRouterAttachments": [
    {
      "CreationTime": "2021-06-15T02:14Z",
      "Status": "Attached",
      "TransitRouterAttachmentId": "tr-attach-nls9fzkfat8934****",
      "TransitRouterId": "tr-bp1su1ytdxtataupl****",
      "ResourceType": "ECR",
      "TransitRouterRegionId": "cn-shanghai",
      "TransitRouterAttachmentDescription": "desctest",
      "EcrOwnerId": 1688111111111111,
      "AutoPublishRouteEnabled": true,
      "EcrId": "ecr-n78omt2qsko06y****",
      "TransitRouterAttachmentName": "testname",
      "Tags": [
        {
          "Key": "test",
          "Value": "test"
        }
      ],
      "CenId": "cen-j3jzhw1zpau2km****\n",
      "OrderType": "PayByCenOwner"
    }
  ]
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 IllegalParam.NextToken The specified NextToken is invalid.
400 IllegalParam.TrInstance The specified TransitRouter is invalid.
400 IllegalParam.Region The specified Region is invalid.
400 IllegalParam.CenId The specified CenId is invalid.
400 IllegalParam.TransitRouterId The specified TransitRouterId is invalid.
400 IllegalParam.CenIdOrRegionId The specified CenId or RegionId is invalid.
400 IllegalParam.MaxResults The specified MaxResults is illegal.
400 InvalidParameter Invalid parameter.
400 Unauthorized The AccessKeyId is unauthorized.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。