Skip to main content

job_collections

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

Overview

Namejob_collections
TypeResource
Idazure.scheduler.job_collections

Fields

NameDatatypeDescription
idtextGets the job collection resource identifier.
nametextGets or sets the job collection resource name.
jobCollectionNametextfield from the properties object
locationtextGets or sets the storage account location.
quotatextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextGets or sets the tags.
typetextGets the job collection resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobCollectionName, resourceGroupName, subscriptionIdGets a job collection.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all job collections under specified resource group.
list_by_subscriptionSELECTsubscriptionIdGets all job collections under specified subscription.
create_or_updateINSERTjobCollectionName, resourceGroupName, subscriptionIdProvisions a new job collection or updates an existing job collection.
deleteDELETEjobCollectionName, resourceGroupName, subscriptionIdDeletes a job collection.
patchUPDATEjobCollectionName, resourceGroupName, subscriptionIdPatches an existing job collection.
disableEXECjobCollectionName, resourceGroupName, subscriptionIdDisables all of the jobs in the job collection.
enableEXECjobCollectionName, resourceGroupName, subscriptionIdEnables all of the jobs in the job collection.

SELECT examples

Gets all job collections under specified subscription.

SELECT
id,
name,
jobCollectionName,
location,
quota,
resourceGroupName,
sku,
state,
subscriptionId,
tags,
type
FROM azure.scheduler.vw_job_collections
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new job_collections resource.

/*+ create */
INSERT INTO azure.scheduler.job_collections (
jobCollectionName,
resourceGroupName,
subscriptionId,
name,
location,
tags,
properties
)
SELECT
'{{ jobCollectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a job_collections resource.

/*+ update */
UPDATE azure.scheduler.job_collections
SET
name = '{{ name }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
jobCollectionName = '{{ jobCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified job_collections resource.

/*+ delete */
DELETE FROM azure.scheduler.job_collections
WHERE jobCollectionName = '{{ jobCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';