Skip to main content

job_executions

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

Overview

Namejob_executions
TypeResource
Idazure.spring_apps.job_executions

Fields

The following fields are returned by SELECT queries:

Success.

NameDatatypeDescription
namestringJob execution Name.
endTimestring (date-time)Job execution end time.
jobSnapshotobjectThe snapshot of job configuration
startTimestring (date-time)Job execution start time.
statusstringCurrent state of the job execution
templateobjectThe template which is applied for the execution of the Job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serviceName, jobName, jobExecutionNameGet details of an execution of an Azure Spring Apps Job
listselectsubscriptionId, resourceGroupName, serviceName, jobNameGet executions of a Azure Spring Apps Job
cancelexecsubscriptionId, resourceGroupName, serviceName, jobName, jobExecutionNameTerminate execution of a running Azure Spring Apps Job

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
jobExecutionNamestringThe name of the Job execution.
jobNamestringThe name of the Job resource.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serviceNamestringThe name of the Service resource.
subscriptionIdstringGets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get details of an execution of an Azure Spring Apps Job

SELECT
name,
endTime,
jobSnapshot,
startTime,
status,
template
FROM azure.spring_apps.job_executions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND jobName = '{{ jobName }}' -- required
AND jobExecutionName = '{{ jobExecutionName }}' -- required
;

Lifecycle Methods

Terminate execution of a running Azure Spring Apps Job

EXEC azure.spring_apps.job_executions.cancel 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@serviceName='{{ serviceName }}' --required,
@jobName='{{ jobName }}' --required,
@jobExecutionName='{{ jobExecutionName }}' --required
;