You can use Cloud Connector to establish private connections to the cloud for your IoT endpoints. This topic describes how to create and manage Cloud Connector instances.
Prerequisites
- You have created a Virtual Private Cloud (VPC) and a vSwitch in an availability zone. For more information, see Create a VPC and a vSwitch.Note Ensure that the region you select when creating the vSwitch is the same as the region of the Cloud Connector instance.
- You have an active IoT SIM card with a dedicated APN. For more information, see Group Monitoring.
Create a Cloud Connector instance
- Log on to the Cloud Connector console.
- In the top navigation bar, select the region for the Cloud Connector instance.
- On the Instance List page, click Create Instance.
- On the Create Instance page, set the following parameters and click Complete.
Parameter Description Basic Information Region The region where the Cloud Connector instance will be created. Name Enter a name for the Cloud Connector instance. Carrier The carrier of the dedicated APN. After you select an APN, the system automatically populates this field.
APN The dedicated APN for network access. IoT endpoints use this APN to connect privately to Alibaba Cloud services.
Network Settings VPC Select an existing VPC. IoT endpoints can connect directly to this VPC.
vSwitch Select existing vSwitches. You must select two vSwitches in different availability zones to serve as the primary and secondary vSwitches.
Note- After a Cloud Connector instance is created, its carrier and APN cannot be changed.
- When you create a Cloud Connector instance, the system checks whether the AliyunServiceRoleForCCIoT and AliyunServiceRoleForNatgw service-linked roles exist. If these roles do not exist, the system automatically creates them. For more information, see AliyunServiceRoleForCCIoT and AliyunServiceRoleForNatgw.
Associate and dissociate vSwitches
If your business requirements change, follow these steps to associate or dissociate vSwitches.
Note A Cloud Connector instance supports a maximum of two vSwitches.
- Log on to the Cloud Connector console.
- In the top navigation bar, select the region where the Cloud Connector instance is located.
- On the Instance List page, find the Cloud Connector instance and click its instance ID.
- On the Instance Details tab, in the Basic Information section, click Associate or Dissociate to the right of vSwitch.
- Associate
In the Associate vSwitch dialog box, select a VPC and vSwitch, and then click OK.
- Dissociate
In the dialog box that appears, click OK.
Warning Caution: This action dissociates both vSwitches, making the instance unavailable. The instance will become operational again after you re-associate vSwitches.
- Associate
Delete a Cloud Connector instance
Complete the following actions before you delete a Cloud Connector instance:
- Dissociate the vSwitches from the Cloud Connector instance. For more information, see Associate and dissociate vSwitches.
- Delete the IP addresses added to the Cloud Connector instance. For more information, see Delete IP addresses.
- Delete the authorization rules for the Cloud Connector instance. For more information, see Delete authorization rules.
- Log on to the Cloud Connector console.
- In the top navigation bar, select the region where the Cloud Connector instance is located.
- On the Instance List page, find the Cloud Connector instance, and in the Actions column, choose .
- In the dialog box that appears, click OK.
Related APIs
- CreateIoTCloudConnector: Creates a Cloud Connector instance.
- AssociateVSwitchWithIoTCloudConnector: Associates a vSwitch with a Cloud Connector instance.
- DissociateVSwitchFromIoTCloudConnector: Dissociates a vSwitch from a Cloud Connector instance.
- DeleteIoTCloudConnector: Deletes a Cloud Connector instance.
该文章对您有帮助吗?