Forum Discussion
Rory
Nimbostratus
Mar 19, 2015Unable to mark node up or disabled, but can mark forced offline
I've been trying to play around with the Restful API to enable/disable/force offline nodes. I've been having great success forcing them offline, but can't disable or enable them.
This works and for...
nitass
Employee
Mar 22, 2015can you try something like this? i am running 11.6.0.
disable
[root@ve11c:Active:In Sync] config curl -sk -u admin:admin https://localhost/mgmt/tm/ltm/node/~Common~200.200.200.111 -H 'Content-Type: application/json' -X PATCH -d '{"session":"user-disabled"}' | /var/tmp/jq .
{
"kind": "tm:ltm:node:nodestate",
"name": "200.200.200.111",
"partition": "Common",
"fullPath": "/Common/200.200.200.111",
"generation": 617,
"selfLink": "https://localhost/mgmt/tm/ltm/node/~Common~200.200.200.111?ver=11.6.0",
"address": "200.200.200.111",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "false",
"fqdn": {
"addressFamily": "ipv4",
"autopopulate": "disabled",
"downInterval": 5,
"interval": 3600
},
"logging": "disabled",
"monitor": "default",
"rateLimit": "disabled",
"ratio": 1,
"session": "user-disabled",
"state": "unchecked"
}
enable
[root@ve11c:Active:In Sync] config curl -sk -u admin:admin https://localhost/mgmt/tm/ltm/node/~Common~200.200.200.111 -H 'Content-Type: application/json' -X PATCH -d '{"session":"user-enabled"}' | /var/tmp/jq .
{
"kind": "tm:ltm:node:nodestate",
"name": "200.200.200.111",
"partition": "Common",
"fullPath": "/Common/200.200.200.111",
"generation": 618,
"selfLink": "https://localhost/mgmt/tm/ltm/node/~Common~200.200.200.111?ver=11.6.0",
"address": "200.200.200.111",
"connectionLimit": 0,
"dynamicRatio": 1,
"ephemeral": "false",
"fqdn": {
"addressFamily": "ipv4",
"autopopulate": "disabled",
"downInterval": 5,
"interval": 3600
},
"logging": "disabled",
"monitor": "default",
"rateLimit": "disabled",
"ratio": 1,
"session": "user-enabled",
"state": "unchecked"
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
