cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1301
Views
0
Helpful
2
Replies

Decommissioning Fabric Nodes via API

Rob Phoenix
Level 1
Level 1

Is there a recommended way to decommission fabric nodes before deleting them, via the API?

Currently I am pushing this json:

{
  "fabricRsDecommissionNode": {
    "attributes": {
      "tDn": "topology/pod-1/node-102",
      "status": "created,modified",
      "removeFromController": "true"
    },
    "children": []
  }
}

to this URL:

https://<apic>/api/node/mo/uni/fabric/outofsvc.json

1 Accepted Solution

Accepted Solutions

Marcel Zehnder
Spotlight
Spotlight

Hi Rob

From my point of view you're doing it the correct way. There are some options:

A) You can post the fabricRsDecommissionNode-MO to either https://<apic>/api/node/mo/uni/fabric/outofsvc.json  or https://<apic>/api/mo/uni/fabric/outofsvc.json - That doesn't matter.

B) You don't need the status and children part, the following JSON will do the same job:

{
  "fabricRsDecommissionNode": {
    "attributes": {
      "tDn": "topology/pod-1/node-101",
      "removeFromController": "true"
    }
  }
}

Marcel

View solution in original post

2 Replies 2

Marcel Zehnder
Spotlight
Spotlight

Hi Rob

From my point of view you're doing it the correct way. There are some options:

A) You can post the fabricRsDecommissionNode-MO to either https://<apic>/api/node/mo/uni/fabric/outofsvc.json  or https://<apic>/api/mo/uni/fabric/outofsvc.json - That doesn't matter.

B) You don't need the status and children part, the following JSON will do the same job:

{
  "fabricRsDecommissionNode": {
    "attributes": {
      "tDn": "topology/pod-1/node-101",
      "removeFromController": "true"
    }
  }
}

Marcel

Many thanks Marcel, good to know I'm not way off base!

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License