Get information about a job stream
The Get information about a job stream operation returns information on the specified job stream record or a job.
Request
To specify the request, replace <subscription-id> with your subscription ID, <cloud-service-name> with the name of the cloud service to use for making the request, <automation-account-name> with the name of the automation account to use for making the request, <job-name> with the name of the job, and <stream-reord-id> with the ID of the stream. Include required URI parameters.
Method |
Request URI |
---|---|
GET |
https://management.core.windows.net/<subscription-id>/cloudServices/<cloud-service-name>/resources/automation/~/automationAccounts/<automation-account-name>/jobs/<job-name>/streams/<stream-record-id>?api-version=2014-12-08 |
URI Parameters
Parameter |
Description |
---|---|
api-version |
Required. Must be set to 2014-12-08. |
Request Headers
The request header in the following table is required.
Request Header |
Description |
---|---|
x-ms-version |
Specifies the version of the operation. Set to 2013-06-01 or a later version. |
Request Body
None
Response
Status Code
A successful operation returns 200 (OK). For information about common error codes, see HTTP/1.1 Status Code Definitions.
Response Headers
Request Header |
Description |
---|---|
x-ms-request-id |
A unique identifier for the current operation. |
Response Body
{
"properties":{
"jobStreamId":"67bf1965-43f2-45ab-882d-55a1fc551fcd:00635658506585156703:00000000000000000001",
"summary":"Hello Bernique",
"time":"2015-04-28T20:44:18.5156703+00:00",
"streamType":"Output",
"streamText":"Hello Bernique\u000d\u000a",
"value":{
"value":"Hello Bernique",
"PSComputerName":"localhost",
"PSShowComputerName":true,
"PSSourceJobInstanceId":"67bf1965-43f2-45ab-882d-55a1fc551fcd"
}
}
}
Element |
Description |
---|---|
jobStreamID |
The ID of the job stream record. |
summary |
A description of the job stream record. |
streamType |
The type of the job stream record. |
streamText |
The content of the job stream record. |
value/value |
The output result of the stream. |
PSComputerName |
The Windows PowerShell computer that sent the request. |
PSShowComputerName |
Indicated whether to show the PSComputerName. |
PSSourceJobInstanceID |
The ID for the Windows PowerShell instance. |