Server Restart Job

Overview

This job can be used to restart a server.

Restart: Forces the server to warm-boot: CPUs and I/O resources are reset. Using this option circumvents the graceful shutdown features of the operating system.

Job Template ID Resource Type Data
30110551-cad6-4069-95b8-dbce9bbd8525 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

Restart a server.

Copy
Copied
{
    "jobTemplateUri": "/compute-ops-mgmt/v1beta2/job-templates/30110551-cad6-4069-95b8-dbce9bbd8525",
    "resourceUri": "/compute-ops-mgmt/v1beta2/servers/855308-N51+8899855308351678"
}