Skip to main content
Solved

Passing variables to Calm runbooks

  • March 26, 2021
  • 1 reply
  • 258 views

Forum|alt.badge.img+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"
}

]

}

}

 

Best answer by JoseNutanix

Hi AldenG,

Try with:

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

 

This topic has been closed for replies.

1 reply

JoseNutanix
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 102 replies
  • Answer
  • April 6, 2021

Hi AldenG,

Try with:

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