IDRARestServerContactCreate Method |
UriTemplate: /dra/domains/{domainFqdn}/contacts/post
Namespace: NetIQ.DRA.RestServiceLibrary
[OperationContractAttribute] [WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/dra/domains/{domainFqdn}/contacts/post")] Stream ContactCreate( string domainFqdn, Contact contact, ConnectionParameters connectionParameters )
This will create a contact in the External OU of MyDomain.corp and add that contact to the Domain Users group.
{ "contact": { "containerOnePointPath": "OnePoint://OU=External,DC=MyDomain,DC=corp", "name": "Juanita Gomez", "firstName": "Juanita", "lastName": "Gomez", "memberOf": [{ "distinguishedName": "CN=Domain Users,CN=Users,DC=MyDomain,DC=corp" }] } }
{ "contact": { "class": "Contact", "distinguishedName": "CN=Juanita Gomez,OU=External,DC=MyDomain,DC=corp", "objectClass": "Contact" }, "draServerAndPort": "draServer01.MyDomain.corp:11192", "errors": [] }
This will create a contact with an SMTP email address using Exchange 2010 management tools.
{ "contact": { "containerOnePointPath": "OnePoint://OU=External,DC=MyDomain,DC=corp", "mailNickname": "Patrick_Collins", "firstName": "Patrick", "lastName": "Collins", "createEmail": true, "exchangeTool": 4, "legacyExchangeDn": "CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Cris2010 First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=MyDomain,DC=corp", "emailAddress": "SMTP:patrick.collins@mycorp.com" } }
{ "contact": { "class": "Contact", "distinguishedName": "CN=Patrick Collins,OU=External,DC=MyDomain,DC=corp", "objectClass": "Contact" }, "draServerAndPort": "draServer01.MyDomain.corp:11192", "errors": [] }