Server Power On Job

Overview

This job can be used to power on a server.

Job Template ID Resource Type Data
0cbb2377-1834-488d-840c-d5bf788c34fb compute-ops-mgmt/server --

Create Job

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

The following properties are used when creating a job:

Property JSON Type Description Required?
jobTemplateUri string (uri) A job-template URI with the durable Template ID of the job Yes
resourceUri string (uri) A resource URI that the job will operate on Yes
data object Any additional data required by the job No

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.

Data

This job doesn't require the data property.

Example

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

Example 1

Power on a server.

Copy
Copied
{
    "jobTemplateUri": "/compute-ops-mgmt/v1beta2/job-templates/0cbb2377-1834-488d-840c-d5bf788c34fb",
    "resourceUri": "/compute-ops-mgmt/v1beta2/servers/063573-L08+8899063573208133"
}