Job Class

Definition of the job.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.automation.models._models_py3.Resource
Job

Constructor

Job(*, runbook: Optional[azure.mgmt.automation.models._models_py3.RunbookAssociationProperty] = None, started_by: Optional[str] = None, run_on: Optional[str] = None, job_id: Optional[str] = None, creation_time: Optional[datetime.datetime] = None, status: Optional[Union[str, azure.mgmt.automation.models._automation_client_enums.JobStatus]] = None, status_details: Optional[str] = None, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None, exception: Optional[str] = None, last_modified_time: Optional[datetime.datetime] = None, last_status_modified_time: Optional[datetime.datetime] = None, parameters: Optional[Dict[str, str]] = None, provisioning_state: Optional[Union[str, azure.mgmt.automation.models._automation_client_enums.JobProvisioningState]] = None, **kwargs)

Parameters

runbook
RunbookAssociationProperty
Required

Gets or sets the runbook.

started_by
str
Required

Gets or sets the job started by.

run_on
str
Required

Gets or sets the runOn which specifies the group name where the job is to be executed.

job_id
str
Required

Gets or sets the id of the job.

creation_time
datetime
Required

Gets or sets the creation time of the job.

status
str or JobStatus
Required

Gets or sets the status of the job. Possible values include: "New", "Activating", "Running", "Completed", "Failed", "Stopped", "Blocked", "Suspended", "Disconnected", "Suspending", "Stopping", "Resuming", "Removing".

status_details
str
Required

Gets or sets the status details of the job.

start_time
datetime
Required

Gets or sets the start time of the job.

end_time
datetime
Required

Gets or sets the end time of the job.

exception
str
Required

Gets or sets the exception of the job.

last_modified_time
datetime
Required

Gets or sets the last modified time of the job.

last_status_modified_time
datetime
Required

Gets or sets the last status modified time of the job.

parameters
dict[str, str]
Required

Gets or sets the parameters of the job.

provisioning_state
str or JobProvisioningState
Required

The current provisioning state of the job. Possible values include: "Failed", "Succeeded", "Suspended", "Processing".

Variables

id
str

Fully qualified resource Id for the resource.

name
str

The name of the resource.

type
str

The type of the resource.