Parameter types
Runbook Automation supports multiple parameter types. You can select parameter type when you create or modify a runbook parameter in the runbook editor, or when you create or modify an automation parameter in the edit automation dialog.
String
When defining a parameter of type string, an operator running your runbook has a free text input element to enter a parameter value. You can specify the minimum or maximum number of characters that the operator can use. You can also mark a string parameter as a password so that any input that is entered by the operator is not displayed.
Any runbook or automation parameter that is created before June 2021 is of type string.
Integer
When defining a parameter of type integer, an operator running your runbook has an integer input element to enter a parameter value.
You can specify the minimum or maximum value for the integer value.
Boolean
When defining a parameter of type Boolean, an operator running your runbook has a toggle element to enter a parameter value.
Array
When defining a parameter of type array, an operator running your runbook has an input element to define a various number of inputs. The array parameter must define what type of inputs are allowed. You can use an array of either strings, integers, or Booleans.
Enumerations
- string
- integer
- arrays with string or integer as their item type
Additionally, you can assign labels for any or all of the values of an enumeration for integer or string parameters. Labels are optional. If a label is present, the label is displayed in the Runbook Automation UI together with the value.
Value | Label |
---|---|
0 | Monday |
1 | Tuesday |
2 | Wednesday |
3 | Thursday |
4 | Friday |
5 | Saturday |
6 | Sunday |
Automation parameter support
Automation type | String | Integer | Boolean | Array |
---|---|---|---|---|
Script/Bash | String value is exported as a variable. | Integer value is exported as a variable. | Boolean is exported as variable with either value trueor value false. |
Not supported |
Script/Powershell | String value is available as a variable of type System.String . |
Integer value is available as a variable of type System.Int32 . |
Boolean value is available as a variable of type System.Boolean . |
Array variable is available as a variable of type System.Array . |
HTTP | String value is substituted where ever the parameter name occurs in HTTP automation API endpoint, credentials, or body. | Integer value is substituted where ever the parameter name occurs in HTTP automation API endpoint, credentials, or body. | Not supported | Not supported |
Ansible® | Ansible parameters extra variables, limit, tags, skip tags, job type and all survey parameters of type text, password, or multiple choice are harvested as string parameters. | Ansible parameters verbosity, inventory, credentials, and all survey parameters of type integer are harvested as integer parameter types. | Ansible parameter diff mode is harvested as Boolean parameter type. | Survey parameters of type multiselectare harvested as an array parameter type. |