Job Stream - Get

Retrieve the job stream identified by job stream id.

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

URI Parameters

Name In Required Type Description
automationAccountName
path True

string

The name of the automation account.

jobName
path True

string

The job name.

jobStreamId
path True

string

The job stream id.

resourceGroupName
path True

string

Name of an Azure Resource group.

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

subscriptionId
path True

string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client Api Version.

Request Header

Name Required Type Description
clientRequestId

string

Identifies this specific client request.

Responses

Name Type Description
200 OK

JobStream

OK

Other Status Codes

ErrorResponse

Automation error response describing why the operation failed.

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

Get job stream

Sample request

GET https://management.azure.com/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobs/foo/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/jobs/jobName/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": {}
  }
}

Definitions

Name Description
ErrorResponse

Error response of an operation failure

JobStream

Definition of the job stream.

JobStreamType

Gets or sets the stream type.

ErrorResponse

Error response of an operation failure

Name Type Description
code

string

Error code

message

string

Error message indicating why the operation failed.

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

JobStreamType

Gets or sets the stream type.

properties.summary

string

Gets or sets the summary.

properties.time

string

Gets or sets the creation time of the job.

properties.value

object

Gets or sets the values of the job stream.

JobStreamType

Gets or sets the stream type.

Name Type Description
Any

string

Debug

string

Error

string

Output

string

Progress

string

Verbose

string

Warning

string