Is there any document i can see to update the http client profile name for specific VS using python.
I don't think you can change the name of an http profile, I think you need to create a new one instead. However, if you're just talking about identifying which profile on the vip is actually the http profile so you can remove that and add a new one, that's pretty simple. This gist shows you how to identify the HTTP profile on the vip. Let me know specifics of what you're trying to accomplish and I can complete the script tomorrow when I have some down time (currently on holiday). If you have HTTP services on that virtual, swapping the old for a new profile will need to be in a transaction, and you'll first do a DELETE method on the existing applied HTTP profile, then a POST on the new. That will be done simultaneously so as not to trigger errors. Anyway, let me know and I'll see what I can do. Output of the gist on my test box:
>>> python rename_http_profile.py Virtual name: nerdlife_vip Virtual nerdlife_vip has associated http profile http_test...continuing.
Thanks for your quick resposne!
Tried to run the script, but it is throwing beow SSL cert error:
/mgmt/shared/authn/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
Also i'm looking to update the HTTP client profile for specifc VS from OLD to NEW.