All Products
Search
Document Center

PolarDB:TempModifyDBNode

Last Updated:Jun 10, 2026

Mengubah konfigurasi node secara sementara.

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

update

*DBCluster

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

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ClientToken

string

No

Token klien untuk memastikan idempotensi permintaan. Hasilkan token unik untuk setiap permintaan. Token bersifat case-sensitive dan dapat berisi hingga 64 karakter ASCII.

6000170000591aed949d0f5********************

DBClusterId

string

Yes

ID kluster.

pc-xxxxxxxxxx

OperationType

string

Yes

Tipe operasi. Nilai valid:

  • Modify: peningkatan sementara

  • Add: menambahkan node secara sementara.

Modify

ModifyType

string

Yes

Tipe modifikasi. Nilai bersifat tetap, yaitu TempUpgrade.

TempUpgrade

DBNode

array<object>

Yes

Informasi tentang node yang akan di-Peningkatan atau ditambahkan dalam format yang ditentukan.

object

No

TargetClass

string

No

The specifications of the node to upgrade or add.

Catatan
  • When you add a node, the node specifications must be the same as the specifications of the existing nodes.

  • For more information about the specifications of existing cluster nodes, see DescribeDBClusters.

polar.mysql.x4.medium

ZoneId

string

No

The zone for the new node. The zone must be the same as the zone of the existing nodes.

cn-hangzhou-i

RestoreTime

string

Yes

Pengatur waktu untuk mengembalikan peningkatan sementara. Format adalah YYYY-MM-DD hh:mm:ss.

Catatan

Waktu pengembalian harus minimal 1 jam setelah waktu saat ini. Waktu tersebut juga harus minimal 1 hari sebelum kluster kedaluwarsa.

2021-09-23 18:16:00

AutoUseCoupon

boolean

No

PromotionCode

string

No

727xxxxxx934

Elemen respons

Element

Type

Description

Example

object

DBClusterId

string

The cluster ID.

pc-xxxxxxxxxxxxxxxxx

DBNodeIds

array

The list of nodes.

string

The list of nodes.

Catatan

This parameter is returned only when OperationType is set to Add. If OperationType is set to Modify, an empty value is returned.

pi-***************

OrderId

string

The order ID.

2035638*******

RequestId

string

The request ID.

69A85BAF-1089-4CDF-A82F-0A140F******

Contoh

Respons sukses

JSONformat

{
  "DBClusterId": "pc-xxxxxxxxxxxxxxxxx",
  "DBNodeIds": [
    "pi-***************"
  ],
  "OrderId": "2035638*******",
  "RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidDBType.Malformed The Specified DBType is not valid.
400 InvalidDBNodeNum.Malformed The number of parameter DBNode.N is not valid.
400 InvalidDBNode.Malformed The specified parameter DBNode.N is not valid.
400 InvalidModifyType.Malformed The specified parameter ModifyType is not valid.
400 InvalidZoneId.Malformed The specified parameter ZoneId is not valid.
400 InvalidDBNodeClass.Malformed The specified parameter DBNodeClass is not valid.
403 OperationDenied.TempAddNodeDuring This operation is not allowed during the temporary add node of the cluster.
404 InvalidDBCluster.NotFound The specified DBClusterId is not found.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
404 InvalidRestoreTimeExceedsExpirationTime.Malformed The RestoreTime cannot be later than 1 day before the cluster ExpirationTime.
404 InvalidCurrentTimeExceedsRestoreTime.Malformed The RestoreTime cannot be 1 hour later than the CurrentTime.
404 InvalidRestoreTime.Malformed The specified RestoreTime is not valid.
404 InvalidOperationType.Malformed The specified OperationType is not valid.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.