Skip to main content

jobs

Creates, updates, deletes, gets or lists a jobs resource.

Overview

Namejobs
TypeResource
Idaws.mgn.jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringthe ARN of the specific Job.
creation_date_timestringJob creation time. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)
end_date_timestringJob end time. (pattern: <code>[1-9][0-9]*-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?Z</code>)
initiated_bystringJob initiated by field. (START_TEST, START_CUTOVER, DIAGNOSTIC, TERMINATE)
job_idstringJob ID. (pattern: <code>mgnjob-[0-9a-zA-Z]{17}</code>)
participating_serversarrayServers participating in a specific Job.
statusstringJob status. (PENDING, STARTED, COMPLETED)
tagsobjectTags associated with specific Job.
type_stringJob type. (LAUNCH, TERMINATE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_jobsselectregionReturns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to Support and only used in response to relevant support tickets.
delete_jobdeleteregionDeletes a single Job by ID.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normally created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to Support and only used in response to relevant support tickets.

SELECT
arn,
creation_date_time,
end_date_time,
initiated_by,
job_id,
participating_servers,
status,
tags,
type_
FROM aws.mgn.jobs
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes a single Job by ID.

DELETE FROM aws.mgn.jobs
WHERE region = '{{ region }}' --required
;