f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

Q: How to delete all AS3 content for /Common/Shared?

Open ghalevy opened this issue 2 years ago • 2 comments

Following reference for DELETE below:

https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/as3-api.html#delete-ref

Tried:

  • sending DELETE HTTP method to AS3 endpoint /mgmt/shared/appsvcs/declare, fails 422 on dependency items
  • sending blank declaration for Common tenant, fails 422 on any dependency items.
  • sending "action": "remove", fails 422 on dependency items.

Would like to be able to simply delete ALL AS3 deployed configuration.

NOTE: Deploying to /Common/Shared tenant

ghalevy avatar Apr 27 '22 02:04 ghalevy

@ghalevy have to tried to remove the tenant using the VSCODE extension

Connect to the BIG-IP via the extension, when you connect VSCODE will add the tenants under the AS3 section. Right click on the tenant to remove as shown below.

image

Get more information about the VSCODE extension

https://marketplace.visualstudio.com/items?itemName=F5DevCentral.vscode-f5

mdditt2000 avatar May 04 '22 20:05 mdditt2000

It looks like an iRule dependency is causing the failure to delete:

{\"code\":422,\"message\":\"declaration failed\",\"response\":\"01070265:3: The rule (/Common/Shared/irule_library) cannot be deleted because it is in use by a rule (/Common/Shared/example_irule)

You can have an iRule call code from a shared iRule library using the call function: https://community.f5.com/t5/technical-articles/advanced-irules-getting-started-with-irules-procedures/ta-p/285783

You cannot delete the library iRule before deleting the iRule that references it. It would be great to have a way to signal to AS3 an iRule that should be deleted last so that a TMOS exception does not occur.

megamattzilla avatar May 16 '22 22:05 megamattzilla

@ghalevy Do the above responses help you with your question?

dstokesf5 avatar Aug 29 '22 16:08 dstokesf5

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Sep 28 '22 17:09 github-actions[bot]