Grants a transit router permissions to connect to network instances that belong to another Alibaba Cloud account.

Description

  • GrantInstanceToTransitRouter grants transit routes permissions to connect only to virtual private clouds (VPCs), virtual border routers (VBRs), and IPsec-VPN connections that belong to another Alibaba Cloud account.

    If you want to grant transit routers permissions to connect to Cloud Connect Network (CCN) instances, call the GrantInstanceToCbn operation.

  • Before you call GrantInstanceToTransitRouter, take note of the billing rules, permission limits, and prerequisites on permission management of transit routers. For more information, see Acquire permissions to connect to a network instance that belongs to another account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GrantInstanceToTransitRouter

The operation that you want to perform. Set the value to GrantInstanceToTransitRouter.

CenId String Yes cen-44m0p68spvlrqq****

The ID of the Cloud Enterprise Network (CEN) instance to which the transit router belongs.

InstanceId String Yes vpc-bp1h8vbrbcgohcju5****

The ID of the network instance.

InstanceType String Yes VPC

The type of the network instance. Valid values:

  • VPC: VPC
  • ExpressConnect: VBR
  • VPN: IPsec-VPN connection
RegionId String Yes cn-hangzhou

The ID of the region where the network instance is deployed.

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

CenOwnerId Long Yes 1250123456123456

The ID of the Alibaba Cloud account to which the CEN instance belongs.

OrderType String No PayByCenOwner

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

  • PayByCenOwner: the Alibaba Cloud account that owns the CEN instance.
  • PayByResourceOwner: the Alibaba Cloud account that owns the network instance.

Response parameters

Parameter Type Example Description
RequestId String C6E5992C-A57B-5A6C-9B26-568074DC68BA

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GrantInstanceToTransitRouter
&CenId=cen-44m0p68spvlrqq****
&InstanceId=vpc-bp1h8vbrbcgohcju5****
&InstanceType=VPC
&RegionId=cn-hangzhou
&CenOwnerId=1250123456123456
&OrderType=PayByCenOwner
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GrantInstanceToTransitRouterResponse>
    <RequestId>C6E5992C-A57B-5A6C-9B26-568074DC68BA</RequestId>
</GrantInstanceToTransitRouterResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

For a list of error codes, visit the Error Center.