Creates a time-based elastic scaling plan.
Operation description
Creates a time-based elastic scaling plan for a compute group of a specified Hologres instance. Before calling this operation, call ListWarehouses to obtain the compute group ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:CreateWarehouseScheduleTask |
create |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/createWarehouseScheduleTask HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The Hologres instance ID. |
hgpostcn-cn-lbj33559x001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters for creating a time-based elastic scaling plan. |
|
| warehouseId |
integer |
Yes |
The compute group ID. You can call ListWarehouses to obtain this ID. |
1 |
| startTime |
string |
Yes |
The start time. The value is in the HHmm format (four digits, 24-hour clock) and must be on the hour or half hour, such as 0030, 0100, or 0400. |
0100 |
| endTime |
string |
Yes |
The end time. The value is in the HHmm format (four digits, 24-hour clock) and must be on the hour or half hour, such as 0030, 0100, or 0400. The end time must be later than the start time. |
0200 |
| elasticCu |
integer |
Yes |
The number of elastic CPU cores. The value must be a multiple of 16, and must be greater than or equal to 16 and less than or equal to the specifications of the current compute group. |
32 |
| description |
string |
No |
The description of the time-based elastic scaling plan. |
user stat |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70 |
| Data |
string |
The creation result. A value of true indicates success. A value of false indicates failure. |
true |
Examples
Success response
JSON format
{
"RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
"Data": "true"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.