REST API - saveContainer
The table summarizes the REST API - saveContainer.
Request
| Format | POST <baseurl>/directory/container |
| Body | xmlContainer element (optional): the component of the saveContainerelement that defines an LDAP container and any LDAP source entries that it contains. The query must conform to the RFC 2254 LDAP Search Filter standard. |
Response
| JSON | Returns a JSON representation of the content of the saveContainerResponseelement. |
| XML | Returns the content of the saveContainerResponseelement (from the DirectoryService schema). |
Example
| Request | POST <baseurl>/directory/container/ |
| Request body | <xml-fragment name="ldap 1" description="Main LDAP Container">
<primary-ldap ldap-alias="deLdap2" ldap-query="(objectclass=person)" base-dn="ou=employees" resource-name-attributes="displayname">
<attribute-mapping ldap-attribute="mail" resource-attr-guid="_sjWcEENiEeKAZfVOYVYcoA"/>
</primary-ldap>
<secondary-ldap ldap-alias="deLdap3" ldap-query="(objectclass=person)" base-dn="ou=GlobalSales">
<attribute-mapping ldap-attribute="destinationindicator" resource-attr-guid="_tGJAEENiEeKAZfVOYVYcoA"/>
<primary-link primary-attribute="uid" secondary-attribute="displayname"/>
</secondary-ldap>
</xml-fragment>
|
| Response | {
"xml-fragment":
{
"@container-id": "1"
}
}
|