Job Stream - List By Job
Retrieve a list of jobs streams identified by job name.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams?api-version=2024-10-23
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams?api-version=2024-10-23&$filter={$filter}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
automation
|
path | True |
string |
The name of the automation account. |
|
job
|
path | True |
string |
The job name. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
|
$filter
|
query |
string |
The filter to apply on the operation. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| clientRequestId |
string |
Identifies this specific client request. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
List job streams by job name
Sample request
GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/foo/streams?api-version=2024-10-23
Sample response
{
"nextLink": null,
"value": [
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001",
"properties": {
"jobStreamId": "24456a8a-2857-4af6-932c-3455f38bd05e_00636535675981232703_00000000000000000001",
"streamType": "Output",
"summary": null,
"time": "2018-02-07T02:33:18.1232703+00:00"
}
},
{
"id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourcegroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/jobName/streams/24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002",
"properties": {
"jobStreamId": "24456a8a-2857-4af6-932c-3455f38bd05e_00636535675984691350_00000000000000000002",
"streamType": "Output",
"summary": null,
"time": "2018-02-07T02:33:18.469135+00:00"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Job |
Definition of the job stream. |
|
Job |
The response model for the list job stream operation. |
|
Job |
Gets or sets the stream type. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
JobStream
Definition of the job stream.
| Name | Type | Description |
|---|---|---|
| id |
string |
Gets or sets the id of the resource. |
| properties.jobStreamId |
string |
Gets or sets the id of the job stream. |
| properties.streamText |
string |
Gets or sets the stream text. |
| properties.streamType |
Gets or sets the stream type. |
|
| properties.summary |
string |
Gets or sets the summary. |
| properties.time |
string (date-time) |
Gets or sets the creation time of the job. |
| properties.value |
management.azure.com.automation.jobstream.listbyjob |
Gets or sets the values of the job stream. |
JobStreamListResult
The response model for the list job stream operation.
| Name | Type | Description |
|---|---|---|
| nextLink |
string (uri) |
The link to the next page of items |
| value |
The JobStream items on this page |
JobStreamType
Gets or sets the stream type.
| Value | Description |
|---|---|
| Progress |
Progress |
| Output |
Output |
| Warning |
Warning |
| Error |
Error |
| Debug |
Debug |
| Verbose |
Verbose |
| Any |
Any |