Forum Discussion

whithajess_1787's avatar
whithajess_1787
Icon for Nimbostratus rankNimbostratus
Jan 21, 2015

How to get the applications Assigned to a Web Acceleration Profile? (Possible API Bug)

I am trying to work out the applications a specific web acceleration profile are connected to.

I am using the soap interface (ruby gem)

When I make a get_application request from Soap Documentation:

interfaces['LocalLB.ProfileWebAcceleration'].get_application(["/MYPARTITION/my_app_cache_profile"])

I get an empty response object:

[]

I would expect this to contain

"/MYPARTITION/my_app.app"

Verification (Profile is connected)

I can confirm that this profile is connected to an app (by looking for it from the app):

system_session.get_active_folder
"/MYPARTITION/my_app.app"

interfaces['LocalLB.ProfileWebAcceleration'].get_list

["/MYPARTITION/my_app.app/my_app_cache_profile"]

NB: This does not help me as if you apply a profile to an app after creation the path is

"/MYPARTITION/my_app_cache_profile"
so running
get_list
on the app path will return 0 results even though there is a caching profile assigned.

1 Reply

  • quite strange, i have done the some parsing (using python) for the usecase where you have an iapp inside a partition. When parsing here is the result :

    List of Existing Partition
    /
    /Common
    /Common/EPSEC/Status
    /Common/EPSEC
    /Common/datasync-global
    /test1
    /test1/myapp.app
    List of Existing WebAcceleration Profiles in /
    profile - /Common/optimized-caching
    profile - /Common/webacceleration
    profile - /test1/myapp.app/myapp_optimized-caching
    List of Existing WebAcceleration Profiles in /Common
    profile - /Common/optimized-caching
    profile - /Common/webacceleration
    List of Existing WebAcceleration Profiles in /Common/EPSEC/Status
    List of Existing WebAcceleration Profiles in /Common/EPSEC
    List of Existing WebAcceleration Profiles in /Common/datasync-global
    List of Existing WebAcceleration Profiles in /test1
    List of Existing WebAcceleration Profiles in /test1/myapp.app
    

    something you should look at is set_recursive_query_state to 1, stating that you do folder recursion, that s why i can found the profile while i'm in the / folder.

    strange thing is when i'am in the /test1 or /test1/myapp.app folder, i don't find anything like in your case ...