All Products
Search
Document Center

Cloud Enterprise Network:DescribeCenAttachedChildInstances

Last Updated:Jun 10, 2026

Mengkueri instans jaringan yang terpasang pada Instans CEN.

Deskripsi operasi

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 CenId parameter.

  • You can query the network instances that are attached to a CEN instance in a specified region by setting the CenId and ChildInstanceRegionId parameters.

  • You can query a specified type of network instances that are attached to a CEN instance by setting the CenId and ChildInstanceType parameters.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cen:DescribeCenAttachedChildInstances

get

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

PageNumber

integer

No

Nomor halaman yang akan dikembalikan. Nilai default: 1.

1

PageSize

integer

No

Jumlah entri yang akan dikembalikan pada setiap halaman. 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: virtual private cloud (VPC)

  • VBR: virtual border router (VBR)

  • CCN: instans Cloud Connect Network (CCN).

VPC

ChildInstanceRegionId

string

No

ID Wilayah tempat instans jaringan di-deploy.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar Wilayah terbaru.

cn-zhangjiakou

Elemen respons

Element

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: VPC

  • VBR: VBR

  • CCN: CCN instance

VPC

Status

string

The status of the network instance. Valid values:

  • Attaching: The network instance is being created on the transit router.

  • Attached: The network instance has been created on the transit router.

  • Detaching: The network instance is being deleted from the transit router.

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. 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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.