edit-icon download-icon

DescribeCenAttachedChildInstances

Last Updated: Mar 28, 2018

Description

Query the networks attached to a CEN instance.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

DescribeCenAttachedChildInstances

CenIdString Yes The ID of the CEN instance.
PageNumberIntegerNoThe number of pages to return. Default value is 1.
PageSizeIntegerNoThe number of rows per page. The maximum value is 50 and the default value is 10.

Response parameters

Name Type Description
RequestId String The ID of the request.
PageNumber Integer The current page number.
TotalCountIntegerThe number of queried entries.
PageSizeIntegerThe number of entries on the current page.
ChildInstancesJSON StringA list of the attached networks.
The ChildInstances parameter contains the following elements:
CenIdStringThe ID of the CEN instance.
ChildInstanceIdStringThe ID of the network.
ChildInstanceTypeStringThe type of the network.
ChildInstanceRegionId StringThe ID of the region where the network is located.
StatusStringThe status of the network:
  • attaching
  • attached
  • detaching
ChildInstanceOwnerId Long The account ID to which the network belongs.

Error codes

The following table lists the error codes specific to this API. For more information about common error codes, see Common error codes.

Error code Error message HTTP status code Description
ParameterIllegal.CenInstanceId The parameter of CEN instance id is illegal. 400 Invalid value for the CenInstanceId parameter.

Examples

Request example

  1. http://cbn.aliyuncs.com/?Action=DescribeCenAttachedChildInstances
  2. &CenId=cen-kojok19x3j0q6kx
  3. &<Common parameters>

Response example

XML format

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <DescribeCenAttachedChildInstancesResponse>
  3. <ChildInstances <ChildInstance>
  4. <CenId>cen-kojok19x3j0q6kx5qf</CenId>
  5. <ChildInstanceId>vpc-hp3kz27b1uv9hsmm9vqiv</ChildInstanceId>
  6. <ChildInstanceOwnerId>1894573272823690</ChildInstanceOwnerId>
  7. <ChildInstanceRegionId>cn-huhehaote</ChildInstanceRegionId>
  8. <ChildInstanceType>VPC</ChildInstanceType>
  9. <Status>Attached</Satus>
  10. </ChildIntance>
  11. <ChildInstance>
  12. <CenId>cen-kojok19x3j0q6kx5qf</CenId>
  13. <ChildInstanceId>vpc-gw85r5kr8urw957szm455</ChildInstanceId>
  14. <ChildInstanceOwnerId>1894573272823690</ChildInstanceOwnerId>
  15. <ChildInstanceRegionId>eu-central-1</ChildInstanceRegionId>
  16. <ChildInstanceType>VPC</ChildInstanceType>
  17. <Status>Attched</Status>
  18. e>
  19. </ChildInstance>
  20. </ChildInstances>
  21. <PageNumber>1</PageNumber>
  22. <PageSize>10</PageSize>
  23. <RequestId>50F8E0AB-A225-41C0-AC88-FFB51A4F5C72</RequestId>
  24. <TotalCount>3</TotalCount>
  25. </DescribeCenAttachedChildInstancesResponse>

JSON format

  1. {
  2. "PageNumber":1,
  3. "ChildInstances":{
  4. "ChildInstance":[
  5. {
  6. "Status":"Attached",
  7. "ChildInstanceOwnerId":"1894573272823690",
  8. "ChildInstanceId":"vpc-hp3kz27b1uv9hsmm9vqiv",
  9. "ChildInstanceRegionId":"cn-huhehaote",
  10. "CenId":"cen-kojok19x3j0q6kx5qf",
  11. "ChildInstanceType":"VPC"
  12. },
  13. {
  14. "Status":"Attached",
  15. "ChildInstanceOwnerId":"1894573272823690",
  16. "ChildInstanceId":"vpc-gw85r5kr8urw957szm455",
  17. "ChildInstanceRegionId":"eu-central-1",
  18. "CenId":"cen-kojok19x3j0q6kx5qf",
  19. "ChildInstanceType":"VPC"
  20. }
  21. ]
  22. },
  23. "TotalCount":3,
  24. "PageSize":10,
  25. "RequestId":"50F8E0AB-A225-41C0-AC88-FFB51A4F5C72"
  26. }
Thank you! We've received your feedback.