Forum Discussion
Marcos_Gaspar_G
Nimbostratus
Jul 19, 2017APM Resource assignment through CLI
Hello all
I am deploying a huge APM configuration, in the VPE I am using AD Auth and AD Query. The thing is that there are lots of users, and I need to assign particular resources for each user ...
Pedro_Haoa
Aug 03, 2017Ret. Employee
Hi,
You can use the following commands to speed up the process of working with a BIG-IP APM policy:
To create Portal Access resources:
create apm resource portal-access pa_example application-uri http://pa_example/index items add { item { host pa_example paths /index } }
To create Remote Desktop resources:
create apm resource remote-desktop rdp ip_example color-depth 24-bit ip ip_example port 3389 window-size full-screen
To create your policy:
tmsh create cli transaction
create apm policy agent ending-allow /Common/vpnexample_end_allow_ag { }
create apm policy agent ending-deny /Common/vpnexample_end_deny_ag { }
create apm policy agent ending-deny /Common/vpnexample_end_deny2_ag { }
create apm policy policy-item /Common/vpnexample_end_allow { agents add { /Common/vpnexample_end_allow_ag { type ending-allow } } caption Allow color 1 item-type ending }
create apm policy policy-item /Common/vpnexample_end_deny { agents add { /Common/vpnexample_end_deny_ag { type ending-deny } } caption Deny color 2 item-type ending }
create apm policy policy-item /Common/vpnexample_end_deny2 { agents add { /Common/vpnexample_end_deny2_ag { type ending-deny } } caption Deny2 color 4 item-type ending }
create apm policy policy-item /Common/vpnexample_ent { caption Start color 1 rules { { caption fallback next-item /Common/vpnexample_end_deny } } }
create apm policy access-policy /Common/vpnexample { default-ending /Common/vpnexample_end_deny items add { vpnexample_end_allow { } vpnexample_end_deny { } vpnexample_end_deny2 { } vpnexample_ent { } } start-item vpnexample_ent }
create apm profile access /Common/vpnexample { accept-languages add { es } access-policy /Common/vpnexample}
submit cli transaction
To review, search and filter your APM policy:
list apm | grep -A 15 -B 15 vpnexample_end_allow
To modify/change your APM policy resources
modify apm policy policy-item vpnexample_act_full_resource_assign_10 caption Remote_Access_10 rules { { caption fallback next-item /Common/vpnexample_end_allow } }
I hope it helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
