Retrieves the details of a virtual warehouse.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:GetWarehouseDetail |
get |
*Instance
|
None | None |
Request syntax
GET /api/v1/instances/{instanceId}/getWarehouseDetail HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. This parameter is required. |
hgprecn-cn-i7m2ucpyu005 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70 |
| WarehouseDetail |
object |
The return value. |
|
| ReservedCpu |
string |
The reserved computing resources. The total computing resources of all running virtual warehouses in the instance cannot exceed this value. |
64 |
| RemainingCpu |
string |
The unallocated computing resources in the instance. |
32 |
| WarehouseList |
array<object> |
The warehouses. |
|
|
object |
Warehouse |
||
| Cpu |
integer |
The number of CPU cores. |
32 |
| Mem |
integer |
The memory size. |
128 |
| Id |
integer |
The ID. |
2 |
| Status |
string |
The status. Valid values:
|
kRunning |
| NodeCount |
integer |
The number of compute nodes. |
2 |
| Name |
string |
The name of the virtual warehouse. |
MyWarehouse |
| ElasticCpu |
integer |
The elastic computing resources. |
32 |
| DefaultWarehouse |
boolean |
Indicates whether this is the default virtual warehouse. Valid values:
|
true |
| RebalanceStatus |
string |
The rebalancing status of the virtual warehouse. Valid values:
|
DONE |
| ClusterCpu |
string |
The cluster specifications. |
32 |
| ElasticType |
string |
The type of elasticity. |
auto |
| InitClusterCount |
string |
The number of reserved clusters. |
2 |
| ClusterCount |
string |
The number of clusters. |
2 |
| MaxClusterCount |
string |
The maximum number of clusters. |
4 |
| AutoScaleType |
string |
The auto scaling type. |
Standard |
| TimedElasticCpu |
string |
The total current scheduled elastic computing resources of the virtual warehouse. |
64 |
| AutoElasticCpu |
string |
The total current auto elastic computing resources of the virtual warehouse. |
32 |
Examples
Success response
JSON format
{
"RequestId": "D3AE84AB-0873-5FC7-A4C4-8CF869D2FA70",
"WarehouseDetail": {
"ReservedCpu": "64",
"RemainingCpu": "32",
"WarehouseList": [
{
"Cpu": 32,
"Mem": 128,
"Id": 2,
"Status": "kRunning",
"NodeCount": 2,
"Name": "MyWarehouse",
"ElasticCpu": 32,
"DefaultWarehouse": true,
"RebalanceStatus": "DONE",
"ClusterCpu": "32",
"ElasticType": "auto",
"InitClusterCount": "2",
"ClusterCount": "2",
"MaxClusterCount": "4",
"AutoScaleType": "Standard"
}
],
"TimedElasticCpu": "64",
"AutoElasticCpu": "32"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.