Retrieving AD Computers

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsRetrieving AD Computers
(Example - Getting list of all Active Directory Computers with a specific fields.)
(Example - Getting a list of Computers by LDAP query filter.)
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
 
<pre>GET http://foo.com/api/v2/ad/computer?fields=cn,dn</pre>
 
<pre>GET http://foo.com/api/v2/ad/computer?fields=cn,dn</pre>
  
=== Example - Getting a specific Computer information. ===
+
=== Example - Get specific Computer information ===
 
* Service name: ad
 
* Service name: ad
 
* Username to retrieve: MSSQL
 
* Username to retrieve: MSSQL
Line 31: Line 31:
 
<pre>GET http://foo.com/api/v2/ad/computer/MSSQL</pre>
 
<pre>GET http://foo.com/api/v2/ad/computer/MSSQL</pre>
  
=== Example - Getting a list of Computers by LDAP query filter. ===
+
=== Example - Get list of Computers by LDAP query filter ===
 
* Service name: ad
 
* Service name: ad
 
* LDAP Query: (cn=*server) [List computers where the cn ends with server]
 
* LDAP Query: (cn=*server) [List computers where the cn ends with server]
 
* Request URL:
 
* Request URL:
 
<pre>GET http://foo.com/api/v2/ad/computer?filter=(cn=*server)</pre>
 
<pre>GET http://foo.com/api/v2/ad/computer?filter=(cn=*server)</pre>

Latest revision as of 16:36, 15 July 2016

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)