source_control_sync_jobs
Creates, updates, deletes, gets or lists a source_control_sync_jobs
resource.
Overview
Name | source_control_sync_jobs |
Type | Resource |
Id | azure.automation.source_control_sync_jobs |
Fields
- vw_source_control_sync_jobs
- source_control_sync_jobs
Name | Datatype | Description |
---|---|---|
id | text | The id of the job. |
automationAccountName | text | field from the properties object |
creation_time | text | field from the properties object |
end_time | text | field from the properties object |
exception | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sourceControlName | text | field from the properties object |
sourceControlSyncJobId | text | field from the properties object |
source_control_sync_job_id | text | field from the properties object |
start_time | text | field from the properties object |
subscriptionId | text | field from the properties object |
sync_type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The id of the job. |
properties | object | Definition of source control sync job properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | automationAccountName, resourceGroupName, sourceControlName, sourceControlSyncJobId, subscriptionId | Retrieve the source control sync job identified by job id. |
list_by_automation_account | SELECT | automationAccountName, resourceGroupName, sourceControlName, subscriptionId | Retrieve a list of source control sync jobs. |
create | INSERT | automationAccountName, resourceGroupName, sourceControlName, sourceControlSyncJobId, subscriptionId, data__properties | Creates the sync job for a source control. |
SELECT
examples
Retrieve a list of source control sync jobs.
- vw_source_control_sync_jobs
- source_control_sync_jobs
SELECT
id,
automationAccountName,
creation_time,
end_time,
exception,
provisioning_state,
resourceGroupName,
sourceControlName,
sourceControlSyncJobId,
source_control_sync_job_id,
start_time,
subscriptionId,
sync_type
FROM azure.automation.vw_source_control_sync_jobs
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sourceControlName = '{{ sourceControlName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
properties
FROM azure.automation.source_control_sync_jobs
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sourceControlName = '{{ sourceControlName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new source_control_sync_jobs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.automation.source_control_sync_jobs (
automationAccountName,
resourceGroupName,
sourceControlName,
sourceControlSyncJobId,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ sourceControlName }}',
'{{ sourceControlSyncJobId }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: commitId
value: string