All Products
Search
Document Center

PolarDB:DescribeDBInitializeVariable

Last Updated:Jun 10, 2026

Mengkueri set karakter, aturan pengurutan, dan properti lain yang didukung oleh database PolarDB Basis Data Relasional Cloud-Native.

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

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

ID Kluster.

Catatan

Panggil operasi DescribeDBClusters untuk melihat Tampilan informasi tentang semua Kluster di Wilayah tujuan, termasuk ID Kluster.

pc-****************

Elemen respons

Element

Type

Description

Example

object

Variables

object

Variable

array<object>

The result set.

object

Charset

string

The character set that is supported.

EUC_CN

Collate

string

The language that indicates the collation of the databases that are created.

Catatan
  • The language must be compatible with the character set that is specified by CharacterSetName.

  • This parameter is required for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters.

  • This parameter is optional for PolarDB for MySQL clusters.

To view the valid values for this parameter, perform the following steps: Log on to the PolarDB console and click the ID of a cluster. In the left-side navigation pane, choose Settings and Management > Databases. Then, click Create Database.

C

Ctype

string

The language that indicates the character type of the database.

Catatan
  • The language must be compatible with the character set that is specified by CharacterSetName.

  • The specified parameter value must be the same as the value of Collate.

  • If the PolarDB cluster runs PolarDB for PostgreSQL (Compatible with Oracle) or PolarDB for PostgreSQL, this parameter is required. If the cluster runs PolarDB for MySQL, this parameter is not supported.

To view the valid values of this parameter, perform the following steps: First, log on to the PolarDB console and click the ID of a cluster. Then, in the left-side navigation pane, choose Settings and Management > Databases. Finally, click Create Database.

C

DBVersion

string

The database version.

11

RequestId

string

The request ID.

475F58B7-F394-4394-AA6E-4F1CBA******

DBType

string

The database type. Valid values:

  • Oracle

  • PostgreSQL

  • MySQL

PostgreSQL

Contoh

Respons sukses

JSONformat

{
  "Variables": {
    "Variable": [
      {
        "Charset": "EUC_CN",
        "Collate": "C",
        "Ctype": "C"
      }
    ]
  },
  "DBVersion": "11",
  "RequestId": "475F58B7-F394-4394-AA6E-4F1CBA******",
  "DBType": "PostgreSQL"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidDBType.Malformed The Specified DBType is not valid.
404 InvalidDBClusterId.NotFound The DBClusterId provided does not exist in our records.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.