Job - List By Automation Account
Retrieve a list of jobs.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs?api-version=2024-10-23
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs?api-version=2024-10-23&$filter={$filter}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
automation
|
path | True |
string |
The name of the automation account. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
|
$filter
|
query |
string |
The filter to apply on the operation. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| clientRequestId |
string |
Identifies this specific client request. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
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
List jobs by automation account
Sample request
GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContosoAutomationAccount/jobs?api-version=2024-10-23
Sample response
{
"nextLink": null,
"value": [
{
"name": "job1",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContosoAutomationAccount/jobs/job1",
"properties": {
"creationTime": "2017-03-30T05:53:30.243+00:00",
"endTime": null,
"jobId": "45203a94-a8cb-47c3-8ce4-4dcc3a5f7d23",
"jobRuntimeEnvironment": {
"runtimeEnvironmentName": "environmentName"
},
"lastModifiedTime": "2017-03-30T05:53:30.243+00:00",
"provisioningState": "Succeeded",
"runbook": {
"name": "TestRunbook"
},
"startTime": null,
"status": "New"
}
},
{
"name": "job2",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContosoAutomationAccount/jobs/job2",
"properties": {
"creationTime": "2017-03-30T05:46:49.37+00:00",
"endTime": "2017-03-30T05:48:38.857+00:00",
"jobId": "7584055f-5118-460a-a2dd-5176c9c8efe9",
"jobRuntimeEnvironment": {
"runtimeEnvironmentName": "environmentName"
},
"lastModifiedTime": "2017-03-30T05:48:38.857+00:00",
"provisioningState": "Succeeded",
"runbook": {
"name": "TestRunbook"
},
"startTime": "2017-03-30T05:47:35.2+00:00",
"status": "Completed"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
created |
The type of identity that created the resource. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Job |
Job collection item properties. |
|
Job |
The response model for the list job operation. |
|
Job |
The runbook property associated with the entity. |
|
Job |
Gets or sets the status of the job. |
|
Runbook |
The runbook property associated with the entity. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
JobCollectionItem
Job collection item properties.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
The name of the resource |
| properties.creationTime |
string (date-time) |
The creation time of the job. |
| properties.endTime |
string (date-time) |
The end time of the job. |
| properties.jobId |
string (uuid) |
The id of the job. |
| properties.jobRuntimeEnvironment |
Runtime Environment Property |
|
| properties.lastModifiedTime |
string (date-time) |
The last modified time of the job. |
| properties.provisioningState |
string |
The provisioning state of a resource. |
| properties.runOn |
string |
Specifies the runOn group name where the job was executed. |
| properties.runbook |
The runbook association. |
|
| properties.startTime |
string (date-time) |
The start time of the job. |
| properties.startedBy |
string |
Gets or sets the job started by. |
| properties.status |
The status of the job. |
|
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
JobListResultV2
The response model for the list job operation.
| Name | Type | Description |
|---|---|---|
| nextLink |
string (uri) |
The link to the next page of items |
| value |
The JobCollectionItem items on this page |
JobRuntimeEnvironment
The runbook property associated with the entity.
| Name | Type | Description |
|---|---|---|
| runtimeEnvironmentName |
string |
Name of Runtime Environment. |
JobStatus
Gets or sets the status of the job.
| Value | Description |
|---|---|
| New |
New |
| Activating |
Activating |
| Running |
Running |
| Completed |
Completed |
| Failed |
Failed |
| Stopped |
Stopped |
| Blocked |
Blocked |
| Suspended |
Suspended |
| Disconnected |
Disconnected |
| Suspending |
Suspending |
| Stopping |
Stopping |
| Resuming |
Resuming |
| Removing |
Removing |
RunbookAssociationProperty
The runbook property associated with the entity.
| Name | Type | Description |
|---|---|---|
| name |
string |
Gets or sets the name of the runbook. |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |