Queries the cloud services that are configured on a Cloud Enterprise Network (CEN) instance.

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 No DescribeRouteServicesInCen

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

PageNumber Integer No 1

The number of the page to return. Default value: 1.

PageSize Integer No 10

The number of entries to return per page. Default value: 10. Valid values: 1 to 50.

CenId String Yes cen-pfa6ugf3xl0qsd****

The ID of the CEN instance.

Host String No 100.118.28.0/24

The service address of the cloud service.

You can enter a domain name, an IP address, or a CIDR block.

HostRegionId String No cn-hangzhou

The ID of the region where the cloud service is deployed.

You can call the DescribeChildInstanceRegions operation to query the most recent region list.

AccessRegionId String No cn-hangzhou

The ID of the region where the cloud service is accessed.

HostVpcId String No vpc-bp1h8vbrbcgohcju5****

The ID of the virtual private cloud (VPC) that is associated with the cloud service.

Response parameters

Parameter Type Example Description
PageSize Integer 10

The number of entries returned per page.

RequestId String 196C99CA-6997-5951-9721-AE89720DF856

The ID of the request.

PageNumber Integer 1

The number of the returned page.

TotalCount Integer 2

The total number of entries returned.

RouteServiceEntries Array of RouteServiceEntry

The information about the cloud services.

RouteServiceEntry
Status String Active

The status of the cloud service. Valid values:

  • Creating: The cloud service is being created.
  • Active: The cloud service is available.
  • Deleting: The cloud service is being deleted.
Host String 100.118.28.0/24

The service address of the cloud service.

Description String descname

The description of the cloud service.

HostVpcId String vpc-bp1h8vbrbcgohcju5****

The ID of the VPC that is associated with the cloud service.

CenId String cen-pfa6ugf3xl0qsd****

The ID of the CEN instance.

AccessRegionId String cn-hangzhou

The ID of the region where the cloud service is accessed.

HostRegionId String cn-hangzhou

The ID of the region where the cloud service is deployed.

Cidrs Array of String 100.118.28.0/24

The service address of the cloud service.

  • If Host is set to an IP address or a CIDR block, the value of Cidrs is an IP address or a CIDR block.
  • If Host is set to a domain name, the value of Cidrs is the IP address to which the domain name is resolved.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeRouteServicesInCen
&PageNumber=1
&PageSize=10
&CenId=cen-pfa6ugf3xl0qsd****
&Host=100.118.28.0/24
&HostRegionId=cn-hangzhou
&AccessRegionId=cn-hangzhou
&HostVpcId=vpc-bp1h8vbrbcgohcju5****
&Common request parameters

Sample success responses

XML format

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

<DescribeRouteServicesInCenResponse>
<TotalCount>2</TotalCount>
<RequestId>196C99CA-6997-5951-9721-AE89720DF856</RequestId>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<RouteServiceEntries>
    <RouteServiceEntry>
        <Status>Active</Status>
        <HostRegionId>cn-hangzhou</HostRegionId>
        <CenId>cen-pfa6ugf3xl0qsd****</CenId>
        <Host>100.118.28.0/24</Host>
        <AccessRegionId>ccn-cn-shanghai</AccessRegionId>
        <HostVpcId>vpc-bp1h8vbrbcgohcju5****</HostVpcId>
        <Cidrs>
            <Cidr>100.118.28.0/24</Cidr>
        </Cidrs>
    </RouteServiceEntry>
    <RouteServiceEntry>
        <Status>Active</Status>
        <HostRegionId>cn-hangzhou</HostRegionId>
        <CenId>cen-pfa6ugf3xl0qsd****</CenId>
        <Host>100.118.28.0/24</Host>
        <AccessRegionId>cn-hangzhou</AccessRegionId>
        <HostVpcId>vpc-bp1h8vbrbcgohcju5****</HostVpcId>
        <Cidrs>
            <Cidr>100.118.28.0/24</Cidr>
        </Cidrs>
    </RouteServiceEntry>
</RouteServiceEntries>
</DescribeRouteServicesInCenResponse>

JSON format

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

{
  "TotalCount" : 2,
  "RequestId" : "196C99CA-6997-5951-9721-AE89720DF856",
  "PageSize" : 10,
  "PageNumber" : 1,
  "RouteServiceEntries" : {
    "RouteServiceEntry" : [ {
      "Status" : "Active",
      "HostRegionId" : "cn-hangzhou",
      "CenId" : "cen-pfa6ugf3xl0qsd****",
      "Host" : "100.118.28.0/24",
      "AccessRegionId" : "ccn-cn-shanghai",
      "HostVpcId" : "vpc-bp1h8vbrbcgohcju5****",
      "Cidrs" : {
        "Cidr" : [ "100.118.28.0/24" ]
      }
    }, {
      "Status" : "Active",
      "HostRegionId" : "cn-hangzhou",
      "CenId" : "cen-pfa6ugf3xl0qsd****",
      "Host" : "100.118.28.0/24",
      "AccessRegionId" : "cn-hangzhou",
      "HostVpcId" : "vpc-bp1h8vbrbcgohcju5****",
      "Cidrs" : {
        "Cidr" : [ "100.118.28.0/24" ]
      }
    } ]
  }
}

Error codes

For a list of error codes, visit the API Error Center.