Unable 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 forces the node offline successfully:

curl -sk -u XXXXX:XXXX https://XXX.XXX.XXX.XXX/mgmt/tm/ltm/node/~Common~NODE/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'

These two do not work giving the same error message:

curl -sk -u XXXXX:XXXX https://XXX.XXX.XXX.XXX/mgmt/tm/ltm/node/~Common~NODE/ -H "Content-Type: application/json" -X PUT -d '{"state": "unchecked", "session": "user-enabled"}'
curl -sk -u XXXXX:XXXX https://XXX.XXX.XXX.XXX/mgmt/tm/ltm/node/~Common~NODE/ -H "Content-Type: application/json" -X PUT -d '{"state": "unchecked", "session": "user-disabled"}'

The message I get is this:

{"code":400,"message":"invalid property value \"state\":\"unchecked\"","errorStack":[]}

I’m running 11.5.1HF8, could this be a version issue or am I doing something wrong? It’s just sort of odd that it works to force offline.

can 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"
}