Question

Passing variables to Calm runbooks

  • 26 March 2021
  • 1 reply
  • 22 views

Badge +3

I am trying to figure out how to pass variables to a calm runbook through a JSON post via the API. 

/api/nutanix/v3/runbooks/runbooku_uid/run

{
"kind": "runbook"
"spec": {
"args": [
{
"name": "network_name",
"value": "Test123"
}

]

}

}

 


1 reply

Userlevel 4
Badge +1

Hi AldenG,

Try with:

{
"spec": {
"args": [
{
"name": "var_name",
"value": "var_value"
}
]
}
}

 

Reply