All Products
Search
Document Center

Hologres:ScaleInstance

Last Updated:Jun 10, 2026

Mengubah spesifikasi dan ruang penyimpanan Instans Gudang Data Real-time.

Deskripsi operasi

Peringatan

This is a paid operation. Before you call this operation, make sure that you understand the billing methods and pricing of Hologres.

  • For more information about Hologres billing, see Billing overview.

  • The instance becomes unavailable when you upgrade or downgrade its computing resources. Upgrading or downgrading its storage resources does not affect the services of the instance. Avoid frequently upgrading or downgrading the instance. For more information, see Upgrade or downgrade instance specifications.

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

hologram:ScaleInstance

update

*Instance

acs:hologram:{#regionId}:{#accountId}:instance/{#InstanceId}

None None

Sintaks permintaan

POST /api/v1/instances/{instanceId}/scale HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

ID instans.

hgprecn-cn-xxxxxxx

Parameter permintaan

Parameter

Type

Required

Description

Example

body

object

No

Badan permintaan.

cpu

integer

No

The instance specifications. Valid values:

  • 16: 16 vCPUs and 64 GB of memory (1 compute node)

  • 32: 32 vCPUs and 128 GB of memory (2 compute nodes)

  • 64: 64 vCPUs and 256 GB of memory (4 compute nodes)

  • 96: 96 vCPUs and 384 GB memory (6 compute nodes)

  • 128: 128 vCPUs and 512 GB memory (8 compute nodes)

  • and so on.

Catatan
  • Specify the number of vCPUs.

  • To purchase an instance type with more than 1024 vCPUs, submit a ticket.

  • Skip this parameter for shared instances.

128

storageSize

integer

No

The standard storage space of the instance. Unit: GB.

Catatan

This parameter is ignored for pay-as-you-go instances.

1000G

coldStorageSize

integer

No

The cold storage space of the instance. Unit: GB.

Catatan

This parameter is ignored for pay-as-you-go instances.

1000G

scaleType

string

Yes

The scaling type.

  • UPGRADE: Upgrades the instance.

  • DOWNGRADE: Downgrades the instance.

Catatan
  • Upgrade an instance: New specifications must be equal to or greater than original specifications. Leaving a parameter empty retains its original specification. At least one specification must be increased.

  • Downgrade an instance: New specifications must be equal to or less than original specifications. Leaving a parameter empty retains its original specification. At least one specification must be decreased.

Valid values:

  • DOWNGRADE :

    Downgrade the instance.

  • UPGRADE :

    Upgrade the instance.

UPGRADE

gatewayCount

integer

No

The number of gateways. Valid values: [2, 50].

Catatan

This parameter applies only to virtual warehouse instances.

4

enableServerlessComputing

boolean

No

Specifies whether to enable Serverless Computing.

Valid values:

  • true :

    Enable Serverless Computing.

  • false :

    Disable Serverless Computing.

true

Elemen respons

Element

Type

Description

Example

object

The response schema.

RequestId

string

The ID of the request.

D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70

Data

object

The returned results.

OrderId

string

The order ID.

219183853450000

Code

string

The error code.

InvalidScaleType.Unsupported

Message

string

The details of the error.

Invalid scale type

Success

boolean

Indicates whether the scaling was successful.

Valid values:

  • true :

    The operation was successful.

  • false :

    The operation failed.

true

HttpStatusCode

string

The HTTP status code.

200

ErrorCode

string

The error code.

null

ErrorMessage

string

The error message.

null

Catatan
  • Jika verifikasi parameter gagal, sistem mengembalikan objek Data. Dalam kasus ini, nilai parameter Success adalah false, dan parameter Code serta Message juga dikembalikan. Nilai Data.Success menunjukkan apakah operasi berhasil, kecuali jika terjadi pengecualian.

  • Saat Anda menggunakan software development kit (SDK) baru untuk memanggil operasi ini, error batas waktu permintaan mungkin dikembalikan. Ini karena periode batas waktu default klien berbeda dari server. Namun, operasi tetap berhasil dipanggil. Untuk mencegah masalah ini, atur parameter ReadTimeout ke 20000 sebelum pemanggilan.

.

Contoh

Respons sukses

JSONformat

{
  "RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
  "Data": {
    "OrderId": "219183853450000",
    "Code": "InvalidScaleType.Unsupported",
    "Message": "Invalid scale type",
    "Success": true
  },
  "HttpStatusCode": "200",
  "ErrorCode": "null",
  "ErrorMessage": "null"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.