Lab 2.4: Delete AS3 Tenant/Applications on BIG-IQ

Note

Estimated time to complete: 5 minutes

Lab environment access

If you have not yet visited the page Getting Started, please do so.

Task 9 - Delete Task1 with its AS3 application services

Here, we empty the tenant/partition of Task1. This should remove those partitions from BOS-vBIGIP01.termmarc.com. The relevant Apps should also disappear from BIG-IQ.

Note

We are not using the DELETE method but a POST with a declaration containing a tenant with nothing in it.

  1. Open Visual Studio Code, then use the Visual Studio code REST client extension and authenticate to BIG-IQ (follow instructions).
  1. The method and URL used will be POST https://10.1.1.4/mgmt/shared/appsvcs/declare. Copy/Paste the AS3 declaration to the body under the call using the REST client VS code extension.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
    "$schema": "https://raw.githubusercontent.com/F5Networks/f5-appsvcs-extension/master/schema/latest/as3-schema.json",
    "class": "AS3",
    "action": "deploy",
    "persist": true,
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.7.0",
        "id": "example-declaration-01",
        "label": "Task9",
        "remark": "Task 9 - Delete Tenants",
        "target": {
            "address": "10.1.1.8"
        },
        "Task1": {
            "class": "Tenant"
        }
    }
}
  1. Check the tenant/application(s) has been correctly removed from the BIG-IP and BIG-IQ.

Warning

Starting 7.0, BIG-IQ displays AS3 application services created using the AS3 Declare API as Unknown Applications. You can move those application services using the GUI, the Move/Merge API, bigiq_move_app_dashboard F5 Ansible Galaxy role or create it directly into Application in BIG-IQ using the Deploy API to define the BIG-IQ Application name.