Checks whether the ID of a Cloud Enterprise Network (CEN) instance and the ID of an Alibaba Cloud account to which the instance belongs are valid. This operation also checks whether the CIDR block in a route of the CEN instance conflicts with the IPv4 CIDR block of a specific workspace.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes VerifyCen

The operation that you want to perform. Set the value to VerifyCen.

RegionId String Yes cn-hangzhou

The ID of the region.

CenId String Yes cen-3gwy16dojz1m65****

The ID of the CEN instance.

CenOwnerId Long No 1234567890123456

The ID of the Alibaba Cloud account to which the CEN instance belongs.

  • If you specify the CenId parameter and the CEN instance that you specify for the CenId parameter belongs to the Alibaba Cloud account, skip this parameter.
  • If you specify the CenId parameter and the CEN instance that you specify for the CenId parameter belongs to another Alibaba Cloud account, enter the ID of the exact Alibaba Cloud account.
CidrBlock String Yes 172.16.0.0/12

The IPv4 CIDR block of the workspace.

VerifyCode String No 123456

The verification code. If the CEN instance that you specify for the CenId parameter belongs to another Alibaba Cloud account, you must call the SendVerifyCode operation to obtain the verification code.

Response parameters

Parameter Type Example Description
Status String Access

The verification result for all routes. The valid values include:

  • Access: The route verification succeeds. If the verification result for all routes is Access, Access is returned for this parameter.
  • Conflict: A CIDR block conflict exists. If the verification result of at least one route is Conflict, Conflict is returned for this parameter.
  • InvalidCen.ParameterCenInstanceId: The ID of the CEN instance and the ID of the Alibaba Cloud account are invalid. The CEN instance does not belong to the Alibaba Cloud account.
  • InvalidCen.CenUidInvalid: The Alibaba Cloud account is invalid or the Alibaba Cloud account is not granted the required permissions to access Elastic Desktop Service (EDS).
  • VerifyCode.InvalidTokenCode: The verification code is invalid.
  • VerifyCode.ReachTokenRetryTime: The retries of entering the verification code reaches the upper limit.
RequestId String 0AF9D857-AE96-53D6-B317-5DD665EC4EC0

The ID of the request.

CidrBlocks Array of String ["10.0.0.0/12","172.24.0.0/13","192.168.128.0/17"]

The three random IPv4 CIDR blocks that are recommended. If the returned value of the Status parameter is Conflict, this parameter is returned.

RouteEntries Array of RouteEntry

The information about the routes of the CEN instance.

Status String Access

The verification result for a route. The valid values include:

  • Access: The route verification succeeds.
  • Conflict: A CIDR block conflict exists.
NextHopInstanceId String vpc-uf62bu0xs5j8md54p****

The ID of the network instance that is attached to the route.

DestinationCidrBlock String 172.16.111.32/27

The CIDR block of the route.

RegionId String cn-hangzhou

The ID of the region where the route resides.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=VerifyCen
&CenId=cen-3gwy16dojz1m65****
&CidrBlock=172.16.0.0/12
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<VerifyCenResponse>
    <Status>Access</Status>
    <RouteEntries>
        <Status>Access</Status>
        <DestinationCidrBlock>100.64.X.X/10</DestinationCidrBlock>
        <RegionId>cn-shanghai</RegionId>
    </RouteEntries>
    <RouteEntries>
        <Status>Access</Status>
        <DestinationCidrBlock>172.16.111.0/27</DestinationCidrBlock>
        <RegionId>cn-shanghai</RegionId>
        <NextHopInstanceId>vpc-uf62bu0xs5j8md54****</NextHopInstanceId>
    </RouteEntries>
    <RouteEntries>
        <Status>Access</Status>
        <DestinationCidrBlock>192.168.0.0/24</DestinationCidrBlock>
        <RegionId>cn-shanghai</RegionId>
        <NextHopInstanceId>vpc-uf6n17kvw0t15br3s****</NextHopInstanceId>
    </RouteEntries>
    <RequestId>06D87278-F765-5FC9-9978-ADD7DC070C7D</RequestId>
</VerifyCenResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Status" : "Access",
  "RouteEntries" : [ {
    "Status" : "Access",
    "DestinationCidrBlock" : "100.64.X.X/10",
    "RegionId" : "cn-shanghai"
  }, {
    "Status" : "Access",
    "DestinationCidrBlock" : "172.16.111.0/27",
    "RegionId" : "cn-shanghai",
    "NextHopInstanceId" : "vpc-uf62bu0xs5j8md54****"
  }, {
    "Status" : "Access",
    "DestinationCidrBlock" : "192.168.0.0/24",
    "RegionId" : "cn-shanghai",
    "NextHopInstanceId" : "vpc-uf6n17kvw0t15br3s****"
  } ],
  "RequestId" : "06D87278-F765-5FC9-9978-ADD7DC070C7D"
}