Panggil operasi CreateTransitRouterEcrAttachment untuk menghubungkan instans Express Connect Router (ECR) ke router transit di wilayah yang sama.
Deskripsi operasi
-
Hanya router transit edisi perusahaan yang mendukung koneksi ECR.
-
Anda dapat membuat koneksi ECR pada router transit edisi perusahaan dengan salah satu dari dua cara berikut:
Jika Anda memiliki instans router transit edisi perusahaan di wilayah tujuan, tentukan EcrId, RegionId, dan TransitRouterId untuk membuat koneksi ECR.
Jika Anda tidak memiliki instans router transit edisi perusahaan di wilayah tujuan, tentukan EcrId, CenId, dan RegionId. Sistem akan secara otomatis membuat instans router transit edisi perusahaan saat koneksi ECR dibuat.
-
CreateTransitRouterEcrAttachment adalah operasi asinkron. Setelah permintaan dikirim, sistem mengembalikan ID koneksi ECR, tetapi pembuatan koneksi dilakukan di latar belakang. Anda dapat memanggil operasi ListTransitRouterEcrAttachments untuk mengkueri status koneksi ECR.
Jika status koneksi ECR adalah Attaching, koneksi sedang dalam proses pembuatan. Dalam status ini, Anda hanya dapat mengkueri koneksi dan tidak dapat melakukan operasi lain.
Jika status koneksi ECR adalah Attached, koneksi telah berhasil dibuat.
-
Secara default, setelah koneksi ECR dibuat, koneksi tersebut tidak dikaitkan dengan tabel rute apa pun dari router transit edisi perusahaan untuk pembelajaran atau penerusan rute.
Setelah koneksi ECR dikaitkan dengan tabel rute router transit edisi perusahaan untuk route learning, sistem secara otomatis menyebarkan rute dari instans ECR ke tabel rute router transit edisi perusahaan.
-
Setelah koneksi ECR dibuat, sistem secara otomatis menyebarkan rute dari tabel rute router transit edisi perusahaan yang dikaitkan dengan koneksi ECR ke tabel rute instans ECR.
Prasyarat
-
Akun Alibaba Cloud yang memiliki router transit edisi perusahaan dan instans ECR harus termasuk dalam perusahaan yang sama.
-
Router transit edisi perusahaan dapat terhubung ke instans ECR yang dimiliki oleh akun yang sama atau akun berbeda. Sebelum membuat koneksi ECR lintas akun, Anda harus memperoleh otorisasi dari akun pemilik instans ECR. Untuk informasi selengkapnya, lihat Authorize a cross-account network instance.
-
Sebelum memanggil operasi ini untuk membuat koneksi ECR, Anda harus memanggil operasi CreateExpressConnectRouterAssociation guna membuat asosiasi antara instans ECR dan instans router transit edisi perusahaan.
Saat Anda memanggil operasi DeleteTransitRouterEcrAttachment untuk menghapus paksa koneksi ECR, sistem juga akan menghapus asosiasi antara instans ECR dan instans router transit edisi perusahaan. Anda tidak perlu menghapus asosiasi tersebut secara terpisah.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:CreateTransitRouterEcrAttachment |
create |
*CenInstance
TransitRouter
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Pastikan token klien bersifat unik untuk setiap permintaan. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan berbeda untuk setiap permintaan. |
02fb3da4-130e-11e9-8e44-001**** |
| CenId |
string |
No |
ID instans Cloud Enterprise Network (CEN). |
cen-7qthudw0ll6jmc**** |
| TransitRouterId |
string |
No |
ID router transit. |
tr-bp1su1ytdxtataupl**** |
| RegionId |
string |
No |
ID wilayah tempat router transit ditempatkan. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri daftar wilayah terbaru. |
eu-central-1 |
| TransitRouterAttachmentName |
string |
No |
Nama koneksi ECR. Nama dapat kosong atau memiliki panjang 1 hingga 128 karakter, dan tidak boleh diawali dengan http:// atau https://. |
nametest |
| TransitRouterAttachmentDescription |
string |
No |
Deskripsi koneksi ECR. Deskripsi dapat kosong atau memiliki panjang 1 hingga 256 karakter, dan tidak boleh diawali dengan http:// atau https://. |
testdesc |
| EcrId |
string |
Yes |
ID instans ECR. |
ecr-upyc0viial107r**** |
| EcrOwnerId |
integer |
No |
ID Akun Alibaba Cloud tempat instans ECR berada. Nilai default adalah ID Akun Alibaba Cloud saat ini. Catatan
Jika Anda ingin menghubungkan ke instans jaringan milik Akun Alibaba Cloud lain, parameter ini wajib diisi. |
1250123456123456 |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| Tag |
array<object> |
No |
Tag. Anda dapat menentukan hingga 20 tag dalam setiap panggilan. |
|
|
object |
No |
|||
| Key |
string |
No |
Kunci tag. Kunci tag tidak boleh berupa string kosong. Panjang kunci tag maksimal 64 karakter dan tidak boleh diawali dengan Anda dapat menentukan hingga 20 kunci tag. |
tagtest |
| Value |
string |
No |
Nilai tag. Nilai tag dapat kosong atau memiliki panjang maksimal 128 karakter. Nilai tag tidak boleh diawali dengan Setiap kunci tag harus memiliki nilai tag yang unik. Anda dapat menentukan hingga 20 nilai tag. |
tagtest |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TransitRouterAttachmentId |
string |
ID koneksi ECR. |
tr-attach-qieks13jnt1cchy*** |
| RequestId |
string |
ID permintaan. |
C0245BEF-52AC-44A8-A776-EF96FD26A5CA |
Contoh
Respons sukses
JSONformat
{
"TransitRouterAttachmentId": "tr-attach-qieks13jnt1cchy***",
"RequestId": "C0245BEF-52AC-44A8-A776-EF96FD26A5CA"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission.AliyunServiceRolePolicyForCEN | You are not authorized to create the service linked role. Role Name: AliyunServiceRolePolicyForCEN. Service Name: cen.aliyuncs.com. Make sure that the user has been granted the ram:CreateServiceLinkedRole permission. | The error message returned because you do not have the permissions to create the service-linked role whose role name is AliyunServiceRolePolicyForCEN and service name is cen.aliyuncs.com. You must acquire the ram:CreateServiceLinkedRole permission before you can create the service-linked role. |
| 400 | OperationUnsupported.TransitRouterRegionId | The specified TransitRouterRegion does not support the operation. | |
| 400 | InvalidCenId.NotFound | CenId is not found. | The error message returned because the specified CEN instance does not exist. |
| 400 | InvalidStatus.ResourceStatus | The resource is not in a valid state for the attachment operation. | The error message returned because the status of the specified resource does not support this operation. Try again later. |
| 400 | InvalidTransitRouterId.NotFound | TransitRouterId is not found. | The error message returned because the ID of the transit router does not exist. |
| 400 | Forbbiden.TransitRouterServiceNotOpen | The user has not open transit router service. | The error message returned because the transit router is disabled. Enable the transit router and try again. |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | The error message returned because this operation is not supported by the specified type of transit router. |
| 400 | MissingParam.CenIdOrRegionId | Either CenId or RegionId must be specified. | The error message returned because the CenId or RegionId parameter is not set. |
| 400 | IllegalParam.AssociateRouteTableId | The specified AssociateRouteTableId is illegal. | The error message returned because the specified route table ID (AssociateRouteTableId) is invalid. |
| 400 | Forbbiden.AttachChildInstanceAcrossBid | Operation is invalid, please apply for cross-bid attaching. | |
| 400 | IllegalParam.RegionId | RegionId is illegal. | The error message returned because the specified region is invalid. |
| 400 | OperationUnsupported.CenFullLevel | CEN full level does not support TransitRouter | The error message returned because CEN instances of the Full type do not support Enterprise Edition transit routers. |
| 400 | InvalidOperation.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | |
| 400 | IncorrectStatus.TransitRouter | The status of TransitRouter is incorrect. | The error message returned because the status of the transit router does not support this operation. Try again later. |
| 400 | QuotaFull.ChildInstanceRelatedCen | The childinstance has exceed the quota of the times that a childinstance can be attached as an attachment. | The error message returned because the number of CEN instances to which the instance is attached has reached the upper limit. You cannot attach the instance to more CEN instances. |
| 400 | Forbidden.ResourceOwnerTransitRouterServiceNotOpen | The resource owner user has not opened transit router service. | The transit router service for the resource owner's account is not currently opened. Please inform them to open the transit router service and then try again. |
| 400 | OperationUnsupported.BandwidthType | The specified BandwidthType does not support the operation. | The error message returned because this operation is not supported by the specified bandwidth type. |
| 400 | IllegalParam.BandwidthType | BandwidthType is illegal. | The error message returned because the specified bandwidth plan type is invalid. |
| 400 | IncorrectStatus.EcrResource | The ECR resource is not in a valid state for the attachment operation. | The ECR resource is not in a valid state for the attachment operation. |
| 400 | QuotaExceeded.CenQuotaEcrAttachPerTransitRouter | The maximum number of ECR attachment per Transit Router is exceeded. | The maximum number of ECR attachment per Transit Router is exceeded. |
| 400 | OperationUnsupported.ECRAttachment | ECR Attachment is not supported. | ECR Attachment is not supported. |
| 400 | InvalidTransitRouterMode.NeedUpgrade | TransitRouter need to upgrade. | The error message returned because the specified transit router mode is not supported. |
| 400 | ResourceNotFound | The resource does not found. | The resource does not found. |
| 400 | Forbidden.ResourceOwnerTransitRouterServiceExpired | The transit router service of the account to which the resource belongs has been suspended due to arrears. Please notify the other party to renew the service and try again. | The transit router service of the account to which the resource belongs has been suspended. Please notify the other party to renew the service and try again. |
| 400 | Forbidden.TransitRouterServiceExpired | The transit router service is out of service. | The transit router service has been suspended due for payment. Please renew the service and try again. |
| 400 | Forbbiden.AttachAcrossBidEcr | Attach cross bid ECR is unsupported. Please submit a ticket. | Attach cross bid ECR is unsupported. Please submit a ticket. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
| 400 | InvalidParameter.ResourceType | The specified parameter ResourceType is invalid. | |
| 400 | SystemBusy | The system is busy. Please try again later. | The error message returned because the system is unavailable. Try again later. |
| 400 | OperationDenied.AttachmentInCurrentRegionExisted | The current operation is rejected. The Express Connect Router instance can only associate one Transit Router in the same region. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.