Create Policy

Create a new policy.

Arguments Type Description
name String Name of the policy
description String Description of the policy
ios Dictionary Optional. If provided this dictionary, provide following keys:
password, restrictions, advanced_restrictions, web_content_filter, wifi, email, activesync, ldap, caldav, subscribe_calendar, carddav, webclip, access_point, applock, wallpaper, globalproxy, lock_screen_msg. It can be set to null if nothing is configured
android Dictionary Optional. If provided this dictionary, provide following keys:
Password, restrictions, wifi, email, activesync, applock and wallpaper. It can also be set to null if nothing configured
app_management Dictionary Optional. If provided this dictionary support following keys:
whitelist_apps, blacklist_apps, mandatory_apps and catalogues.
whitelist_apps, blacklist_apps and mandatory_apps are themselves also dictionary which contain app and group keys whose values are a list of corresponding app and appgroup ID’s
general_settings Dictionary Optional. Dictionary for general_settings currently contains only a location_settings key. Its value is a dictionary which contains keys trackingdisabled and interval_minutes.

Key Type
trackingdisabled Boolean
interval_minutes Integer
policy_targets Dictionary Optional. Policy targets support users, devices, usergroups and devicegroups and values are list of their respective IDs
HTTP Request:

Shell Command:
Bitnami