[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere
Get Script Execution Stream
DescriptionDuring 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
URLURL
https://{api_host}/api/script-executions/{id}/streams/{stream-type}
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
This operation uses the following authentication methods.
Response
Response
Response BodyResponse 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
ErrorDetails
401
Unauthorized
ErrorDetails
404
Not Found
ErrorDetails
500
Server Error
Code Samples
cURL Command
curl https://{api_host}/api/script-executions/{id}/streams/{stream-type}
[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere