Queries the details of the networks (VPC, VBR, or CCN) associated with a CEN instance.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

Request parameters

Parameter Type Required? Example value Description
Action String  No DescribeCenAttachedChildInstanceAttribute

The name of this action. Value: DescribeCenAttachedChildInstanceAttribute

CenId String Yes cen-3cub0ges01xmvm****

The ID of the CEN instance.

ChildInstanceId String Yes vpc-sa17uy0itvgxiq9gb****

The ID of the associated network to query.

ChildInstanceRegionId String Yes cn-hangzhou

The region ID of the associated network.

ChildInstanceType String Yes VPC

The type of the associated network. Valid values:

  • VPC: Virtual Private Cloud
  • VBR: Virtual Border Router
  • CCN: Mainland China Cloud Connect Network

Response parameters

Parameter Type Example value Description
RequestId String  ADD98358-D265-4060-87CB-A2427F5A8944

The ID of the request.

CenId String cen-5mv960yjhja0dh****

The ID of the CEN instance.

ChildInstanceId String vpc-2zebdboka7d7t37vo****

The ID of the network instance.

ChildInstanceType String VPC

The type of the network instance. Valid values:

  • VPC: Virtual Private Cloud
  • VBR: Virtual Border Router
  • CCN: Mainland China Cloud Connect Network
ChildInstanceRegionId String cn-beijing

The region ID of the network instance.

ChildInstanceOwnerId Long 123456789

The ID of the account to which the network instance belongs.

Status String Attached

The associating status of the network.

ChildInstanceName String defaultvpc

The name of the network instance.

ChildInstanceAttachTime String 2018-07-30T07:53Z

The time when the network is associated with the CEN instance.

Examples

Request example

http(s)://[Endpoint]/? Action=DescribeCenAttachedChildInstanceAttribute
&CenId=cen-3cub0ges01xmvm****
&ChildInstanceId=vpc-sa17uy0itvgxiq9gb****
&ChildInstanceRegionId=cn-hangzhou
&ChildInstanceType=VPC
&<CommonParameters>

Response example

XML format

<DescribeCenAttachedChildInstanceAttribute>
    <Status>Attached</Status>
    <ChildInstanceOwnerId>123456789</ChildInstanceOwnerId>
    <ChildInstanceId>vpc-2zebdboka7d7t37vo****</ChildInstanceId>
    <RequestId>ADD98358-D265-4060-87CB-A2427F5A8944</RequestId>
    <ChildInstanceName>defaultvpc</ChildInstanceName>
    <ChildInstanceRegionId>cn-beijing</ChildInstanceRegionId>
    <CenId>cen-5mv960yjhja0dh****</CenId>
    <ChildInstanceAttachTime>2018-07-30T07:53Z</ChildInstanceAttachTime>
    <ChildInstanceType>VPC</ChildInstanceType>
</DescribeCenAttachedChildInstanceAttribute>

JSON format

{
    "Status": "Attached",
    "ChildInstanceOwnerId": "123456789",
    "ChildInstanceId": "vpc-2zebdboka7d7t37vo****",
    "RequestId": "ADD98358-D265-4060-87CB-A2427F5A8944",
    "ChildInstanceName": "defaultvpc",
    "ChildInstanceRegionId": "cn-beijing",
    "CenId": "cen-5mv960yjhja0dh****",
    "ChildInstanceAttachTime": "2018-07-30T07:53Z",
    "ChildInstanceType": "VPC"
}

Errors

HTTP status code Error code Error message CommonParameter
404 ParameterError The parameter is error. This parameter is incorrect.

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