vw_jobs
Creates, updates, deletes, gets or lists a vw_jobs
resource.
Overview
Name | vw_jobs |
Type | View |
Id | azure.automation.vw_jobs |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
JSON_EXTRACT(properties, '$.runbook') as "runbook",
JSON_EXTRACT(properties, '$.startedBy') as "started_by",
JSON_EXTRACT(properties, '$.runOn') as "run_on",
JSON_EXTRACT(properties, '$.jobId') as "job_id",
JSON_EXTRACT(properties, '$.creationTime') as "creation_time",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.statusDetails') as "status_details",
JSON_EXTRACT(properties, '$.startTime') as "start_time",
JSON_EXTRACT(properties, '$.endTime') as "end_time",
JSON_EXTRACT(properties, '$.exception') as "exception",
JSON_EXTRACT(properties, '$.lastModifiedTime') as "last_modified_time",
JSON_EXTRACT(properties, '$.lastStatusModifiedTime') as "last_status_modified_time",
JSON_EXTRACT(properties, '$.parameters') as "parameters",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
automationAccountName,
jobName
FROM azure.automation.jobs
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND automationAccountName = 'replace-me';
SELECT
json_extract_path_text(properties, '$.runbook') as "runbook",
json_extract_path_text(properties, '$.startedBy') as "started_by",
json_extract_path_text(properties, '$.runOn') as "run_on",
json_extract_path_text(properties, '$.jobId') as "job_id",
json_extract_path_text(properties, '$.creationTime') as "creation_time",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.statusDetails') as "status_details",
json_extract_path_text(properties, '$.startTime') as "start_time",
json_extract_path_text(properties, '$.endTime') as "end_time",
json_extract_path_text(properties, '$.exception') as "exception",
json_extract_path_text(properties, '$.lastModifiedTime') as "last_modified_time",
json_extract_path_text(properties, '$.lastStatusModifiedTime') as "last_status_modified_time",
json_extract_path_text(properties, '$.parameters') as "parameters",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
subscriptionId,
resourceGroupName,
automationAccountName,
jobName
FROM azure.automation.jobs
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND automationAccountName = 'replace-me';