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

List Script Executions

Description

Retrieves all available script execution records

Request

Request

URL

URL


get
https://{api_host}/api/script-executions
Copy

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns array of ScriptExecution of type application/json
{
	"end_time": "string",
	"id": "string",
	"name": "string",
	"output_objects_format": "text",
	"reason": "string",
	"runspace_id": "string",
	"script": "string",
	"script_parameters": {},
	"start_time": "string",
	"state": "success"
}
string
script Required

Content of the script.


string
runspace_id Required

Unique identifier of the runspace where script execution is performed.


string
id Optional

Unique identifier for the object.


string
name Optional

Name of the script execution. It is optional to give a name of the script execution on create request. If name was not specified on the script execution creation, the field has null value.


output_objects_format Optional

Possible values are: textjson


string
reason Optional

Reason for the current script execution state. In most of the cases reason field will be empty. In case of an error or cancellation reason will contain information about the reason that caused script execution to become in this state.


string as date-time
end_time Optional

Time at which the script execution was finished. String representing time in format ISO 8601.


array of object
script_parameters Optional

List of arguments that will be passed to the script. If script content defines parameters argument can be provided. The parameter names defined in the script content should match the names specified in this list.


string as date-time
start_time Optional

Time at which the script execution was started. String representing time in format ISO 8601.


state Optional

ScriptExecutionState defines possible script execution states.

Possible values are: successerrorrunningcanceled

Errors

Errors

401

Unauthorized


500

Server Error

Code Samples

Code Samples

cURL Command

curl https://{api_host}/api/script-executions


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

Was this page helpful?