CreateWarehouse
Creates a warehouse.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:CreateWarehouse |
create |
*Instance
|
None | None |
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 name of the warehouse. |
warehouse-test |
| cpu |
string |
No |
The number of CPU cores. |
32 |
| config |
string |
No |
The configuration information. |
"" |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2A8DEF6E-067E-5DB0-BAE1-2894266E6C6A |
| Data |
boolean |
The returned result. A value of true indicates that the warehouse was created successfully. A value of false indicates that the creation failed. Valid values:
|
true |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
| Success |
string |
The request result, which is independent of the business logic. Valid values:
|
true |
| ErrorMessage |
string |
The error message. |
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.