Forum Discussion

Dahl's avatar
Dahl
Icon for Altostratus rankAltostratus
May 12, 2023

Deleting AS3 application only (not entire tenant)

Hi!

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

BR Patric

3 Replies

  • 423479's avatar
    423479
    Icon for Nimbostratus rankNimbostratus

    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)

     

    • Dahl's avatar
      Dahl
      Icon for Altostratus rankAltostratus

      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