Create Argument Scripts Script
DescriptionReplaces the placeholders in a given argument transformation script template with given values on the placeholder_value_list field The resulting script can be provided to a script execution parameter that expects a specific script runtime type
Example
If the template argument transformation script is
Get-VM -Id
The result of this operation with given Id ‘vm-1’ and Server ‘server-1’ is
Get-VM -Id ‘vm-1’ -Server ‘server-1’
Request
URLURL
Request Body
{
"template_id": "string",
"template_placeholder_value_list": [
{
"values": [
{
"placeholder_name": "string",
"value": [
"string"
]
}
]
}
]
}
Unique identifier for the argument template script.
Placeholder value list which are used to create script from script template.
Single template_placeholder_value_list produces script by the given template replacing placeholder with the given values. Multiple items for template_placeholder_value_list produce a script of scripts which can produce an array of objects. Each template_placeholder_value_list item is used to produce script from template. Scripts are then combined in a multi-line script where each line produces result object.
Script result produced by the service based on given template_id and template_placeholder_parameters
Authentication
Response
Response BodyResponse Body
200 OK
{
"script": "string",
"template_id": "string",
"template_placeholder_value_list": [
{
"values": [
{
"placeholder_name": "string",
"value": [
"string"
]
}
]
}
]
}
Unique identifier for the argument template script.
Placeholder value list which are used to create script from script template.
Single template_placeholder_value_list produces script by the given template replacing placeholder with the given values. Multiple items for template_placeholder_value_list produce a script of scripts which can produce an array of objects. Each template_placeholder_value_list item is used to produce script from template. Scripts are then combined in a multi-line script where each line produces result object.
Script result produced by the service based on given template_id and template_placeholder_parameters
Errors
Not Found