Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

REST Syntax for user disable LTM Node

HTHScottJ
Nimbostratus
Nimbostratus

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

2 REPLIES 2

PeteWhite
F5 Employee
F5 Employee

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

HTHScottJ
Nimbostratus
Nimbostratus

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