Cisco Unity Connection API List Examples

From DocWiki

Revision as of 22:40, 21 February 2012 by Briward (Talk | contribs)
Jump to: navigation, search

Contents

Cisco Unity Connection API List Examples

Examples for /vmrest/version

Example 1

HTTP GET:

https://10.10.10.10:8443/vmrest/version

HTTP RESPONSE:

<VersionInformation>
    <name>vmrest</name>
    <version>8.6.2.0ES3</version>
</VersionInformation>


Examples for /vmrest/distributionlist

Example 1

HTTP GET:

https://10.10.10.10:8443/vmrest/distributionlists

HTTP RESPONSE:

<DistributionLists total="2">
  <DistributionList>
    <URI>/vmrest/distributionlists/92fa35cc-a72e-4f59-83e5-ccf6fce07f1e</URI>
    <ObjectId>92fa35cc-a72e-4f59-83e5-ccf6fce07f1e</ObjectId>
    <Alias>undeliverablemessages</Alias>
    <DisplayName>Undeliverable Messages</DisplayName>
    <LocationObjectId>3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationObjectId>
    <LocationURI>/vmrest/locations/connectionlocations/3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationURI>
    <PartitionObjectId>e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionObjectId>
    <PartitionURI>/vmrest/partitions/e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionURI>
    <DistributionListMembersURI>/vmrest/distributionlists/92fa35cc-a72e-4f59-83e5-ccf6fce07f1e/distributionlistmembers</DistributionListMembersURI>
    <AlternateNamesURI>/vmrest/alternatenames?query=(DistributionListObjectId%20is%2092fa35cc-a72e-4f59-83e5-ccf6fce07f1e)</AlternateNamesURI>
  </DistributionList>
  <DistributionList>
    <URI>/vmrest/distributionlists/24f444c9-34ce-4072-9270-672933c7bb3a</URI>
    <ObjectId>24f444c9-34ce-4072-9270-672933c7bb3a</ObjectId>
    <Alias>allvoicemailusers</Alias>
    <DisplayName>All Voice Mail Users</DisplayName>
    <LocationObjectId>3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationObjectId>
    <LocationURI>/vmrest/locations/connectionlocations/3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationURI>
    <DtmfAccessId>99991</DtmfAccessId>
    <PartitionObjectId>e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionObjectId>
    <PartitionURI>/vmrest/partitions/e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionURI>
    <DistributionListMembersURI>/vmrest/distributionlists/24f444c9-34ce-4072-9270-672933c7bb3a/distributionlistmembers</DistributionListMembersURI>
    <AlternateNamesURI>/vmrest/alternatenames?query=(DistributionListObjectId%20is%2024f444c9-34ce-4072-9270-672933c7bb3a)</AlternateNamesURI>
  </DistributionList>
 </DistributionLists>

Example 2

HTTP GET:

https://10.10.10.10:8443/vmrest/distributionlists?query=(alias startswith F)&sort=(alias desc)

HTTP RESPONSE:

<DistributionLists total="2">
  <DistributionList>
    <URI>/vmrest/distributionlists/de9cb6c5-873c-454b-8fd3-58b7aaf62dd0</URI>
    <ObjectId>de9cb6c5-873c-454b-8fd3-58b7aaf62dd0</ObjectId>
    <Alias>FSTDK02</Alias>
    <DisplayName>FSTDK02</DisplayName>
    <LocationObjectId>3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationObjectId>
    <LocationURI>/vmrest/locations/connectionlocations/3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationURI>
    <DtmfAccessId>4445</DtmfAccessId>
    <PartitionObjectId>e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionObjectId>
    <PartitionURI>/vmrest/partitions/e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionURI>
    <DistributionListMembersURI>/vmrest/distributionlists/de9cb6c5-873c-454b-8fd3-58b7aaf62dd0/distributionlistmembers</DistributionListMembersURI>
    <AlternateNamesURI>/vmrest/alternatenames?query=(DistributionListObjectId%20is%20de9cb6c5-873c-454b-8fd3-58b7aaf62dd0)</AlternateNamesURI>
  </DistributionList>
  <DistributionList>
    <URI>/vmrest/distributionlists/d3e0c786-0be4-4b72-a27b-c745d1504180</URI>
    <ObjectId>d3e0c786-0be4-4b72-a27b-c745d1504180</ObjectId>
    <Alias>FSTDK01</Alias>
    <DisplayName>FSTDK01</DisplayName>
    <LocationObjectId>3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationObjectId>
    <LocationURI>/vmrest/locations/connectionlocations/3b05f7ec-2398-4e43-b23c-03535ab9afc9</LocationURI>
    <DtmfAccessId>4444</DtmfAccessId>
    <PartitionObjectId>e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionObjectId>
    <PartitionURI>/vmrest/partitions/e886836c-f61b-4bc2-ba37-12d06b446abd</PartitionURI>
    <DistributionListMembersURI>/vmrest/distributionlists/d3e0c786-0be4-4b72-a27b-c745d1504180/distributionlistmembers</DistributionListMembersURI>
    <AlternateNamesURI>/vmrest/alternatenames?query=(DistributionListObjectId%20is%20d3e0c786-0be4-4b72-a27b-c745d1504180)</AlternateNamesURI>
  </DistributionList>
</DistributionLists>

Example 3

HTTP POST:

https://10.10.10.10:8443/vmrest/distributionlists

HTTP BODY:

<DistributionList>
  <Alias>FSTDK03</Alias> 
  <DisplayName>FSTDK03</DisplayName> 
  <DtmfAccessId>4446</DtmfAccessId>
</DistributionList>

HTTP RESPONSE:

/vmrest/distributionlists/5f038b49-5840-4974-b555-fadfaa327024

Rating: 0.0/5 (0 votes cast)

Personal tools