Sets the PrivateZone connection information.
Usage notes
PrivateZone is an Alibaba Cloud private domain name resolution and management service based on Virtual Private Cloud (VPC). After you attach virtual border routers (VBRs) and Cloud Connect Network (CCN) instances to a Cloud Enterprise Network (CEN) instance, you can configure the on-premises networks connected to the VBRs and CCN instances to access PrivateZone through the CEN instance.
Limits
The on-premises networks connected to VBRs or CCN instances must be deployed in the same region as the PrivateZone service.
For example, if the PrivateZone service is deployed in the China (Beijing) region, only on-premises networks connected to VBRs or CCN instances in China (Beijing) can access the PrivateZone service.
Prerequisites
Before you call this operation, make sure that the following conditions are met:
- PrivateZone is deployed. For more information, see PrivateZone quick start.
- The following network instances are attached to the same CEN instance: the VPC that is associated with the PrivateZone service, and the VBR and CCN instance that want to access the PrivateZone service. For more information, see AttachCenChildInstance.
- If your on-premises network uses a CCN instance to connect to Alibaba Cloud and the account that owns the CCN instance is different from the account that owns the VPC or CEN instance, you must grant the CCN instance required permissions. For more information, see Grant permissions to CCN.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | RoutePrivateZoneInCenToVpc |
The operation that you want to perform. Set the value to RoutePrivateZoneInCenToVpc. |
AccessRegionId | String | Yes | cn-hangzhou |
The ID of the region where PrivateZone is accessed. You can call the DescribeChildInstanceRegions operation to query the most recent region list. |
CenId | String | Yes | cen-7qthudw0ll6jmc**** |
The ID of the CEN instance. |
HostRegionId | String | Yes | cn-hangzhou |
The ID of the region where PrivateZone is deployed. |
HostVpcId | String | Yes | vpc-bp1h8vbrbcgohcju5**** |
The ID of the VPC that is associated with PrivateZone. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C0245BEF-52AC-44A8-A776-EF96FD26A5CA |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=RoutePrivateZoneInCenToVpc
&AccessRegionId=cn-hangzhou
&CenId=cen-7qthudw0ll6jmc****
&HostRegionId=cn-hangzhou
&HostVpcId=vpc-bp1h8vbrbcgohcju5****
&<Common request parameters>
Sample success responses
XML
format
<RoutePrivateZoneInCenToVpcResponse>
<RequestId>C0245BEF-52AC-44A8-A776-EF96FD26A5CA</RequestId>
</RoutePrivateZoneInCenToVpcResponse>
JSON
format
{
"RequestId":"C0245BEF-52AC-44A8-A776-EF96FD26A5CA"
}
Error codes
For a list of error codes, visit the API Error Center.