Configures a cloud service.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ResolveAndRouteServiceInCen |
The operation that you want to perform. Set the value to ResolveAndRouteServiceInCen. |
AccessRegionIds.N | RepeatList | Yes | cn-hangzhou |
The region where the cloud service is deployed. Cross-region configurations are not supported. You can call the DescribeRegions operation to query region IDs. Note The HostRegionId and AccessRegionIds.N parameters must be set to the same value.
|
CenId | String | Yes | cen-ckwa2hhmuislse**** |
The ID of the Cloud Enterprise Network (CEN) instance. |
Host | String | Yes | 100.64.XX.XX/24 |
The domain or IP address of the cloud service. |
HostRegionId | String | Yes | cn-hangzhou |
The region where the cloud service is deployed. You can call the DescribeRegions operation to query region IDs. Note The HostRegionId and AccessRegionIds.N must be set to the same value.
|
HostVpcId | String | Yes | vpc-o6woh5s494zueq40v**** |
The virtual private cloud (VPC) that is associated with the cloud service. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-0016e04115b |
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 token can only contain ASCII characters and cannot exceed 64 characters in length. |
Description | String | No | The cloud service |
The description of the cloud service. |
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=ResolveAndRouteServiceInCen
&AccessRegionIds.1=cn-hangzhou
&CenId=cen-ckwa2hhmuislse****
&Host=100.64.XX.XX/24
&HostRegionId=cn-hangzhou
&HostVpcId=vpc-o6woh5s494zueq40v****
&<Common request parameters>
Sample success responses
XML
format
<ResolveAndRouteServiceInCenResponse>
<RequestId>17A57456-EF48-419D-9AE6-9B03D9996018</RequestId>
</ResolveAndRouteServiceInCenResponse>
JSON
format
{
"RequestId": "C0245BEF-52AC-44A8-A776-EF96FD26A5CA"
}
Error codes
For a list of error codes, visit the API Error Center.