Skip to main content

job_target_executions

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

Overview

Namejob_target_executions
TypeResource
Idazure.sql.job_target_executions

Fields

NameDatatypeDescription
create_timetextfield from the properties object
current_attempt_start_timetextfield from the properties object
current_attemptstextfield from the properties object
end_timetextfield from the properties object
jobAgentNametextfield from the properties object
jobExecutionIdtextfield from the properties object
jobNametextfield from the properties object
job_execution_idtextfield from the properties object
job_versiontextfield from the properties object
last_messagetextfield from the properties object
lifecycletextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
start_timetextfield from the properties object
stepNametextfield from the properties object
step_idtextfield from the properties object
step_nametextfield from the properties object
subscriptionIdtextfield from the properties object
targettextfield from the properties object
targetIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobAgentName, jobExecutionId, jobName, resourceGroupName, serverName, stepName, subscriptionId, targetIdGets a target execution.
list_by_job_executionSELECTjobAgentName, jobExecutionId, jobName, resourceGroupName, serverName, subscriptionIdLists target executions for all steps of a job execution.
list_by_stepSELECTjobAgentName, jobExecutionId, jobName, resourceGroupName, serverName, stepName, subscriptionIdLists the target executions of a job step execution.

SELECT examples

Lists target executions for all steps of a job execution.

SELECT
create_time,
current_attempt_start_time,
current_attempts,
end_time,
jobAgentName,
jobExecutionId,
jobName,
job_execution_id,
job_version,
last_message,
lifecycle,
provisioning_state,
resourceGroupName,
serverName,
start_time,
stepName,
step_id,
step_name,
subscriptionId,
target,
targetId
FROM azure.sql.vw_job_target_executions
WHERE jobAgentName = '{{ jobAgentName }}'
AND jobExecutionId = '{{ jobExecutionId }}'
AND jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';