Create a Terminal Policy
Format
Method | POST |
---|---|
URL | /tasks/create |
Request content | TerminalPolicyCreate Object |
Successful answer | TaskResult Object |
Unexpected error | HTTP 500 |
TerminalPolicyCreate Object
Schema
type | String | Task type identifier. In this case, "tpolicy_create" |
---|---|---|
terminal_policy_id | String | Unique identifier of the Terminal Policy |
auth_mode | String | Authentication mode. Currently, one of "none" or "active_directory" |
ad_server_ip | String | IP address of the LDAP/AD server that authenticates users |
ad_server_port | String | TCP port of the LDAP/AD server |
ad_proxy_user | String | LDAP/AD user with search permission |
ad_proxy_pass | String | LDAP/AD proxy user's password |
ad_realm | String | Base DN to look for users |
ad_rdn_attr | String | LDAP attribute to identify users (e.g. cn, uid, sAMAccountName, ...) |
desktop_policy_attr | String | LDAP attribute that contains the list of desktop policies for each user. Can be empty. |
desktop_policy_group_attr | String | Since 3.0.3: LDAP attribute that contains the list of desktop policies for each group the user is member of. Can be empty, in which case groups are not looked for Desktop Policies |
desktop_policy_default | String | List of desktop policies to use when desktop_policy_attr is empty or does not exist. Can be empty too. |
JSON example
{ "type": "tpolicy_create", "ad_rdn_attr": "cn", "auth_mode": "active_directory", "terminal_policy_id": "default", "ad_proxy_pass": "password", "ad_server_ip": "10.111.8.12", "desktop_policy_attr": "description", "desktop_policy_group_attr": "info", Â "desktop_policy_default": "windows7_public=Windows 7,opensuse421_public=OpenSUSE 42.1", "ad_server_port": "389", "ad_proxy_user": "cn=Administrator,cn=Users,dc=flexvdi,dc=demo", "ad_realm": "cn=Users,dc=flexvdi,dc=demo" }