Job - List By Automation Account
Een lijst met taken ophalen.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs?api-version=2023-11-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs?$filter={$filter}&api-version=2023-11-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
automation
|
path | True |
string |
De naam van het Automation-account. |
resource
|
path | True |
string |
Naam van een Azure-resourcegroep. Regex-patroon: |
subscription
|
path | True |
string |
Hiermee haalt u abonnementsreferenties op waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep. |
api-version
|
query | True |
string |
Client-API-versie. |
$filter
|
query |
string |
Het filter dat moet worden toegepast op de bewerking. |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
clientRequestId |
string |
Identificeert deze specifieke clientaanvraag. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Automatiseringsfoutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | uw gebruikersaccount imiteren |
Voorbeelden
List jobs by automation account
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs?api-version=2023-11-01
Voorbeeldrespons
{
"value": [
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/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
}
},
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/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"
}
}
],
"nextLink": null
}
Definities
Name | Description |
---|---|
Error |
Foutreactie van een bewerkingsfout |
Job |
Eigenschappen van taakverzamelingsitem. |
Job |
Het antwoordmodel voor de lijsttaakbewerking. |
Job |
Hiermee wordt de status van de taak opgehaald of ingesteld. |
Runbook |
De runbookeigenschap die is gekoppeld aan de entiteit. |
ErrorResponse
Foutreactie van een bewerkingsfout
Name | Type | Description |
---|---|---|
code |
string |
Foutcode |
message |
string |
Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt. |
JobCollectionItem
Eigenschappen van taakverzamelingsitem.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource |
name |
string |
De naam van de resource |
properties.creationTime |
string |
De aanmaaktijd van de taak. |
properties.endTime |
string |
De eindtijd van de taak. |
properties.jobId |
string |
De id van de taak. |
properties.lastModifiedTime |
string |
Het tijdstip van de laatste wijziging van de taak. |
properties.provisioningState |
string |
De inrichtingsstatus van een resource. |
properties.runOn |
string |
Hiermee geeft u de runOn-groepsnaam op waar de taak is uitgevoerd. |
properties.runbook |
De runbookkoppeling. |
|
properties.startTime |
string |
De begintijd van de taak. |
properties.status |
De status van de taak. |
|
type |
string |
Het type resource. |
JobListResultV2
Het antwoordmodel voor de lijsttaakbewerking.
Name | Type | Description |
---|---|---|
nextLink |
string |
De koppeling naar de volgende pagina. |
value |
Lijst met taken. |
JobStatus
Hiermee wordt de status van de taak opgehaald of ingesteld.
Name | Type | Description |
---|---|---|
Activating |
string |
|
Blocked |
string |
|
Completed |
string |
|
Disconnected |
string |
|
Failed |
string |
|
New |
string |
|
Removing |
string |
|
Resuming |
string |
|
Running |
string |
|
Stopped |
string |
|
Stopping |
string |
|
Suspended |
string |
|
Suspending |
string |
RunbookAssociationProperty
De runbookeigenschap die is gekoppeld aan de entiteit.
Name | Type | Description |
---|---|---|
name |
string |
Hiermee wordt de naam van het runbook opgehaald of ingesteld. |