Retrieves the list of all time-based elastic scaling plan tasks for compute groups under a specified instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:ListWarehouseScheduleTask |
list |
*Instance
|
None | None |
Request syntax
GET /api/v1/instances/{instanceId}/listWarehouseScheduleTask HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
hgpost-cn-xxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
A0A16C46-5B56-1F9B-AA37-4C3EAD95AAA8 |
| ScheduleTaskList |
array<object> |
The list of time-based elastic scaling plans. |
|
|
array<object> |
|||
| WarehouseId |
string |
The compute group ID. |
1 |
| WarehouseName |
string |
The compute group name. |
init_warehouse |
| Plans |
array<object> |
The list of elastic scaling plans for a single compute group. |
|
|
object |
|||
| StartTime |
string |
The start time. Only on-the-hour and half-hour values are supported, such as 0100 for 1:00 AM. The format is HHmm (four digits, 24-hour clock). |
0100 |
| EndTime |
string |
The end time. Only on-the-hour and half-hour values are supported. The format is HHmm (four digits, 24-hour clock). |
0400 |
| ElasticCu |
integer |
The elastic resource value. The value must be a multiple of 16, greater than or equal to 16, and less than or equal to the compute group specifications. |
32 |
| Description |
string |
The description of the elastic scaling plan. |
bill stat |
| Id |
string |
The elastic scaling plan ID. |
1802985780260052993 |
| ReservedCpu |
integer |
The reserved resources of the compute group. |
32 |
| Status |
string |
The compute group status. Valid values:
Valid values:
|
kRunning |
| ElasticType |
string |
The elastic scaling type. |
timed |
Examples
Success response
JSON format
{
"RequestId": "A0A16C46-5B56-1F9B-AA37-4C3EAD95AAA8",
"ScheduleTaskList": [
{
"WarehouseId": "1",
"WarehouseName": "init_warehouse",
"Plans": [
{
"StartTime": "0100",
"EndTime": "0400",
"ElasticCu": 32,
"Description": "bill stat",
"Id": "1802985780260052993"
}
],
"ReservedCpu": 32,
"Status": "kRunning",
"ElasticType": "timed"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.