[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere

Get Script Execution Stream

Description

During the execution of a script, the script execution engine collects streams that are produced by the running script. There are five stream types: information, error, warning, debug, verbose.

Request

Request

URL

URL


get
https://{api_host}/api/script-executions/{id}/streams/{stream-type}
Copy

Path Parameters

Path Parameters

string
id Required

Unique identifier of the script execution


string
stream-type Required

Type of the stream for which records to be rterieved


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns array of StreamRecord of type application/json
{
	"message": "string",
	"time": "string"
}
string
message Optional

Message of the stream records.


string as date-time
time Optional

Time the message was received by the script execution engine. String representing time in format ISO 8601.

Errors

Errors

401

Unauthorized


404

Not Found


500

Server Error

Code Samples

Code Samples

cURL Command

curl https://{api_host}/api/script-executions/{id}/streams/{stream-type}


Feedback

Was this page helpful?