你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Test Job Streams - Get
检索由 Runbook 名称和流 ID 标识的测试作业的测试作业流。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}?api-version=2023-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
automation
|
path | True |
string |
自动化帐户的名称。 |
job
|
path | True |
string |
作业流 ID。 |
resource
|
path | True |
string |
Azure 资源组的名称。 Regex pattern: |
runbook
|
path | True |
string |
Runbook 名称。 Regex pattern: |
subscription
|
path | True |
string |
获取唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的自动化错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get test job stream
Sample Request
GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/testJob/streams/851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001?api-version=2023-11-01
Sample Response
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/foo/draft/testJob/streams/851b2101-686f-40e2-8a4b-5b8df08afbd1_00636535684910693884_00000000000000000001",
"properties": {
"jobStreamId": "851b2101-686f-40e2-8a4b-5b8df08afbd1:00636535684910693884:00000000000000000001",
"summary": null,
"time": "2018-02-07T02:48:11.0693884+00:00",
"streamType": "Output",
"streamText": "",
"value": {}
}
}
定义
名称 | 说明 |
---|---|
Error |
操作失败的错误响应 |
Job |
作业流的定义。 |
Job |
获取或设置流类型。 |
ErrorResponse
操作失败的错误响应
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码 |
message |
string |
指示操作失败原因的错误消息。 |
JobStream
作业流的定义。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
获取或设置资源的 ID。 |
properties.jobStreamId |
string |
获取或设置作业流的 ID。 |
properties.streamText |
string |
获取或设置流文本。 |
properties.streamType |
获取或设置流类型。 |
|
properties.summary |
string |
获取或设置摘要。 |
properties.time |
string |
获取或设置作业的创建时间。 |
properties.value |
object |
获取或设置作业流的值。 |
JobStreamType
获取或设置流类型。
名称 | 类型 | 说明 |
---|---|---|
Any |
string |
|
Debug |
string |
|
Error |
string |
|
Output |
string |
|
Progress |
string |
|
Verbose |
string |
|
Warning |
string |