Direct Inward Dialing: +1 408 916 9393
This API can be used to enable any disabled computer.
Request URL format: http://<hostname>:<port>/RestAPI/EnableComputer
Request parameters:
Parameter name | Mandatory | Description |
PRODUCT_NAME | Yes | Product name or module name from which the request is being sent; will be needed for auditing. |
AuthToken | Yes | Authentication token obtained using the Generate AuthToken API. |
domainName | Yes | Name of the domain in which the computer accounts are present. |
inputFormat | Yes | Details of each computer account to be enabled. This attribute should be a JSONArray string and must be in the format mentioned below:
[<JSONObject>, <JSONObject>, <JSONObject>]; JSONObject: The key/value pair of LDAP attributes and the values.
NOTE: You can specify any of the following attributes as search criteria to locate computer objects using REST API requests:
|
Response:
The response will be a JSON array string which contains the list of JSONObjects.
Parameter name | Description |
sAMAccountName | sAMAccountName of the computer. |
objectGUID | objectGUID of the computer. |
objectSID | objectSID of the computer. |
userPrincipalName | Name of the computer. |
ouName | Name of the container where the computer is enabled. |
statusMessage | Contains the appropriate message if an issue or error occurs while processing the request. |
status | Contains 1 or 0, indicating whether the operation is a success or failure. |
Sample input/output:
Request
http://admanager:8080/RestAPI/EnableComputer?AuthToken=3187f9d3-da6b-4bc2-aaff-a73495753b8d&PRODUCT_NAME=MODULE_NAME&domainName=test.com&inputFormat=[{sAMAccountName:Test-Computer-1$}]
Response:
[ { "sAMAccountName": "Test-Computer-1$", "objectGUID": "{AF4A2A32-374C-4D74-A18A-DAE86AD45DBB}", "objectSID": "S-1-5-21-2058198098-2931619084-4035890149-8429", "userPrincipalName": "Test-Computer-1", "ouName": "OU=Computers,DC=test,DC=com", "statusMessage": "Successfully Enabled.", "status": "1" } ]