Forum Discussion
Clearing persist-records via iControlREST
Hello,
I am porting an old script which uses ssh and tmsh commands to an iControlRest based script. The old script uses this command:
tmsh delete ltm persistence persist-records node-addr $memberip
In order to redirect all clients from a node/poolmember that is disabled.
I tried a GET mgmt/tm/ltm/persistence/persist-records/~[resource ID] but regardless of what resource i try i get something like
Found unexpected json pair at component /ltm/persistence/persist-records. The json pair is /E/econflu1u.ppm.nu
Please can someone enlighten me regarding what I am doing wrong.
For other iControlREST request i have needed to make I have found curl examples but not for this, why is this? Should i do this some otherway? Please enlighten me.
In order to control traffic to a VS or a pool member I am doing a POST to tm/ltm/pool/~/members/ setting the state parameter to one of 'user-up' or 'user-down' and the session to one of 'user-enabled' or 'user-disabled' which seems to work but the old script also manipulates the session-records.
Again I ask for some one to enlighten me please.
/Anders Nygård
- Leonardo_Souza
Cirrocumulus
In theory, should be this location:
/mgmt/tm/ltm/persistence/persist-records
You can check this via the web interface:
https:///mgmt/toc
Recent Discussions
Related Content
* 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