Runbook - Publish
Runbook-Entwurf veröffentlichen.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish?api-version=2023-11-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
automation
|
path | True |
string |
Der Name des Automatisierungskontos. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Name einer Azure-Ressourcengruppe. |
runbook
|
path | True |
string pattern: ^[a-zA-Z][a-zA-Z-_0-9]*$ |
Die Parameter, die für den Veröffentlichungs-Runbook-Vorgang bereitgestellt werden. |
subscription
|
path | True |
string |
Ruft 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. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
202 Accepted |
Angenommen und der Vorgang wird asynchron abgeschlossen. Header location: string |
|
Other Status Codes |
Automatisierungsfehlerantwort, die beschreibt, warum der Vorgang fehlgeschlagen ist. |
Sicherheit
azure_auth
Azure Active Directory OAuth2-Fluss
Typ:
oauth2
Ablauf:
implicit
Autorisierungs-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiche
Name | Beschreibung |
---|---|
user_impersonation | Identitätswechsel ihres Benutzerkontos |
Beispiele
Publish runbook draft
Beispielanforderung
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/publish?api-version=2023-11-01
Beispiel für eine Antwort
Location: https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/publish/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2019-06-01
Definitionen
ErrorResponse
Fehlerantwort eines Vorgangsfehlers
Name | Typ | Beschreibung |
---|---|---|
code |
string |
Fehlercode |
message |
string |
Fehlermeldung, die angibt, warum der Vorgang fehlgeschlagen ist. |