Category Filter
Join AD Domain
Argument | Type | Description |
---|---|---|
domain | String | Required. Name of the domain to be linked. |
server | String | Required. Specify the full name of the domain controller that hosts the domain. |
username | String | Required. Enter the username of the corresponding user’s AD login credentials. |
password | String | Optional. Enter the password of the corresponding user’s AD login credentials. |
restart | Boolean | If true == Restarts the device, If false == Doesn’t restart the device. |
users | Array | Optional. IDs of the users. |
usergroups | Array | Optional. IDs of the user groups. |
devices | Array | Optional. IDs of the devices. |
devicegroups | Array | Optional. IDs of the device groups. |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/ad_domain_join/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "users":[0], "usergroups":[4], "devices":[5,6], "devicegroups":[12], "domain": "<domain name>", "server": "<server address>", "username": "<username>", "password": "<password>", "restart": true, }] |
Shell Command:
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"users":[0],"usergroups":[4],"devices":[5,6],"devicegroups":[12],"domain": "<domain name>","server":"<server address>","username":"<username>","password":"<password>","restart":true}' https://<portal>.hexnodemdm.com/api/v1/actions/ad_domain_join/ |
HTTP Response:
1 |
HTTP/1.1 200 ok |