attach network to switches

POST https://{{dcnm}}/rest/top-down/fabrics/{{fabric}}/networks/attachments

Attaches the created network to the leaf switches defined within the payload of the request.

Please ensure proper serial numbers and edge-facing ports are referenced in the payload

Request Body

{"0"=>{"networkName"=>"{{network}}", "lanAttachList"=>[{"fabric"=>"{{fabric}}", "networkName"=>"{{network}}", "serialNumber"=>"9FZQF5326F2", "vlan"=>"{{network_vlan_id}}", "dot1QVlan"=>1, "untagged"=>false, "freeformConfig"=>"", "deployment"=>true}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
dcnm-tokenstring