Job - Get Output
检索作业名称标识的作业输出。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output?api-version=2024-10-23
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
automation
|
path | True |
string |
自动化帐户的名称。 |
|
job
|
path | True |
string |
要创建的作业的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Azure 资源组的名称。 |
|
subscription
|
path | True |
string |
获取唯一标识Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
|
api-version
|
query | True |
string |
客户端 API 版本。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| clientRequestId |
string |
标识此特定的客户端请求。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
string |
好的 Media Types: "text/plain" |
| Other Status Codes |
描述操作失败原因的自动化错误响应。 Media Types: "text/plain" |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Get Job Output
示例请求
GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/foo/output?api-version=2024-10-23
示例响应
Content-Type: text/plain
"Wednesday, February 7, 2018 3:47:17 PM"
定义
ErrorResponse
操作失败的错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码 |
| message |
string |
指示操作失败的原因的错误消息。 |