Software Update Configurations - List
Rufen Sie alle Softwareupdatekonfigurationen für das Konto ab.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations?api-version=2019-06-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations?api-version=2019-06-01&$filter={$filter}
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
automation
|
path | True |
string |
Der Name des Automation-Kontos. |
resource
|
path | True |
string |
Name einer Azure-Ressourcengruppe. RegEx-Muster: |
subscription
|
path | True |
string |
Ruft die Abonnementanmeldeinformationen ab, die das Microsoft Azure-Abonnement eindeutig identifizieren. Die Abonnement-ID ist Teil des URI für jeden Dienstaufruf. |
api-version
|
query | True |
string |
Client-API-Version. |
$filter
|
query |
string |
Der Filter, der auf den Vorgang angewendet werden soll. |
Anforderungsheader
Name | Erforderlich | Typ | Beschreibung |
---|---|---|---|
clientRequestId |
string |
Identifiziert diese spezifische Clientanforderung. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
Rückgabeliste der Softwareupdatekonfigurationen. |
|
Other Status Codes |
Automatisierungsfehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist. |
Sicherheit
azure_auth
Azure Active Directory-OAuth2-Flow
Typ:
oauth2
Ablauf:
implicit
Autorisierungs-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiche
Name | Beschreibung |
---|---|
user_impersonation | Identitätswechsel Ihres Benutzerkontos |
Beispiele
List software update configurations |
List software update configurations Targeting a specific azure virtual machine |
List software update configurations
Beispielanforderung
Beispiel für eine Antwort
{
"value": [
{
"name": "testpatch-01",
"id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01",
"properties": {
"updateConfiguration": {
"operatingSystem": "Windows",
"windows": {
"includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates",
"excludedKbNumbers": null
},
"linux": null,
"targets": {
"azureQueries": [
{
"scope": [
"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0",
"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2"
],
"tag2": [
"tag2Value1",
"tag2Value2"
]
},
"filterOperator": "All"
},
"locations": null
}
]
},
"duration": "PT2H",
"azureVirtualMachines": [
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03"
],
"nonAzureComputerNames": null
},
"tasks": {
"preTask": {
"source": "HelloWorld",
"parameters": {
"COMPUTERNAME": "Computer1"
}
},
"postTask": {
"source": "GetCache",
"parameters": null
}
},
"frequency": "Week",
"startTime": "2017-10-19T12:22:00-07:00",
"creationTime": "2017-10-19T18:54:50.5233333+00:00",
"lastModifiedTime": "2017-10-19T18:54:50.68+00:00",
"provisioningState": "Succeeded",
"nextRun": "2017-10-23T12:22:00-07:00"
}
},
{
"name": "testpatch-02",
"id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02",
"properties": {
"updateConfiguration": {
"operatingSystem": "Windows",
"windows": {
"includedUpdateClassifications": "Critical, FeaturePack",
"excludedKbNumbers": null
},
"linux": null,
"targets": {
"azureQueries": [
{
"scope": [
"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d/resourceGroups/a-stasku-rg0",
"/subscriptions/422b6c61-95b0-4213-b3be-7282315df71d"
],
"tagSettings": {
"tags": {
"tag1": [
"tag1Value1",
"tag1Value2"
],
"tag2": [
"tag2Value1",
"tag2Value2"
]
},
"filterOperator": "All"
},
"locations": [
"Japan East",
"UK South"
]
}
]
},
"duration": "PT2H30M",
"azureVirtualMachines": [
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-04",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06"
],
"nonAzureComputerNames": null
},
"tasks": {
"preTask": {
"source": "HelloWorld",
"parameters": {
"COMPUTERNAME": "Computer1"
}
},
"postTask": {
"source": "GetCache",
"parameters": null
}
},
"frequency": "Hour",
"startTime": "2018-05-05T12:26:00-07:00",
"creationTime": "2017-08-11T21:52:02.7733333+00:00",
"lastModifiedTime": "2017-08-11T21:52:22.88+00:00",
"provisioningState": "Succeeded",
"nextRun": "2018-05-05T12:26:00-07:00"
}
}
]
}
List software update configurations Targeting a specific azure virtual machine
Beispielanforderung
GET https://management.azure.com/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations?api-version=2019-06-01&$filter=properties/updateConfiguration/azureVirtualMachines/any(m: m eq '/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01')
Beispiel für eine Antwort
{
"value": [
{
"name": "testpatch-01",
"id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-01",
"properties": {
"updateConfiguration": {
"operatingSystem": "Windows",
"windows": {
"includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates",
"excludedKbNumbers": null
},
"linux": null,
"duration": "PT2H",
"azureVirtualMachines": [
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03"
],
"nonAzureComputerNames": null
},
"tasks": {
"preTask": {
"source": "HelloWorld",
"parameters": {
"COMPUTERNAME": "Computer1"
}
},
"postTask": {
"source": "GetCache",
"parameters": null
}
},
"frequency": "Week",
"startTime": "2017-10-19T12:22:00-07:00",
"creationTime": "2017-10-19T18:54:50.5233333+00:00",
"lastModifiedTime": "2017-10-19T18:54:50.68+00:00",
"provisioningState": "Succeeded",
"nextRun": "2017-10-23T12:22:00-07:00"
}
},
{
"name": "testpatch-02",
"id": "/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/Mo-Resources-WCUS/providers/Microsoft.Automation/automationAccounts/Mo-AAA-WCUS/softwareUpdateConfigurations/testpatch-02",
"properties": {
"updateConfiguration": {
"operatingSystem": "Windows",
"windows": {
"includedUpdateClassifications": "Critical, FeaturePack",
"excludedKbNumbers": null
},
"linux": null,
"duration": "PT2H30M",
"azureVirtualMachines": [
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-05",
"/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-06"
],
"nonAzureComputerNames": null
},
"tasks": {
"preTask": {
"source": "HelloWorld",
"parameters": {
"COMPUTERNAME": "Computer1"
}
},
"postTask": {
"source": "GetCache",
"parameters": null
}
},
"frequency": "Hour",
"startTime": "2018-05-05T12:26:00-07:00",
"creationTime": "2017-08-11T21:52:02.7733333+00:00",
"lastModifiedTime": "2017-08-11T21:52:22.88+00:00",
"provisioningState": "Succeeded",
"nextRun": "2018-05-05T12:26:00-07:00"
}
}
]
}
Definitionen
Name | Beschreibung |
---|---|
Azure |
Azure-Abfrage für die Updatekonfiguration. |
Error |
Fehlerantwort eines Vorgangsfehlers |
Linux |
Linux-spezifische Updatekonfiguration. |
Linux |
Updateklassifizierungen, die in der Softwareupdatekonfiguration enthalten sind. |
Non |
Nicht-Azure-Abfrage für die Updatekonfiguration. |
Operating |
Betriebssystem der Zielcomputer |
Schedule |
Ruft die Häufigkeit des Zeitplans ab oder legt diese fest. |
software |
Eigenschaften der Softwareupdatekonfigurationssammlung. |
software |
Ergebnis der Auflistung aller Softwareupdatekonfigurationen |
software |
Aufgabeneigenschaften der Softwareupdatekonfiguration. |
Tag |
Filtern Sie VMs nach den angegebenen Tags "Beliebige" oder "Alle". |
Tag |
Tagfilterinformationen für den virtuellen Computer. |
Target |
Für die Updatekonfiguration spezifische Gruppierung. |
task |
Aufgabeneigenschaften der Softwareupdatekonfiguration. |
update |
Aktualisieren Sie bestimmte Eigenschaften der Softwareupdatekonfiguration. |
Windows |
Windows-spezifische Updatekonfiguration. |
Windows |
Updateklassifizierung, die in der Softwareupdatekonfiguration enthalten ist. Eine durch Trennzeichen getrennte Zeichenfolge mit erforderlichen Werten |
AzureQueryProperties
Azure-Abfrage für die Updatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
locations |
string[] |
Liste der Speicherorte, auf die die Abfrage ausgerichtet werden soll. |
scope |
string[] |
Liste der ARM-IDs für Abonnements oder Ressourcengruppen. |
tagSettings |
Tageinstellungen für den virtuellen Computer. |
ErrorResponse
Fehlerantwort eines Vorgangsfehlers
Name | Typ | Beschreibung |
---|---|---|
code |
string |
Fehlercode |
message |
string |
Eine Fehlermeldung, die angibt, warum der Vorgang fehlgeschlagen ist. |
LinuxProperties
Linux-spezifische Updatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
excludedPackageNameMasks |
string[] |
Pakete, die von der Softwareupdatekonfiguration ausgeschlossen sind. |
includedPackageClassifications |
Updateklassifizierungen, die in der Softwareupdatekonfiguration enthalten sind. |
|
includedPackageNameMasks |
string[] |
Pakete, die aus der Softwareupdatekonfiguration enthalten sind. |
rebootSetting |
string |
Neustarteinstellung für die Softwareupdatekonfiguration. |
LinuxUpdateClasses
Updateklassifizierungen, die in der Softwareupdatekonfiguration enthalten sind.
Name | Typ | Beschreibung |
---|---|---|
Critical |
string |
|
Other |
string |
|
Security |
string |
|
Unclassified |
string |
NonAzureQueryProperties
Nicht-Azure-Abfrage für die Updatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
functionAlias |
string |
Name der gespeicherten Log Analytics-Suche. |
workspaceId |
string |
Arbeitsbereichs-ID für Log Analytics, in der sich die gespeicherte Suche befindet. |
OperatingSystemType
Betriebssystem der Zielcomputer
Name | Typ | Beschreibung |
---|---|---|
Linux |
string |
|
Windows |
string |
ScheduleFrequency
Ruft die Häufigkeit des Zeitplans ab oder legt diese fest.
Name | Typ | Beschreibung |
---|---|---|
Day |
string |
|
Hour |
string |
|
Minute |
string |
Das minimale zulässige Intervall für Minutenzeitpläne beträgt 15 Minuten. |
Month |
string |
|
OneTime |
string |
|
Week |
string |
softwareUpdateConfigurationCollectionItem
Eigenschaften der Softwareupdatekonfigurationssammlung.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Ressourcen-ID der Softwareupdatekonfiguration |
name |
string |
Name der Softwareupdatekonfiguration. |
properties.creationTime |
string |
Erstellungszeit der Softwareupdatekonfiguration, die nur in der Antwort angezeigt wird. |
properties.frequency |
Ausführungshäufigkeit des Zeitplans, der der Softwareupdatekonfiguration zugeordnet ist |
|
properties.lastModifiedTime |
string |
Letzte Änderung der Softwareupdatekonfiguration, die nur in der Antwort angezeigt wird. |
properties.nextRun |
string |
Ext-Laufzeit des Updates. |
properties.provisioningState |
string |
Bereitstellungsstatus für die Softwareupdatekonfiguration, die nur in der Antwort angezeigt wird. |
properties.startTime |
string |
die Startzeit des Updates. |
properties.tasks |
Vor- und Nachbereitungsaufgaben definiert |
|
properties.updateConfiguration |
Aktualisieren Sie bestimmte Eigenschaften der Softwareupdatekonfiguration. |
softwareUpdateConfigurationListResult
Ergebnis der Auflistung aller Softwareupdatekonfigurationen
Name | Typ | Beschreibung |
---|---|---|
value |
Äußeres Objekt, das beim Auflisten aller Softwareupdatekonfigurationen zurückgegeben wird |
softwareUpdateConfigurationTasks
Aufgabeneigenschaften der Softwareupdatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
postTask |
Posttaskeigenschaften. |
|
preTask |
Eigenschaften vor der Aufgabe. |
TagOperators
Filtern Sie VMs nach den angegebenen Tags "Beliebige" oder "Alle".
Name | Typ | Beschreibung |
---|---|---|
All |
string |
|
Any |
string |
TagSettingsProperties
Tagfilterinformationen für den virtuellen Computer.
Name | Typ | Beschreibung |
---|---|---|
filterOperator |
Filtern Sie VMs nach den angegebenen Tags "Beliebige" oder "Alle". |
|
tags |
object |
Wörterbuch der Tags mit der Liste der Werte. |
TargetProperties
Für die Updatekonfiguration spezifische Gruppierung.
Name | Typ | Beschreibung |
---|---|---|
azureQueries |
Liste der Azure-Abfragen in der Softwareupdatekonfiguration. |
|
nonAzureQueries |
Liste der Nicht-Azure-Abfragen in der Softwareupdatekonfiguration. |
taskProperties
Aufgabeneigenschaften der Softwareupdatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
parameters |
object |
Ruft die Parameter des Vorgangs ab oder legt sie fest. |
source |
string |
Ruft den Namen des Runbooks ab oder legt den Namen fest. |
updateConfiguration
Aktualisieren Sie bestimmte Eigenschaften der Softwareupdatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
azureVirtualMachines |
string[] |
Liste der Azure-Ressourcen-IDs für virtuelle Azure-Computer, auf die die Softwareupdatekonfiguration ausgerichtet ist. |
duration |
string |
Maximal zulässige Zeit für die Ausführung der Softwareupdatekonfiguration. Die Dauer muss im Format PT[n]H[n]M[n]S gemäß ISO8601 |
linux |
Linux-spezifische Updatekonfiguration. |
|
nonAzureComputerNames |
string[] |
Liste der Namen von Nicht-Azure-Computern, auf die die Softwareupdatekonfiguration ausgerichtet ist. |
operatingSystem |
Betriebssystem der Zielcomputer |
|
targets |
Gruppenziele für die Softwareupdatekonfiguration. |
|
windows |
Windows-spezifische Updatekonfiguration. |
WindowsProperties
Windows-spezifische Updatekonfiguration.
Name | Typ | Beschreibung |
---|---|---|
excludedKbNumbers |
string[] |
KB-Zahlen, die von der Softwareupdatekonfiguration ausgeschlossen sind. |
includedKbNumbers |
string[] |
KB-Nummern, die aus der Softwareupdatekonfiguration enthalten sind. |
includedUpdateClassifications |
Updateklassifizierung, die in der Softwareupdatekonfiguration enthalten ist. Eine durch Trennzeichen getrennte Zeichenfolge mit erforderlichen Werten |
|
rebootSetting |
string |
Neustarteinstellung für die Softwareupdatekonfiguration. |
WindowsUpdateClasses
Updateklassifizierung, die in der Softwareupdatekonfiguration enthalten ist. Eine durch Trennzeichen getrennte Zeichenfolge mit erforderlichen Werten
Name | Typ | Beschreibung |
---|---|---|
Critical |
string |
|
Definition |
string |
|
FeaturePack |
string |
|
Security |
string |
|
ServicePack |
string |
|
Tools |
string |
|
Unclassified |
string |
|
UpdateRollup |
string |
|
Updates |
string |