Compute Pool
List compute pools¶
GET/api/v2/compute-pools
Lists the compute pools under the account.
Query Parameters¶
Parameter | Description |
---|---|
like string | Query parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters. |
startsWith string | Query parameter to filter the command output based on the string of characters that appear at the beginning of the object name. Uses case-sensitive pattern matching. |
showLimit integer | Query parameter to limit the maximum number of rows returned by a command. |
Response¶
Code | Description |
---|---|
200 | Successful request. |
202 | Successfully accepted the request, but it is not completed yet. |
Create a compute pool¶
POST/api/v2/compute-pools
Creates a compute pool, with standard create modifiers as query parameters. See the Compute Pool component definition for what is required to be provided in the request body.
Query Parameters¶
Parameter | Description |
---|---|
createMode string | Query parameter allowing support for different modes of resource creation. Possible values include:
|
initiallySuspended boolean | Specifies whether the compute pool is created initially in the suspended state. |
Response¶
Code | Description |
---|---|
200 | Successful request. |
202 |
Fetch a compute pool¶
Create a (or alter an existing) compute pool¶
PUT/api/v2/compute-pools/{name}
Create a (or alter an existing) compute pool. Even if the operation is just an alter, the full property set must be provided.
Response¶
Code | Description |
---|---|
200 | |
202 |
Delete a compute pool¶
DELETE/api/v2/compute-pools/{name}
Deletes a compute pool with the given name. If you enable the `ifExists` parameter, the operation succeeds even if the object does not exist. Otherwise, a 404 failure is returned if the object does not exist.
Query Parameters¶
Parameter | Description |
---|---|
ifExists boolean | Query parameter that specifies how to handle the request for a resource that does not exist:
|
Response¶
Code | Description |
---|---|
200 | |
202 |
Resume a suspended compute pool¶
POST/api/v2/compute-pools/{name}:resume
Resume a compute pool, if suspended. If the specified compute pool is already running, no action is taken.
Response¶
Code | Description |
---|---|
200 | |
202 |
Suspend an active compute pool¶
POST/api/v2/compute-pools/{name}:suspend
Suspend a compute pool, if active. If the specified compute pool is already suspended, no action is taken.
Response¶
Code | Description |
---|---|
200 | |
202 |
Stop all services on the compute pool (Deprecated)¶
POST/api/v2/compute-pools/{name}:stopallservices
Stops all services in the compute pool. Deprecated
- use :stop-all-services instead.
Response¶
Code | Description |
---|---|
200 | |
202 |
Stop all services on the compute pool¶
POST/api/v2/compute-pools/{name}:stop-all-services
Stops all services in the compute pool.
Response¶
Code | Description |
---|---|
200 | |
202 |