Skip to main content

job_versions

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

Overview

Namejob_versions
TypeResource
Idazure.sql.job_versions

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the job version.

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, jobAgentName, jobName, jobVersion, subscriptionIdGets a job version.
list_by_jobselectresourceGroupName, serverName, jobAgentName, jobName, subscriptionIdGets all versions of a 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
jobAgentNamestringThe name of the job agent.
jobNamestringThe name of the job to get.
jobVersioninteger (int32)The version of the job to get.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a job version.

SELECT
*
FROM azure.sql.job_versions
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND jobAgentName = '{{ jobAgentName }}' -- required
AND jobName = '{{ jobName }}' -- required
AND jobVersion = '{{ jobVersion }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;