Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting AS3 application only (not entire tenant)

Dahl
Nimbostratus
Nimbostratus

Hi!

Is there a way to delete a specific AS3 application within a tenant? i´m using FAST template.

BR Patric

3 REPLIES 3

423479
Nimbostratus
Nimbostratus

Hi,

Yes, it is possible to delete a specific AS3 (Application Services 3) application within a tenant using the FAST (F5 Application Services Templates) template. Here's a general outline of the process:

Identify the name or identifier of the AS3 application you want to delete. This information is typically defined in the AS3 declaration or template you used to deploy the application.

Access the management interface or command-line interface (CLI) of your F5 device or controller.

Use the appropriate command or API endpoint to delete the AS3 application. The exact method may vary depending on the version of AS3 and the F5 device or controller you are using.

If you're using the REST API, you can send a DELETE request to the AS3 API endpoint corresponding to the specific application. The API endpoint typically follows the pattern: /mgmt/shared/appsvcs/declare/<tenant>/<app_id>, where <tenant> is the name of the tenant and <app_id> is the identifier or name of the AS3 application.

If you're using the CLI, you may need to use commands specific to your F5 device or controller. Consult the documentation or user guide for the appropriate command syntax. Generally, you would use a command like delete as3 declaration <tenant> <app_id> or something similar. 

It's important to note that the exact steps may differ depending on your specific F5 device, version, and configuration. It's always recommended to consult the F5 documentation or reach out to F5 support for accurate instructions tailored to your environment.

(Note: edited @Leslie_Hubertus - I removed spam link and ban user, but am leaving the post up for the info)

 

Hi and thanks for quick reply,

Created application with sending below body to endpoint https://{{bigip-dev_mgmt}}/mgmt/shared/fast/applications

{
    "name":"myRepro/ltm-001",
    "parameters":{
        "tenant_name":"Prod15",
        "application_name":"MyApp15",
        "app-id""app-1001",
        "virtual_port":443,
        "virtual_address":"9.9.92.9",
        "service_port":443,
        "server_addresses":["1.12.13.9"]
    }
}

Recived back:

{
    "code"202,
    "requestId"735,
    "message": [
        {
            "id""eb72a81c-214c-47f7-8f4e-74db51ad4950",
 
Send DELETE to https://{{bigip-dev_mgmt}}/mgmt/shared/appsvcs/declare/Prod15/c14c58f7-c187-402b-ada9-5fe6b3b29937
 
Back I got message: "no change" and application still exist.
 
"results": [
        {
            "code"200,
            "message""no change",
            "host""localhost",
            "tenant""Prod15/c14c58f7-c187-402b-ada9-5fe6b3b29937",
            "runTime"161
        }
    ],
    "declaration": {
        "class""ADC",
        "schemaVersion""3.0.0",
        "id""1683881758386",
        "updateMode""selective",
        "controls": {
            "archiveTimestamp""2023-05-12T08:55:59.647Z"
        }
    }
}
 
suppose i´m doing something wrong?
 
BR
Patric

Are all the applications in the same declaration? I think that when deploying to a custom tenant that is not /Common then you have to use the same declaration and declare all the applications that will be in that tenant.

 

After that just remove the application in the declaration and deploy again with the remaining applications as AS3 interpreter on the F5 device knows to implement only the declaration changes.

 

 

AS3 Configmap: Multiple Apps in Single Partition - Multiple Virtual Addresses

https://f5-cis-opsguide.readthedocs.io/en/latest/class2/module5/module5.html

 

The delete method for me is used to delete tenants or all the AS3 data as shown in:

 

https://community.f5.com/t5/codeshare/deleting-an-as3-tenant/ta-p/305813