Hello CJ,
Thank you for this very useful guide!!
I'm trying to do almost the same through a TCL script for various types of resources.
The challenge is to correctly capture all the existing settings before adding a new resource.
With your proposal, however, I'm getting a parsing error:
Syntax Error: "{" unexpected argument
I believe there is something missing somewhere but I cannot figure where this is coming from...
Below is a sample of the generated $final command:
modify apm policy agent resource-assign AP_TEST-resources_assignment_act_full_resource_assign_1_ag rules { { expression 'expr { [mcget {session.custom.resources}] contains "SecondApp" }' portal-access-resources add { /Common/SecondApp } } {
acls none
app-tunnel-resources none
bwc-dynamic-policy none
bwc-static-policies none
expression "expr { [mcget {session.custom.resources}] contains \"MyWeblink\" }"
network-access-resources none
pool none
portal-access-resources none
remote-desktop-resources none
saml-resources none
webtop none
webtop-links '{ /Common/web_site }'
}
}
I'm still scratching my head but if you have any idea...
Thanks a lot again!!!
Jérôme