Passing variables to Calm runbooks | Nutanix Community
Skip to main content
Solved

Passing variables to Calm runbooks

  • March 26, 2021
  • 1 reply
  • 237 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"
            }
        ]
    }
}

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

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

Hi AldenG,

Try with:

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