Powering off a Module in the Switch
DME
YANG
Copy
POST http://<mgmt0_IP>/api/mo/sys.json
{ "topSystem": { "children": [ { "platformEntity": { "children": [ { "platformPoweroffEntity": { "children": [ { "platformPoweroffModule": { "attributes": { "id": "1", "poweroffStatus": "yes" } } } ] } } ] } } ] } }
Response
{ imdata:[] }
Copy
POST: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"> <pltfm-items> <poweroffEntity-items> <poweroffModule-items> <PoweroffModule-list> <id>1</id> <poweroffStatus>yes</poweroffStatus> </PoweroffModule-list> </poweroffModule-items> </poweroffEntity-items> </pltfm-items> </System>