Mengkueri informasi tentang instans jaringan yang terhubung ke instans Cloud Enterprise Network (CEN).
Deskripsi operasi
Anda dapat menggunakan operasi ini untuk mengkueri instans jaringan yang terhubung ke instans CEN dengan cara berikut:
Tentukan
CenIduntuk mengkueri semua instans jaringan yang terhubung ke instans CEN.Tentukan
CenIddanChildInstanceRegionIduntuk mengkueri instans jaringan yang terhubung ke instans CEN di wilayah tertentu.Tentukan
CenIddanChildInstanceTypeuntuk mengkueri instans jaringan dari tipe tertentu yang terhubung ke instans CEN.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeCenAttachedChildInstances |
get |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri berhalaman. Nilai default: 10. Nilai valid: 1 hingga 50. |
10 |
| CenId |
string |
Yes |
ID instans CEN. |
cen-j3jzhw1zpau2km**** |
| ChildInstanceType |
string |
No |
Tipe instans jaringan. Nilai valid:
|
VPC. |
| ChildInstanceRegionId |
string |
No |
ID wilayah instans jaringan. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-zhangjiakou. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri per halaman untuk kueri berhalaman. |
10 |
| RequestId |
string |
ID permintaan. |
B2063B16-852B-5B66-B73D-4ED4D1A5E5C2 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| TotalCount |
integer |
Jumlah total entri. |
1 |
| ChildInstances |
object |
||
| ChildInstance |
array<object> |
Daftar instans jaringan yang terhubung ke instans CEN. |
|
|
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**** |
Contoh
Respons sukses
JSONformat
{
"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****"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | Parameter tidak valid. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | Akun tidak memiliki izin untuk melakukan operasi ini. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.