Forum Discussion
how to specify partition in bigrest delete()?
Hi, in bigrest, the delete() method doesn't seem to have any way to specify partition.
https://bigrest.readthedocs.io/bigiq_delete.html
I am following this example to delete & add an ssl client profile on a virtual server:
https://github.com/mshoaibshafi/nre-tools/blob/main/f5/toggle_serverssl_profile.py
I have a path, like this:
delete_path = '/mgmt/tm/ltm/virtual/virtual-server-name/profiles/profile-name'
When I try to delete it, I get RestAPIError:
"message": "01020036:3: The requested virtual server profile (/Common/virtual-server-name /Common/profile-name) was not found."
This makes sense, because my virtual server is not in the Common partition. So how do I delete a profile from a virtual server that's not in the Common partition?
I found something here:
https://support.f5.com/csp/article/K78107437
The short version is, use "~" characters to specify the partition.
delete_path = '/mgmt/tm/ltm/virtual/~partition-name~virtual-server-name/profiles/profile-name'
- rahveeCirrus
I found something here:
https://support.f5.com/csp/article/K78107437
The short version is, use "~" characters to specify the partition.
delete_path = '/mgmt/tm/ltm/virtual/~partition-name~virtual-server-name/profiles/profile-name'- Leslie_HubertusRet. Employee
Hi rahvee - it looks like you answered your own question, so I marked your reply as the Accepted Solution. If that isn't the case, please let me know and I'll do my best to get you the help you need!
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