Script Execution resource allows you to run a script in a runspace. The API allows you to create, cancel, and retrieve script executions.


end_time Optional

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

id Optional

Unique identifier for the object.

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
Not available

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.

runspace_id Required

Unique identifier of the runspace where script execution is performed.

script Required

Content of the script.

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.

start_time Optional

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

state Optional
Not available

JSON Example

    "runspace_id": "string",
    "script": "string"

Was this page helpful?