Managed Office Communications Server::GetSipDomainsByOrganization
This procedure retrieves an organization's SIP domains from the Office Communications Server.
Arguments
Input argument | Required | Type | Description |
---|---|---|---|
<organization> |
Yes |
xs:string |
The Lightweight Directory Access Protocol (LDAP) path of the organization |
<preferredDomainController> |
Yes |
xs:string |
The domain controller to use for Active Directory actions |
Output argument | Type | Description |
---|---|---|
<sipDomains> |
xs:string |
A collection of SIP Domains. |
<sipDomains/ sipDomain > |
A SIP Domain container. |
|
<sipDomains/sipDomain/address> |
xs:string |
The fully qualified domain name (FQDN) of a domain handled by the Office Communications Server. The value must be the FQDN. An IP address is not allowed. |
<sipDomains/sipDomain/owner> |
xs:string |
The owner of the SIP domain.This could be:
|
Remarks
Security
The caller must be at least a member of role: Customer Administrator
Permission Check
This procedure will perform a test for Customer Administrator (UserCreators).
Preconditions
The organization exists.
Business Rules
This should return the SIP domains fo both the organization and its parent.
Post-conditions
A collection of SIP domains is returned.
If there are no domains, an empty collection is returned.
Sequence Narrative
Actor submits GetSipDomainsByOrganization request to the Managed Office Communications Server namespace.
The Managed Office Communications Server namespace retrieves a list of service pointers of the organization using the Managed Helpers::QueryServicePointers_ procedure.
TheManaged Office Communications Server namespace calls GetOwningOrg_ to retrieve its parent.
The Managed Office Communications Server namespace retrieves a list of service pointers of the organization's parent using the Managed Helpers::QueryServicePointers_ procedure.
The list of service pointers is formatted and returned.
Sample Code
Example XML Request
<request>
<data>
<!--The preferred domain controller for Active Directory operations.-->
<preferredDomainController>AD01.Fabrikam.com</preferredDomainController>
<!--LDAP path of the organization.-->
<organization>LDAP://OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</organization>
</data>
<procedure>
<execute namespace="Managed Office Communications Server" procedure="GetSipDomainsByOrganization" impersonate="1">
<before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" />
<before source="data" sourcePath="organization" destination="executeData" mode="move" />
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Example XML Response
<response>
<data>
<!--A collection of SIP Domains.-->
<sipDomains>
<!--A SIP Domain container.-->
<sipDomain>
<!--The fully qualified domain name (FQDN) of a domain handled by the Office Communications Server. The value must be the FQDN. An IP address is not allowed.-->
<address>sip.AlpineSkiHouse.com</address>
<!--The actual owner of the domain. It could be 'Tenant' if the organization has direct ownership of the domain, or 'Parent' if the parent of the organization owns the domain. If neither is true, an error will be thrown.-->
<owner>Tenant</owner>
</sipDomain>
</sipDomains>
</data>
</response>
Applies To
Managed Office Communications Server Namespace API for:
- Hosted Messaging and Collaboration version 4.5