Queries the information about a network instance, such as a virtual private cloud (VPC), a virtual border router, or a Cloud Connect Network (CCN) instance, that is attached to a Cloud Enterprise Network (CEN) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cen:DescribeCenAttachedChildInstanceAttribute | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-5mv960yjhja0dh**** |
ChildInstanceId | string | Yes | The ID of the network instance that is attached to the CEN instance. | vpc-2zebdboka7d7t37vo**** |
ChildInstanceType | string | Yes | The type of the network instance. Valid values:
| VPC |
ChildInstanceRegionId | string | Yes | The region ID of the network instance. You can call the DescribeRegions operation to query the most recent region list. | cn-beijing |
Response parameters
Examples
Sample success responses
JSON
format
{
"Status": "Attached",
"ChildInstanceType": "VPC",
"ChildInstanceRegionId": "cn-beijing",
"RequestId": "ADD98358-D265-4060-87CB-A2427F5A8944",
"ChildInstanceOwnerId": 1688000000000000,
"ChildInstanceId": "vpc-2zebdboka7d7t37vo****",
"CenId": "cen-5mv960yjhja0dh****",
"ChildInstanceName": "defaultvpc",
"ChildInstanceAttachTime": "2018-07-30T07:53Z",
"ChildInstanceAttributes": {
"CidrBlock": "192.168.0.0/16",
"SecondaryCidrBlocks": {
"secondaryCidrBlock": [
"192.168.20.0/24"
]
},
"Ipv6CidrBlock": "2408:XXXX:0:a600::/56",
"Ipv6CidrBlocks": {
"ipv6CidrBlock": [
{
"Ipv6Isp": "BGP",
"Ipv6CidrBlock": "2408:XXXX:0:6a::/56"
}
]
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | SystemBusy | The system is busy. Please try again later. | The error message returned because the system is unavailable. Try again later. |
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. |
404 | ParameterError | The parameter is error. | The error message returned because a parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-04-27 | The Error code has changed. The response structure of the API has changed | View Change Details |