Configures a cloud service to add access configurations for an on-premises network.
Operation description
Cloud services refer to Alibaba Cloud services that use the 100.64.0.0/10 CIDR block, such as Object Storage Service (OSS), Simple Log Service (SLS), and Data Transmission Service (DTS). If your on-premises network needs to access a cloud service, you must load the virtual border routing device (VBR) instance or Cloud Connect Network (CCN) instance associated with the on-premises network to a Cloud Enterprise Network (CEN) instance, and load a VPC-connected instance in the region where the cloud service is deployed to the CEN instance. After the instances are loaded, your on-premises network can access the VPC-connected instance in the region of the cloud service through the CEN instance, and then access the cloud service through the VPC-connected instance.
-
Limits: This operation is applicable only to Basic Edition transit routers. An on-premises network associated with a VBR instance can access only cloud services in the same region through the CEN instance.
For example, if the cloud service is deployed in the China (Beijing) region, only the on-premises networks associated with VBR instances in the China (Beijing) region can access the cloud service.
-
The ResolveAndRouteServiceInCen operation is asynchronous. After you invoke this operation, the system returns a RequestId, but the cloud service configuration is not yet added. The system continues to process the addition node in the background. You can invoke the DescribeRouteServicesInCen operation to query the status of the cloud service.
If the cloud service is in the Creating state, the cloud service configuration is being added. In this state, you can only execute query operations on the cloud service configuration and cannot execute other operations.
If the cloud service is in the Active state, the cloud service configuration is added.
If the cloud service is in the Failed state, the cloud service configuration fails to be added.
Before you begin
Before you invoke the ResolveAndRouteServiceInCen operation, make sure that the following conditions are met:
The VBR or CCN instance with network connectivity to your on-premises network is loaded to the CEN instance.
A VPC-connected instance in the region where the cloud service is deployed is loaded to the CEN instance. For more information, see AttachCenChildInstance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ResolveAndRouteServiceInCen |
create |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the ClientToken. The RequestId of each API request may be different. |
02fb3da4**** |
| CenId |
string |
Yes |
The instance ID of the Cloud Enterprise Network (CEN). |
cen-ckwa2hhmuislse**** |
| Host |
string |
Yes |
The IP address or CIDR block of the cloud service. Note
Typically, a cloud service uses multiple IP addresses or CIDR blocks. Call this operation multiple times to add all IP addresses or CIDR blocks of the cloud service. |
100.118.28.0/24 |
| HostRegionId |
string |
Yes |
The ID of the region where the cloud service is deployed. |
cn-hangzhou |
| HostVpcId |
string |
Yes |
The instance ID of the VPC-connected instance associated with the cloud service. |
vpc-o6woh5s494zueq40v**** |
| Description |
string |
No |
The description of the cloud service. The description can be empty or 1 to 256 characters in length. It cannot start with http:// or https://. |
descname |
| AccessRegionIds |
array |
Yes |
The list of region IDs from which the cloud service is accessed. |
["cn-hangzhou"] |
|
string |
No |
The ID of the region from which the cloud service is accessed. You can call the DescribeChildInstanceRegions operation to query region IDs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
C0245BEF-52AC-44A8-A776-EF96FD26A5CA |
Examples
Success response
JSON format
{
"RequestId": "C0245BEF-52AC-44A8-A776-EF96FD26A5CA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterIllegal.Ipv6CloudRouteCidrNotAllow | Parameter Host not in valid ipv6 cidr. | The error message returned because the specified cloud service routes do not support IPv6. |
| 400 | ParameterIllegal.AccessRegionId | Parameter Access RegionId illegal. | The error message returned because the specified access region ID (AccessRegionId) is invalid. |
| 400 | ParameterIllegal.CloudRouteHost | Parameter Host is not valid. | The error message returned because the specified cloud route host (CloudRouteHost) is invalid. |
| 400 | ParameterIllegal.ClouteRouteNotSupportIpv6 | Parameter Host not support IPv6 | The error message returned because the specified cloud service routes do not support IPv6. |
| 400 | ParameterIllegal.ClouteRouteCidrNotAllow | Parameter Host not in 100.64.0.0/10 | The error message returned because the specified cloud service CIDR block is invalid. |
| 400 | CloudRoute.Exist | The Specified Cloud Route already Exists | The error message returned because the cloud service route already exists. |
| 400 | ParameterIllegal.Host | Parameter Host does not support domain. | The error message returned because the specified host is invalid. |
| 400 | CloudRoute.Conflict | The Specified Cloud Route Conflicts. | The error message returned because the routes of the cloud services conflict with each other. |
| 400 | CloudRoute.VpcNotAttached | The Specified Vpc instance is not attached to CEN. | The error message returned because the specified VPC is not associated with a CEN instance. |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | The error message returned because this operation is not supported by the specified type of transit router. |
| 400 | ParameterIllegal.AccessRegionIdNoCCN | Parameter Access RegionId illegal. | The error message returned because the specified access region ID (AccessRegionId) is invalid. |
| 400 | IncorrectStatus.TransitRouter | The resource is not in a valid state for the operation. | The CEN TR instance is not in a valid state for the operation. Please try again later. |
| 400 | InvalidOperation.InstanceNotSupportIPv6Route | IPv6 routing has not been enabled for the CEN instance. | IPv6 routing is disabled for CEN. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
| 400 | InvalidParameter.CenId | The specified parameter CenId is invalid. | The entered parameter CenId is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.