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:

  1. Call CreateCen to create a CEN instance.
  2. 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:

  1. Call CreateCen to create a CEN instance.
  2. Call AttachCenChildInstance to attach the target network instances to the CEN instance.
  3. Call CreateCenBandwidthPackage to purchase a bandwidth package in the area to which the network instances belong.
  4. Call AssociateCenBandwidthPackage to associate the bandwidth package with the CEN instance.
  5. 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:

  1. Use account A to call CreateCen to create a CEN instance.
  2. Use account A to call AttachCenChildInstance to attach VPC 1 to the CEN instance.
  3. Use account B to call GrantInstanceToCen to authorize account A to attach VPC2.
  4. 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 VPC 2.

To connect VPC1 and VPC2, follow these steps:

  1. Use account A to call CreateCen to create a CEN instance.
  2. Use account A to call AttachCenChildInstance to attach VPC1 to the CEN instance.
  3. Use account B to call GrantInstanceToCen to authorize account A to attach VPC2.
  4. Use account A to call AttachCenChildInstance to attach VPC2 to the CEN instance.
  5. Use account A to call CreateCenBandwidthPackage to purchase a bandwidth package in the area to which VPC1 and VPC2 belong.
  6. Use account A to call AssociateCenBandwidthPackage to associate the bandwidth package with the CEN instance.
  7. Use account A to call SetCenInterRegionBandwidthLimit to set connection bandwidth between the two regions.