Forum Discussion

HTHScottJ's avatar
HTHScottJ
Icon for Nimbostratus rankNimbostratus
Jan 11, 2022

REST Syntax for user disable LTM Node

Was referring to article about the REST syntax to disable a LTM node:

 

https://support.f5.com/csp/article/K13225405#node

 

When I attempt the following in Postman:

PATCH https://10.248.240.241/mgmt/tm/ltm/node/~Common~10.67.10.25 -d '{"session":"user-disabled"}'

 

I get a 400 Bad Request. Trying to determine the correct syntax and where to find the information for future reference.

 

This is on LTM VE version 16.1.0

 

Thank you

  • Within Postman, you need to set the body of the request to be JSON, and the value as:

    {

    "session":"user-disabled"

    }

     

    Do not add the -d to the address bar, that is purely for using cURL

  • Thank you that has seemed to work, any suggestions on where to learn on when to convert to JSON within the body ect.? Feel like I am missing a footnote somewhere