Creates a compute pool.

POST {{baseUrl}}/api/v2/compute-pools?createMode=errorIfExists&initiallySuspended=<boolean>

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.

Request Params

KeyDatatypeRequiredDescription
createModestringQuery parameter allowing support for different modes of resource creation. Possible values include:
  • errorIfExists: Throws an error if you try to create a resource that already exists.
  • orReplace: Automatically replaces the existing resource with the current one.
  • ifNotExists: Creates a new resource when an alter is requested for a non-existent resource. | | initiallySuspended | string | | Specifies whether the compute pool is created initially in the suspended state. |

Request Body

{"name"=>"\"\"\"V\"", "instance_family"=>"<string>", "min_nodes"=>"<integer>", "max_nodes"=>"<integer>", "auto_resume"=>"<boolean>", "comment"=>"<string>", "state"=>"IDLE", "num_services"=>"<integer>", "auto_suspend_secs"=>"<long>", "active_nodes"=>"<integer>", "idle_nodes"=>"<integer>", "target_nodes"=>"<integer>", "created_on"=>"<dateTime>", "resumed_on"=>"<dateTime>", "updated_on"=>"<dateTime>", "owner"=>"<string>", "error_code"=>"<string>", "status_message"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cstring\u003e&quot;}