[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere
Get Script Execution Output
DescriptionOutput object could be in a different format depending on the requested output object format on script execution request. Text and JSON are currently supported. When Text format is requested, the objects produced by the script execution are formatted in a table, the same way Format-Table formats the objects in PowerShell. When JSON format is requested, a custom json formatting is used to serialize the objects produced by the script execution. The JSON objects contain the type name and the full name of the implementing interfaces.
Request
URLURL
https://{api_host}/api/script-executions/{id}/output
Path Parameters
Path Parameters
string
id
Required
Unique identifier of the script execution
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
array
of
string
of type application/json
Errors
ErrorDetails
401
Unauthorized
ErrorDetails
404
Not Found
ErrorDetails
500
Server Error
Code Samples
cURL Command
curl https://{api_host}/api/script-executions/{id}/output
[{"label":"Latest (1.0)","version":"latest"}]
srs-for-vsphere