REST API - exportResources

The table summarizes the REST API - exportResources.

Request

Format
GET <baseurl>/resources/export/<version>
Path parameters version: Major version number of the organization model in which an organization model entity resides. Specify -1 for the latest version.
Query parameters
  • includecontainers=boolean (optional, default=true): indicates whether or not LDAP containers are to be exported.
  • includeresources=boolean (optional, default=true): indicates whether or not LDAP resources are to be exported.
  • includepushdests=boolean (optional, default=true): indicates whether or not LDAP push destinations are to be exported.

Response

JSON Returns a JSON representation of the content of the exportResourcesResponse element.
XML Returns the content of the exportResourcesResponse element (from the ExporterService schema)

Example

Request
GET <baseurl>/resources/export/-1
Response
 {
       "xml-fragment":
       {
           "@model-version": "1",
           "container":
           {
               "@id": "2",
               "@name": "easyAs",
               "@description": "",
               "@last-accessed": "2013-01-23T11:20:18.453Z",
               "@active": "true",
               "@entity-count": "0",
               "primary-ldap":
               {
                   "@id": "2",
                   "@guid": "EB54589D-D219-43AE-831B-354238AB288A",
                   "@ldap-alias": "easyAs",
                   "@ldap-search-string": "(cn=*)",
                   "@display-name-attributes": "cn"
               }
           }
       }
    }