Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.spring_apps.jobs

Fields

NameDatatypeDescription
jobNametextfield from the properties object
managed_component_referencestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
templatetextfield from the properties object
trigger_configtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, serviceName, subscriptionIdGet a Job and its properties.
listSELECTresourceGroupName, serviceName, subscriptionIdGet the Azure Spring Apps Jobs in a given service
create_or_updateINSERTjobName, resourceGroupName, serviceName, subscriptionIdCreate a new Job or update an exiting Job.
deleteDELETEjobName, resourceGroupName, serviceName, subscriptionIdOperation to delete a Job.
startEXECjobName, resourceGroupName, serviceName, subscriptionId

SELECT examples

Get the Azure Spring Apps Jobs in a given service

SELECT
jobName,
managed_component_references,
provisioning_state,
resourceGroupName,
serviceName,
source,
subscriptionId,
template,
trigger_config
FROM azure.spring_apps.vw_jobs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.jobs (
jobName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified jobs resource.

/*+ delete */
DELETE FROM azure.spring_apps.jobs
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';