Updates the scheduled elastic scaling plan for a compute group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:UpdateWarehouseScheduleTask |
create |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/updateWarehouseScheduleTask HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
hgprecn-cn-xxxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| warehouseId |
integer |
Yes |
The compute group ID. |
1 |
| startTime |
string |
No |
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. |
0200 |
| endTime |
string |
No |
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. |
0400 |
| elasticCu |
integer |
No |
The number of elastic CPU cores. The value must be a multiple of 16, greater than or equal to 16, and less than or equal to the current compute group specifications. |
32 |
| id |
string |
No |
The elastic scaling plan ID. |
1980869072412614657 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A |
| Data |
boolean |
Indicates whether the operation is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A\n",
"Data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.