Queries the network instances that are attached to a CEN instance.
Operation description
You can use one of the following methods to query the information about the network instances that are attached to a CEN instance:
You can query all the network instances that are attached to a CEN instance by setting the
CenIdparameter.You can query the network instances that are attached to a CEN instance in a specified region by setting the
CenIdandChildInstanceRegionIdparameters.You can query a specified type of network instances that are attached to a CEN instance by setting the
CenIdandChildInstanceTypeparameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeCenAttachedChildInstances |
get |
*CenInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The number of the page to return. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Valid values: 1 to 50. |
10 |
| CenId |
string |
Yes |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
| ChildInstanceType |
string |
No |
The type of the network instance. Valid values:
|
VPC |
| ChildInstanceRegionId |
string |
No |
The ID of the region where the network instance is deployed. You can call the DescribeRegions operation to query the most recent region list. |
cn-zhangjiakou |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The ID of the request. |
B2063B16-852B-5B66-B73D-4ED4D1A5E5C2 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| ChildInstances |
object |
||
| ChildInstance |
array<object> |
The information about the network instances. |
|
|
object |
|||
| ChildInstanceType |
string |
The type of the network instance. Valid values:
|
VPC |
| Status |
string |
The status of the network instance. Valid values:
|
Attached |
| ChildInstanceRegionId |
string |
The ID of the region where the network instance is deployed. |
cn-zhangjiakou |
| ChildInstanceOwnerId |
integer |
The ID of the Alibaba Cloud account to which the network instance belongs. |
1688000000000000 |
| ChildInstanceId |
string |
The ID of the network instance. |
vpc-8vb1lu55yt9rlwgxl**** |
| ManagedService |
string |
The cloud service that the network instance belongs to. Its standard code is only returned when the VPC is connected to the transit router. For self-managed VPCs, no code is returned. |
swas |
| ChildInstanceAttachTime |
string |
The time when the network instance was attached to the CEN instance. The time follows the ISO8601 standard in the YYYY-MM-DDThh:mmZ format. The time is displayed in UTC. |
2021-08-10T06:27Z |
| CenId |
string |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
Examples
Success response
JSON format
{
"PageSize": 10,
"RequestId": "B2063B16-852B-5B66-B73D-4ED4D1A5E5C2",
"PageNumber": 1,
"TotalCount": 1,
"ChildInstances": {
"ChildInstance": [
{
"ChildInstanceType": "VPC",
"Status": "Attached",
"ChildInstanceRegionId": "cn-zhangjiakou",
"ChildInstanceOwnerId": 1688000000000000,
"ChildInstanceId": "vpc-8vb1lu55yt9rlwgxl****",
"ManagedService": "swas",
"ChildInstanceAttachTime": "2021-08-10T06:27Z",
"CenId": "cen-j3jzhw1zpau2km****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.