Share via


Resume

The Resume operation resumes a suspended runbook job.

Request

Method Request URI HTTP Version

POST

HTTPS://<HOST>:<PORT>/00000000-0000-0000-0000-000000000000/Jobs(guid'<GUID>')/Resume

HTTP/1.1

Note

This OData operation requires the request URL to point to an instance of the Job entity.

Behavior

The following table describes how this operation behaves.

Setting Value

Is composable?

False

Has side effects?

True

Requires an entity instance?

True

Return type

None

Results belong to an entity set?

None

Parameters

Parameters are passed in either the URL of the operation, or the body, depending on the HTTP method used. The following table describes the parameters of this operation.

Name Type Nullable Description

GUID

Edm.Guid

False

Unique identifier of the runbook job.

label

Edm.String

False

Obsolete. This parameter is not used.

Example Code

POST https://sma-server:9090/00000000-0000-0000-0000-000000000000/Jobs(guid'ba12b433-342e-4c15-88a1-942020c7a92e')/Resume HTTP/1.1

Uri resumeJobUri = new Uri(string.Concat(SMAService.Jobs, string.Format("(guid'{0}')/{1}", jobID, "Resume")), UriKind.Absolute);
var returnValue = SMAService.Execute<Guid>(resumeJobUri, "POST", true);

See Also

Concepts

Job