Hey all,
I'm working with DNA Center APIs. I'm not seeing how the Deploy Template API works with composite templates. I can make it work with all other templates from within the Platform GUI and testing, but it doesn't work when trying composite templates. Here's the body I'm trying to use:
{"forcePushTemplate": "True",
"isComposite": "True",
"memberTemplateDeploymentInfo": [
],
"targetInfo": [{"id": "10.0.204.215",
"params": {"snmp_location": "lab1"},
"type": "MANAGED_DEVICE_IP"}],
"templateId": "c1b6996d-db18-439d-9412-5b2b2c89a2d7"}
The part I'm unsure of is the memberTemplateDeploymentInfo -- should anything go in there and if so, what is it? I consistently get this error message:
...
"deploymentId": "Deployment of Composite Template: c1b6996d-db18-439d-9412-5b2b2c89a2d7None of the targets are applicable for the template. Hence not deploying"
...
Like I said, I can do this with all regular templates and my Python scripts all work great, but I can't get the composite templates to work even from the API GUI "Try It" pages. Any recommendations? Thanks!