Mengubah spesifikasi dan ruang penyimpanan Instans Gudang Data Real-time.
Deskripsi operasi
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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ScaleInstance |
update |
*Instance
|
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:
Catatan
|
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.
Catatan
Valid values:
|
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 |
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 |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| ErrorCode |
string |
The error code. |
null |
| ErrorMessage |
string |
The error message. |
null |
-
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.