Delen via


Job - Get Runbook Content

Haal de runbookinhoud van de taak op die is geïdentificeerd door de taaknaam.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent?api-version=2023-11-01

URI-parameters

Name In Vereist Type Description
automationAccountName
path True

string

De naam van het Automation-account.

jobName
path True

string

De taaknaam.

resourceGroupName
path True

string

Naam van een Azure-resourcegroep.

Regex-patroon: ^[-\w\._]+$

subscriptionId
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.

Aanvraagkoptekst

Name Vereist Type Description
clientRequestId

string

Identificeert deze specifieke clientaanvraag.

Antwoorden

Name Type Description
200 OK

string

OK

Media Types: "text/powershell"

Other Status Codes

ErrorResponse

Automatiseringsfoutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Media Types: "text/powershell"

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

Get Job Runbook Content

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/foo/runbookContent?api-version=2023-11-01

Voorbeeldrespons

Content-Type: text/powershell
"get-date"

Definities

ErrorResponse

Foutreactie van een bewerkingsfout

Name Type Description
code

string

Foutcode

message

string

Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt.