To deactivate and remove a NetOps Module from a given node, use the following API call to Lighthouse:
DELETE /api/v3/netops/modules/module_id/nodes/node_id
.. where module_id is one of dop (Secure Provisioning), sdi (SD Infrastructure) or ag (Automation Gateway), and node_id is the internal node ID, e.g. nodes-1.
Step by step instructions to remove NetOps Modules from a given node:
1. Login to the Lighthouse CLI shell as root or a Lighthouse Administrator user
2. Determine the node's node ID by running:
node-info --list
3. Update the highlighted fields with your username, password, the node ID and modules to deactivate, then run:
LH_USERNAME="root"
LH_PASSWORD="default"
NODE_ID="nodes-1" MODULES_TO_DEACTIVATE="dop ag sdi" token=$(curl -k -L -d '{"username":"'$LH_USERNAME'","password":"'$LH_PASSWORD'"}' https://127.0.0.1/api/v1/sessions/ | cut -f10 -d'"')
for module_id in $MODULES_TO_DEACTIVATE; do curl -k -L -X DELETE -H "Authorization: Token $token" https://127.0.0.1/api/v3/netops/modules/${module_id}/nodes/$NODE_ID done
Comments
0 comments
Article is closed for comments.