This topic describes how to connect network instances by calling CEN API actions.
Connect network instances in the same region under the same account
To connect network instances in the same region under the same account, follow these steps:
- Call CreateCen to create a CEN instance.
- Call AttachCenChildInstance to attach the target network instances to the CEN instance.
Connect network instances among different regions under the same account
To connect network instances among different regions under the same account, follow these steps:
- Call CreateCen to create a CEN instance.
- Call AttachCenChildInstance to attach the target network instances to the CEN instance.
- Call CreateCenBandwidthPackage to purchase a bandwidth package in the area to which the network instances belong.
- Call AssociateCenBandwidthPackage to associate the bandwidth package with the CEN instance.
- Call SetCenInterRegionBandwidthLimit to set cross-region connection bandwidth.
Connect network instances in the same region under different accounts
In this example, the following accounts are used:
- Account A: the owner of a CEN instance and VPC1.
- Account B: the owner of VPC2.
To connect VPC1 and VPC2, follow these steps:
- Use account A to call CreateCen to create a CEN instance.
- Use account A to call AttachCenChildInstance to attach VPC1 to the CEN instance.
- Use account B to call GrantInstanceToCen to authorize account A to attach VPC2.
- Use account A to call AttachCenChildInstance to attach VPC2 to the CEN instance.
Connect network instances among different regions under different accounts
In this example, the following accounts are used:
- Account A: the owner of a CEN instance and VPC1.
- Account B: the owner of VPC2.
To connect VPC1 and VPC2, follow these steps:
- Use account A to call CreateCen to create a CEN instance.
- Use account A to call AttachCenChildInstance to attach VPC1 to the CEN instance.
- Use account B to call GrantInstanceToCen to authorize account A to attach VPC2.
- Use account A to call AttachCenChildInstance to attach VPC2 to the CEN instance.
- Use account A to call CreateCenBandwidthPackage to purchase a bandwidth package in the area to which VPC1 and VPC2 belong.
- Use account A to call AssociateCenBandwidthPackage to associate the bandwidth package with the CEN instance.
- Use account A to call SetCenInterRegionBandwidthLimit to set connection bandwidth between the two regions.