Tüm Ürünler
Search
Belge Merkezi

:GrantInstanceToTransitRouter

Son Güncelleme:Sep 29, 2026

Bir geçiş yönlendirici örneğine, farklı bir Alibaba Cloud hesabına ait olan bir ağ örneğine bağlanma izinleri verir. Bir geçiş yönlendirici örneği farklı bir hesaba ait olan bir ağ örneğine bağlanmadan önce, ağ örneği sahibinin GrantInstanceToTransitRouter işlemini çağırarak geçiş yönlendirici örneğini yetkilendirmesi gerekir.

Operation description

  • GrantInstanceToTransitRouter işlemi, yalnızca bir geçiş yönlendirici örneğine çapraz hesap Sanal Özel Bulut (VPC) örneklerine, Sanal Sınır Yönlendirici (VBR) örneklerine, IPsec bağlantılarına ve Express Connect Router (ECR) örneklerine bağlanma izni vermeyi destekler.

    Bir geçiş yönlendirici örneğine Cloud Connect Network (CCN) örneğine bağlanma izni vermek için GrantInstanceToCbn işlemini çağırın.

  • GrantInstanceToTransitRouter işlemini çağırmadan önce, geçiş yönlendiricilerin faturalandırma kurallarını, yetkilendirme işlemlerine ilişkin sınırlamaları ve yetkilendirme işlemlerinin ön koşullarını anladığınızdan emin olun. Daha fazla bilgi için Çapraz hesap ağ örneği yetkilendirmesi konusuna bakın.

  • Bir ağ örneğini yetkilendirmeden önce, aşağıdaki işlemlerin tamamlandığından emin olun:

    Ağ örneğinin ait olduğu hesap ile geçiş yönlendirici örneğinin ait olduğu hesabın aynı türde olduğunu doğrulayın.

    Geçiş yönlendirici örneğinin ait olduğu hesabın Alibaba Cloud hesap kimliğini alın.

    Geçiş yönlendirici örneğinin ait olduğu Cloud Enterprise Network (CEN) örnek kimliğini alın.

    Bir VBR örneğini yetkilendirmeden önce, VBR örneği yetkilendirme özelliğini etkinleştirmek üzere hesap yöneticinizle iletişime geçin.

    Bir IPsec bağlantısını yetkilendirmeden önce, IPsec bağlantısının herhangi bir kaynakla ilişkilendirilmemiş olduğundan emin olun:

    IPsec bağlantısı halihazırda bir VPN ağ geçidi örneğiyle ilişkilendirilmişse, aynı hesaptaki veya farklı bir hesaptaki bir geçiş yönlendirici örneğiyle ilişkilendirilemez.

    IPsec bağlantısı halihazırda bir geçiş yönlendirici örneğiyle ilişkilendirilmişse, önce bu ilişkilendirmeyi kaldırmanız gerekir. Daha fazla bilgi için Ağ örneği bağlantısını silme konusuna bakın.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cen:GrantInstanceToTransitRouter

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

CenId

string

Yes

Geçiş yönlendirici örneğinin ait olduğu Cloud Enterprise Network (CEN) örneğinin kimliği.

cen-44m0p68spvlrqq****

InstanceId

string

Yes

Ağ örneğinin kimliği.

vpc-bp1h8vbrbcgohcju5****

InstanceType

string

Yes

Ağ örneğinin türü. Geçerli değerler:

  • VPC: VPC'ye bağlı bir örnek.

  • ExpressConnect: Bir VBR örneği.

  • VPN: Bir IPsec bağlantısı.

  • ECR: Bir ECR örneği.

VPC

RegionId

string

No

Ağ örneğinin bölge kimliği.

Bölge kimliklerini sorgulamak için DescribeChildInstanceRegions işlemini çağırabilirsiniz.

cn-hangzhou

CenOwnerId

integer

Yes

CEN örneğinin ait olduğu hesabın Alibaba Cloud hesap kimliği.

1250123456123456

OrderType

string

No

Ağ örneğinin ödeme sorumlusu. Geçerli değerler:

  • PayByCenOwner: Ağ örneği tarafından oluşturulan ücretler, CEN örneğinin ait olduğu hesap tarafından ödenir.

  • PayByResourceOwner: Ağ örneği tarafından oluşturulan ücretler, ağ örneğinin ait olduğu hesap tarafından ödenir.

Valid values:

  • PayByResourceOwner :

    Ücretler, ağ örneğinin ait olduğu hesap tarafından ödenir.

  • PayByCenOwner :

    Ücretler, CEN örneğinin ait olduğu hesap tarafından ödenir.

PayByCenOwner

Response elements

Element

Type

Description

Example

object

Yanıt parametreleri.

RequestId

string

İstek kimliği.

C6E5992C-A57B-5A6C-9B26-568074DC68BA

Examples

Success response

JSON format

{
  "RequestId": "C6E5992C-A57B-5A6C-9B26-568074DC68BA"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Forbbiden.TransitRouterServiceNotOpen The user has not open transit router service.
400 NoPermission.AliyunServiceRoleForCEN You are not authorized to create the service linked role. Role Name: AliyunServiceRoleForCEN. Service Name: cen.aliyuncs.com. Make sure that the user has been granted the ram:CreateServiceLinkedRole permission.
400 IllegalParam.CenId The specified CenId is invalid.
400 OperationFailed.TaskConflict The operation is too frequent, please wait a moment and try again.
400 InvalidVbr.NotFound vbr is not found.
400 OperationFailed.GrantCrossAccountExist Cross-account authorization already exists.
400 Forbidden.TransitRouterServiceExpired The transit router service is out of service.
400 Forbidden.OperateShareResource You cannot operate shared resources.
400 InvalidParameter Invalid parameter.
400 Unauthorized The AccessKeyId is unauthorized.
400 OperationFailed.CanNotGrantVbrInstanceToCen Grant VBR instance to CEN is not supported for current VBR owner account.
400 InvalidParameter.CenId The specified parameter CenId is invalid.
404 InvalidInstanceId.NotFound InstanceId is not found.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.