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

List Argument Scripts Templates

Description

Argument script templates are scripts with placeholders. When values replace the placeholders, the script can run in a given script runtime. Argument script templates help to convert simple type values to objects of types that can only be produced in a given script runtime. Those objects can be used as arguments to scripts’ parameters.

This operation retrieves the available argument script templates.

Request

Request

URL

URL


get
https://{api_host}/api/argument-scripts/templates
Copy

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns array of ArgumentScriptTemplate of type application/json

List of available argument script templates

{
	"id": "string",
	"placeholders": [
		"string"
	],
	"result_type": "string",
	"script_runtime": "string",
	"script_template": "string"
}
string
id Optional

Unique identifier for the object.


array of string
placeholders Optional

The script template placeholders that has to be replaced by strings to produce a valid script.


string
result_type Optional

Type name of the object that is produced by the script template.


string
script_runtime Optional

ScriptRuntime on which this script can be executed.


string
script_template Optional

The script template.

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://{api_host}/api/argument-scripts/templates


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

Was this page helpful?