Registering an Unregistered Switch
This procedure shows you how to use the APIC REST API to register a switch from the Nodes Pending Registration tab on the Fabric Membership work pane of the APIC GUI. This procedure performs the same operation as the GUI procedure of the same name in the Cisco APIC Basic Configuration Guide.
NOTE When you apply this code, the system determines whether the node exists and, if not, adds it to the Nodes Pending Registration tab. If the node does exist, the system registers it.
Procedure
Add a switch description.
Example:
POST https://<apic-ip-address>/api/policymgr/mo/uni.xml
<polUni>
<ctrlrInst>
<fabricNodeIdentPol>
<fabricNodeIdentP
nodeType="tier-2-leaf"
podId="1"
serial="XXXXXXXXX"
name="tier-2-leaf-leaf1"
nodeId="101"/>
</fabricNodeIdentPol>
</ctrlrInst>
</polUni>