Creates a warehouse.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/warehouse/{instanceId}/create HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
hgpostcn-cn-j672yny9g001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| body |
object |
No |
The request body. |
|
| warehouseName |
string |
No |
The warehouse name. |
warehouse-test |
| cpu |
string |
No |
The number of CPU cores. |
32 |
| config |
string |
No |
The configuration settings. |
"" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A |
| Data |
boolean |
The result of the creation operation. Valid values:
|
true |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| Success |
string |
Indicates whether the API call was successful. This does not reflect the outcome of the business operation. Valid values:
|
true |
| ErrorMessage |
string |
The error message for a failed request. |
null |
Examples
Success response
JSON format
{
"RequestId": "2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A",
"Data": true,
"HttpStatusCode": "200",
"Success": "true",
"ErrorMessage": "null"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.