You can call CEN APIs to connect networks (VPCs or VBRs) in different scenarios.

Interconnection in the same region using the same account

To connect networks in the same region using the same account, complete the following steps:

  1. Create a CEN instance using the ~~65871~~#reference_i4w_xmt_ndb API.
  2. Attach a network instance to CEN using the AttachCenChildInstance API.

Cross-regional interconnection using the same account

To connect networks in different regions using the same account, complete the following steps:

  1. Create a CEN instance using the CreateCen API.
  2. Attach a network to CEN using the AttachCenChildInstance API.
  3. Purchase a bandwidth package using the CreateCenBandwidthPackage API.
  4. Bind the bandwidth package to CEN using the AssociateCenBandwidthPackage API.
  5. Allocate a cross-regional interconnection bandwidth using the SetCenInterRegionBandwidthLimit API.

Cross-account interconnection in the same region

The following example shows you how to connect networks in the same region using different accounts:

  • Account A: the owner of CEN and network VPC1.
  • Account B: the owner of network VPC2.

To connect VPC1 and VPC2, complete the following steps:

  1. Account A creates a CEN instance using the CreateCen API.
  2. Account A attaches VPC1 to CEN using the AttachCenChildInstance API.
  3. Account B authorizes Account A to attach VPC2 using the GrantInstanceToCen API .
  4. Account A attaches VPC2 to CEN using the AttachCenChildInstance API .
  5. Account A purchases a bandwidth package according to the regions of VPC 1 and VPC 2 using the CreateCenBandwidthPackage API.
  6. Account A binds the bandwidth package to CEN using the AssociateCenBandwidthPackage API.
  7. Account A allocates a cross-regional interconnection bandwidth using the SetCenInterRegionBandwidthLimit API.