Source Control Sync Job - List By Automation Account

Retrieve a list of source control sync jobs.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs?api-version=2023-11-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs?$filter={$filter}&api-version=2023-11-01

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

resourceGroupName
path True

string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

sourceControlName
path True

string

The source control name.

subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

$filter
query

string

The filter to apply on the operation.

Responses

Name Type Description
200 OK

SourceControlSyncJobListResult

OK

Other Status Codes

ErrorResponse

Automation error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Get a list of source control sync jobs

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs?api-version=2023-11-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a",
      "properties": {
        "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a",
        "creationTime": "2017-03-28T23:14:26.903+00:00",
        "provisioningState": "Completed",
        "startTime": "2017-03-28T23:14:27.903+00:00",
        "endTime": "2017-03-28T23:14:28.903+00:00",
        "syncType": "PartialSync"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a",
      "properties": {
        "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a",
        "creationTime": "2017-03-28T23:14:26.903+00:00",
        "provisioningState": "Completed",
        "startTime": "2017-03-28T23:14:27.903+00:00",
        "endTime": "2017-03-28T23:14:28.903+00:00",
        "syncType": "PartialSync"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a",
      "properties": {
        "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a",
        "creationTime": "2017-03-28T23:14:26.903+00:00",
        "provisioningState": "Completed",
        "startTime": "2017-03-28T23:14:27.903+00:00",
        "endTime": "2017-03-28T23:14:28.903+00:00",
        "syncType": "PartialSync"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a",
      "properties": {
        "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a",
        "creationTime": "2017-03-28T23:14:26.903+00:00",
        "provisioningState": "Completed",
        "startTime": "2017-03-28T23:14:27.903+00:00",
        "endTime": "2017-03-28T23:14:28.903+00:00",
        "syncType": "PartialSync"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a",
      "properties": {
        "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a",
        "creationTime": "2017-03-28T23:14:26.903+00:00",
        "provisioningState": "Completed",
        "startTime": "2017-03-28T23:14:27.903+00:00",
        "endTime": "2017-03-28T23:14:28.903+00:00",
        "syncType": "PartialSync"
      }
    }
  ]
}

Definitions

Name Description
ErrorResponse

Error response of an operation failure

provisioningState

The provisioning state of the job.

SourceControlSyncJob

Definition of the source control sync job.

SourceControlSyncJobListResult

The response model for the list source control sync jobs operation.

syncType

The sync type.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

provisioningState

The provisioning state of the job.

Name Type Description
Completed

string

Failed

string

Running

string

SourceControlSyncJob

Definition of the source control sync job.

Name Type Description
id

string

Resource id.

name

string

Resource name.

properties.creationTime

string

The creation time of the job.

properties.endTime

string

The end time of the job.

properties.provisioningState

provisioningState

The provisioning state of the job.

properties.sourceControlSyncJobId

string

The source control sync job id.

properties.startTime

string

The start time of the job.

properties.syncType

syncType

The sync type.

type

string

Resource type.

SourceControlSyncJobListResult

The response model for the list source control sync jobs operation.

Name Type Description
nextLink

string

The next link.

value

SourceControlSyncJob[]

The list of source control sync jobs.

syncType

The sync type.

Name Type Description
FullSync

string

PartialSync

string