Aracılığıyla paylaş


Job - Get Runbook Content

İş adıyla tanımlanan işin runbook içeriğini alın.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
automationAccountName
path True

string

Otomasyon hesabının adı.

jobName
path True

string

İş adı.

resourceGroupName
path True

string

Azure Kaynak grubunun adı.

Normal ifade deseni: ^[-\w\._]+$

subscriptionId
path True

string

Microsoft Azure aboneliğini benzersiz olarak tanımlayan abonelik kimlik bilgilerini alır. Abonelik kimliği, her hizmet çağrısı için URI'nin bir parçasını oluşturur.

api-version
query True

string

İstemci Api Sürümü.

İstek Başlığı

Name Gerekli Tür Description
clientRequestId

string

Bu özel istemci isteğini tanımlar.

Yanıtlar

Name Tür Description
200 OK

string

Tamam

Media Types: "text/powershell"

Other Status Codes

ErrorResponse

İşlemin neden başarısız olduğunu açıklayan otomasyon hatası yanıtı.

Media Types: "text/powershell"

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

Get Job Runbook Content

Örnek isteği

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

Örnek yanıt

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

Tanımlar

ErrorResponse

İşlem hatasının hata yanıtı

Name Tür Description
code

string

Hata kodu

message

string

İşlemin neden başarısız olduğunu belirten hata iletisi.