register switch

POST https://{{dcnm}}/rest/control/fabrics/{{fabric_id_number}}/inventory/discover

Uses the reachability information as a payload to register switches as members of the fabric named within the URI. All switches will be added as leaf nodes, which may require some reassignment using another API endpoint.

Request Body

{"switches"=>[{"deviceIndex"=>"n9kv-site1-leaf1(9J7ZJ3C08A0)", "sysName"=>"n9kv-site1-leaf1", "platform"=>"N9K-C9300v", "version"=>"9.3(5)", "ipaddr"=>"10.195.225.155"}, {"deviceIndex"=>"n9kv-site1-leaf2(9M9SRT47R3K)", "sysName"=>"n9kv-site1-leaf2", "platform"=>"N9K-C9300v", "version"=>"9.3(5)", "ipaddr"=>"10.195.225.156"}, {"deviceIndex"=>"n9kv-site1-leaf3(95V4MNBD0TC)", "sysName"=>"n9kv-site1-leaf3", "platform"=>"N9K-C9300v", "version"=>"9.3(5)", "ipaddr"=>"10.195.225.157"}, {"deviceIndex"=>"n9kv-site1-spine1(9IVJXBHB65C)", "sysName"=>"n9kv-site1-spine1", "platform"=>"N9K-C9300v", "version"=>"9.3(5)", "ipaddr"=>"10.195.225.159"}], "seedIP"=>"10.195.225.155", "snmpV3AuthProtocol"=>"0", "username"=>"admin", "password"=>"ins3965!", "maxHops"=>0, "cdpSecondTimeout"=>"5", "preserveConfig"=>false}

HEADERS

KeyDatatypeRequiredDescription
dcnm-tokenstring
Acceptstring