curl -X POST "$API_BASE/configurations" \
-H "Authorization: Bearer $SCALA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Leaf-Spine 48 Hosts",
"components": [
{
"type": "switch",
"model": "ScalaSwitch",
"name": "spine",
"typedParameters": {}
},
{
"type": "switch",
"model": "ScalaSwitch",
"name": "leaf",
"typedParameters": {}
},
{
"type": "nic",
"model": "ScalaRoceNic",
"name": "host-nic",
"typedParameters": {}
}
],
"containers": [],
"applications": [],
"links": [],
"topology": {
"type": "clos",
"topologyTiers": 2,
"allowedComponents": ["switch", "pod"],
"components": [
{ "name": "spine", "type": "switch", "count": 2 },
{ "name": "leaf", "type": "switch", "count": 4 }
]
},
"globalParameters": {}
}'