All Products
Search
Document Center

PolarDB:DescribeRdsVpcs

Last Updated:Jun 10, 2026

Menjelaskan daftar VPC.

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

polardb:DescribeRdsVpcs

get

*DBCluster

acs:polardb:{#regionId}:{#accountId}:{#resource-type}/*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID region. > Anda dapat memanggil operasi DescribeRegions untuk mengkueri region yang tersedia.

cn-hangzhou

ZoneId

string

No

ID zona.

cn-hangzhou-k

ResourceGroupId

string

No

ID grup sumber daya.

rg-************

Elemen respons

Element

Type

Description

Example

object

Vpcs

object

Daftar VPC.

Vpc

array<object>

Detail VPC.

array<object>

Detail VPC.

Status

string

The status of the VPC. Valid values:

  • Pending: The VPC is being configured.

  • Available: The VPC is available.

Available

VpcName

string

The name of the VPC.

fc-webide

VpcId

string

The ID of the VPC.

vpc-*************

IsDefault

boolean

Indicates whether the VPC is the default one.

true

CidrBlock

string

The CIDR block of the VPC.

10.21.0.0/16

RegionNo

string

The region ID.

cn-hangzhou

GmtCreate

string

The time when the VPC was created.

2025-08-28T02:25:41Z

AliUid

string

The ID of the Alibaba Cloud account.

1485293698******

VSwitchs

array<object>

The information about the vSwitches in the VPC.

object

Status

string

The status of the vSwitch. Available indicates that the vSwitch is available.

Available

VSwitchId

string

The ID of the vSwitch.

vsw-**********

IsDefault

boolean

Indicates whether the vSwitch is the default vSwitch. Valid values:

  • true: The vSwitch is the default vSwitch.

  • false: The vSwitch is not the default vSwitch.

true

CidrBlock

string

The CIDR block of the vSwitch.

192.168.7.0/24

GmtCreate

string

The time when the vSwitch was created.

2025-05-12 18:17:25

GmtModified

string

The time when the vSwitch was last modified.

2025-01-07T15:10:32+08:00

IzNo

string

The ID of the zone.

cn-hangzhou-k

VSwitchName

string

The name of the vSwitch.

test

GmtModified

string

The time when the VPC was last modified.

2025-04-30T09:41:14+08:00

Bid

string

The type of the account. This distinguishes between Alibaba Finance Cloud, Alibaba Gov Cloud, and public cloud accounts.

26842

RequestId

string

ID permintaan.

B45E8D29-EA17-5141-AE09-F7A399760C9E

Contoh

Respons sukses

JSONformat

{
  "Vpcs": {
    "Vpc": [
      {
        "Status": "Available",
        "VpcName": "fc-webide",
        "VpcId": "vpc-*************",
        "IsDefault": true,
        "CidrBlock": "10.21.0.0/16",
        "RegionNo": "cn-hangzhou",
        "GmtCreate": "2025-08-28T02:25:41Z",
        "AliUid": "1485293698******",
        "VSwitchs": [
          {
            "Status": "Available",
            "VSwitchId": "vsw-**********",
            "IsDefault": true,
            "CidrBlock": "192.168.7.0/24",
            "GmtCreate": "2025-05-12 18:17:25",
            "GmtModified": "2025-01-07T15:10:32+08:00",
            "IzNo": "cn-hangzhou-k",
            "VSwitchName": "test"
          }
        ],
        "GmtModified": "2025-04-30T09:41:14+08:00",
        "Bid": "26842"
      }
    ]
  },
  "RequestId": "B45E8D29-EA17-5141-AE09-F7A399760C9E"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.