Skip to content
Last updated

Server Power On Job

Overview

This job can be used to power on a server.

Job Template IDResource TypeJob Parameters
0cbb2377-1834-488d-840c-d5bf788c34fbcompute-ops-mgmt/server--

Create Job

A job can be created by issuing a POST to the /compute-ops-mgmt/v1/jobs endpoint with the correct payload for the job.

The following properties are used when creating a job:

PropertyJSON TypeDescriptionRequired?
jobTemplatestring (id)The durable Template ID of the jobYes
resourceTypestring (type)The TYPE of the resource the job will operate onYes
resourceIdstring (id)The ID of the resource the job will operate onYes
jobParamsobjectAny additional data required by the jobNo

If the job was created successfully, a 201 Created response is returned. The response includes the job resource which has a job resourceUri that you can use to track the progress of the job.

Job Parameters

This job doesn't require the jobParams property.

Example

Here's an example request payload for creating this job.

Example 1

Power on a server.

{
  "jobTemplate": "0cbb2377-1834-488d-840c-d5bf788c34fb",
  "resourceType": "compute-ops-mgmt/server",
  "resourceId": "063573-L08+8899063573208133"
}