Forum Discussion

matfreem's avatar
matfreem
Icon for Cirrus rankCirrus
Sep 01, 2022

Deleting an AS3 Tenant

Wanted to share the below method for deleting AS3 tenant's as it wasn't documented . You can use the HTTP delete method; but if an admin misses the tenant name after /declare/ it would wipe out all tenants!

If you POST the below body to the 'https://{{bigip_mgmt}}/mgmt/shared/appsvcs/declare'; as its a blank declaration; AS3 will remove your partition / tenant.

.

 

 

{
    "class": "AS3",
    "action": "deploy",
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.1.0",
        "id": "tenant_name",
        "label": "tenant_name_via_AS3",
        "remark": "tenant_name_via_AS3",
        "CHANGE-ME-TO-TENANT-NAME": {
            "class": "Tenant"        
        }
    }
 }