Creates a workspace queue.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/workspaces/queues HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| description |
string |
No |
The description. |
Ray Cluster for dev. |
| gpuSpec |
array |
No |
The list of GPU models. |
|
|
string |
No |
The GPU model. |
ecs.gn7i-c8g1.2xlarge |
|
| instanceId |
string |
No |
The Ray cluster instance ID. |
ray-k7nm8ahl5te4tg91-ey7blpbg |
| paymentType |
string |
No |
The billing method of the instance. Valid values:
|
PayAsYouGo |
| preheat |
boolean |
No |
Indicates whether resource prefetch is enabled. |
|
| queueCategory |
string |
No |
The queue type. Valid values: CPU and GPU. |
CPU |
| resourceSpec |
object |
No |
The resource specifications. |
|
| cu |
integer |
No |
The maximum workspace resource capacity. |
1000 |
| gpu |
integer |
No |
The number of GPUs. |
100 |
| gpuMachineNum |
integer |
No |
The number of GPU machines. This parameter is valid only for subscription instances. |
8 |
| maxCu |
integer |
No |
The maximum number of CUs. |
0.5 |
| workspaceId |
string |
No |
The workspace ID. |
w-975bcfda9625**** |
| workspaceQueueName |
string |
No |
The workspace queue name. |
dev_queue |
| regionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
Examples
Success response
JSON format
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.