Retrieving AD Computers
From DreamFactory
Contents
Tutorial
DreamFactory's Active Directory service allows you to retrieve your Active Directory Computers using the 'computer' resource.
This tutorial focuses on retrieving Active Directory Computers using an existing DreamFactory Active Directory service. To learn how to set up an Active Directory service see Using Active Directory.
API Endpoints
- To get a list of all Active Directory Computers and their details.
GET http://{url}/api/v2/{ad_service}/computer
- To get details about a specific Computer.
GET http://{url}/api/v2/{ad_service}/computer/{computer_name}
Example - Get list of all Active Directory Computers with all fields.
- Service name: ad
- Request URL:
GET http://foo.com/api/v2/ad/computer
Example - Get list of all Active Directory Computers with specific fields
- Service name: ad
- Fields to retrieve: cn,dn
- Request URL:
GET http://foo.com/api/v2/ad/computer?fields=cn,dn
Example - Get specific Computer information
- Service name: ad
- Username to retrieve: MSSQL
- Request URL:
GET http://foo.com/api/v2/ad/computer/MSSQL
Example - Get list of Computers by LDAP query filter
- Service name: ad
- LDAP Query: (cn=*server) [List computers where the cn ends with server]
- Request URL:
GET http://foo.com/api/v2/ad/computer?filter=(cn=*server)