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?$filter={$filter}&api-version=2024-10-23
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
The name of the automation account. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Name of an Azure Resource group. |
subscription
|
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. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
clientRequestId |
string |
Identifies this specific client request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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
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
{
"value": [
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContosoAutomationAccount/jobs/job1",
"name": "job1",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"properties": {
"jobId": "45203a94-a8cb-47c3-8ce4-4dcc3a5f7d23",
"runbook": {
"name": "TestRunbook"
},
"provisioningState": "Succeeded",
"status": "New",
"creationTime": "2017-03-30T05:53:30.243+00:00",
"startTime": null,
"lastModifiedTime": "2017-03-30T05:53:30.243+00:00",
"endTime": null,
"jobRuntimeEnvironment": {
"runtimeEnvironmentName": "environmentName"
}
}
},
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContosoAutomationAccount/jobs/job2",
"name": "job2",
"type": "Microsoft.Automation/AutomationAccounts/Jobs",
"properties": {
"jobId": "7584055f-5118-460a-a2dd-5176c9c8efe9",
"runbook": {
"name": "TestRunbook"
},
"provisioningState": "Succeeded",
"status": "Completed",
"creationTime": "2017-03-30T05:46:49.37+00:00",
"startTime": "2017-03-30T05:47:35.2+00:00",
"lastModifiedTime": "2017-03-30T05:48:38.857+00:00",
"endTime": "2017-03-30T05:48:38.857+00:00",
"jobRuntimeEnvironment": {
"runtimeEnvironmentName": "environmentName"
}
}
}
],
"nextLink": null
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
Error response of an operation failure |
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 |
ErrorResponse
Error response of an operation failure
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message indicating why the operation failed. |
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 |
The link to the next page. |
value |
List of jobs. |
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 | |
Activating | |
Running | |
Completed | |
Failed | |
Stopped | |
Blocked | |
Suspended | |
Disconnected | |
Suspending | |
Stopping | |
Resuming | |
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. |