cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
817
Views
0
Helpful
4
Replies

userlicenses GET returning 404 Not Found

levinsky
Level 1
Level 1

Hi guys,

has anyone tried using the bulk licensing REST API call to get a list of all users and what licenses they are consuming? I am trying against a UCXN (10.0.1.10000-24) using the REST call https://<ip address>/vmrest/userlicenses. The doco for this call is at Cisco Unity Connection Provisioning Interface (CUPI) API -- Bulk User License - DocWiki

Anyone tried using this REST call and had any success?

Thanks,

Ken.

4 Replies 4

lindborg
Cisco Employee
Cisco Employee

that hasn't been ported back to 10.0 yet - it's in 10.5(1) and in an ES for 9.1 but doesn't exist yet in an available 10.0 line...

as ever be sure to check the vmrest/schema on what you're testing against... it's authoritative for what's in the version you're attached to. 

Hi,

thanks for the quick response. So I checked the schema and maybe I was reading it wrong but it looks like it's in the schema for version 10.0(1).

https://<ip address>/vmrest/schema/UserLicense

<xs:element name="UserLicenses">

     <xs:complexType>

          <xs:sequence>

               <xs:element name="UserLicense" type="UserLicense" maxOccurs="unbounded"/>    

          </xs:sequence>

          <xs:attribute name="total" type="xs:integer"/>

     </xs:complexType>

</xs:element>

as you say though it obviously hasn't been implemented.

Thanks,

lindborg
Cisco Employee
Cisco Employee

gainst 10.5.1 the schema for UserLicense looks like this:

<xs:schema elementFormDefault="qualified">

<xs:complexType name="UserLicense">

  <xs:sequence minOccurs="0">

   <xs:element name="URI" type="xs:anyURI" minOccurs="0"/>

   <xs:element name="ObjectId" type="xs:string" minOccurs="0">

    <xs:annotation>

     <xs:documentation> The primary key for this table. A globally unique, system-generated identifier for a User object.</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="Alias" type="xs:string" minOccurs="0">

    <xs:annotation>

     <xs:documentation> The unique text name for either a user, distribution list, or personal group.</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="IsTemplate" type="xs:boolean" minOccurs="0">

    <xs:annotation>

     <xs:documentation> A flag indicating whether this instance of a User object is a "template" for creating new users. </xs:documentation>

     <xs:documentation>0=False, 1=True</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="CosObjectId" type="xs:string" minOccurs="0">

    <xs:annotation>

     <xs:documentation> The unique identifier of the COS (Class of Service) object to which this user account is associated.</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="CosURI" type="xs:anyURI" minOccurs="0"/>

   <xs:element name="Undeletable" type="xs:boolean" minOccurs="0">

    <xs:annotation>

     <xs:documentation> A flag indicating whether this subscriber can be deleted via an administrative application such as Cisco Unity Connection Administration. It is used to prevent deletion of factory defaults.</xs:documentation>

     <xs:documentation>0=False, 1=True</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="DtmfAccessId" type="xs:string" minOccurs="0">

    <xs:annotation>

     <xs:documentation>The DTMF access id (i.e., extension) of the subscriber. The dialable number.</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="PartitionObjectId" type="xs:string" minOccurs="0">

    <xs:annotation>

     <xs:documentation> The unique identifier of the Partition to which the DtmfAccessId is assigned.</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="PartitionURI" type="xs:anyURI" minOccurs="0"/>

   <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>

   <xs:element name="Messaging" type="xs:string">

    <xs:annotation>

     <xs:documentation>It's value can be Basic, Enhanced or Enhanced Plus</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="SpeechView" type="xs:string">

    <xs:annotation>

     <xs:documentation>It's value can be Speech View or Speech View Pro</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="TenantId" type="xs:string">

    <xs:annotation>

     <xs:documentation>Contains name of the tenant to which the user belongs</xs:documentation>

    </xs:annotation>

   </xs:element>

   <xs:element name="NullFields">

    <xs:simpleType>

     <xs:list itemType="xs:string"/>

    </xs:simpleType>

   </xs:element>

  </xs:sequence>

</xs:complexType>

<xs:element name="UserLicense" type="UserLicense"/>

<xs:element name="UserLicenses">

  <xs:complexType>

   <xs:sequence>

    <xs:element name="UserLicense" type="UserLicense" maxOccurs="unbounded"/>

   </xs:sequence>

   <xs:attribute name="total" type="xs:integer"/>

  </xs:complexType>

</xs:element>

</xs:schema>

<xs:schema elementFormDefault="qualified">
<xs:complexType name="UserLicense">
  <xs:sequence minOccurs="0">
   <xs:element name="URI" type="xs:anyURI" minOccurs="0"/>
   <xs:element name="ObjectId" type="xs:string" minOccurs="0">
    <xs:annotation>
     <xs:documentation> The primary key for this table. A globally unique, system-generated identifier for a User object.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="Alias" type="xs:string" minOccurs="0">
    <xs:annotation>
     <xs:documentation> The unique text name for either a user, distribution list, or personal group.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="IsTemplate" type="xs:boolean" minOccurs="0">
    <xs:annotation>
     <xs:documentation> A flag indicating whether this instance of a User object is a "template" for creating new users. </xs:documentation>
     <xs:documentation>0=False, 1=True</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="CosObjectId" type="xs:string" minOccurs="0">
    <xs:annotation>
     <xs:documentation> The unique identifier of the COS (Class of Service) object to which this user account is associated.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="CosURI" type="xs:anyURI" minOccurs="0"/>
   <xs:element name="Undeletable" type="xs:boolean" minOccurs="0">
    <xs:annotation>
     <xs:documentation> A flag indicating whether this subscriber can be deleted via an administrative application such as Cisco Unity Connection Administration. It is used to prevent deletion of factory defaults.</xs:documentation>
     <xs:documentation>0=False, 1=True</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="DtmfAccessId" type="xs:string" minOccurs="0">
    <xs:annotation>
     <xs:documentation>The DTMF access id (i.e., extension) of the subscriber. The dialable number.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PartitionObjectId" type="xs:string" minOccurs="0">
    <xs:annotation>
     <xs:documentation> The unique identifier of the Partition to which the DtmfAccessId is assigned.</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="PartitionURI" type="xs:anyURI" minOccurs="0"/>
   <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
   <xs:element name="Messaging" type="xs:string">
    <xs:annotation>
     <xs:documentation>It's value can be Basic, Enhanced or Enhanced Plus</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="SpeechView" type="xs:string">
    <xs:annotation>
     <xs:documentation>It's value can be Speech View or Speech View Pro</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="TenantId" type="xs:string">
    <xs:annotation>
     <xs:documentation>Contains name of the tenant to which the user belongs</xs:documentation>
    </xs:annotation>
   </xs:element>
   <xs:element name="NullFields">
    <xs:simpleType>
     <xs:list itemType="xs:string"/>
    </xs:simpleType>
   </xs:element>
  </xs:sequence>
</xs:complexType>
<xs:element name="UserLicense" type="UserLicense"/>
<xs:element name="UserLicenses">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="UserLicense" type="UserLicense" maxOccurs="unbounded"/>
   </xs:sequence>
   <xs:attribute name="total" type="xs:integer"/>
  </xs:complexType>
</xs:element>
</xs:schema>

Hi,

ok that has a bit more then the 10.0 Schema:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

  <xs:complexType name="UserLicense">

  <xs:sequence minOccurs="0">

  <xs:element name="URI" type="xs:anyURI" minOccurs="0" />

  <xs:element name="Alias" type="xs:string" minOccurs="0">

  <xs:annotation>

  <xs:documentation> The unique text name for either a user, distribution list, or personal group.</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="IsTemplate" type="xs:boolean" minOccurs="0">

  <xs:annotation>

  <xs:documentation> A flag indicating whether this instance of a User object is a &quot;template&quot; for creating new users. </xs:documentation>

  <xs:documentation>0=False, 1=True</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="CosObjectId" type="xs:string" minOccurs="0">

  <xs:annotation>

  <xs:documentation> The unique identifier of the COS (Class of Service) object to which this user account is associated.</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="CosURI" type="xs:anyURI" minOccurs="0" />

  <xs:element name="Undeletable" type="xs:boolean" minOccurs="0">

  <xs:annotation>

  <xs:documentation> A flag indicating whether this subscriber can be deleted via an administrative application such as Cisco Unity Connection Administration. It is used to prevent deletion of factory defaults.</xs:documentation>

  <xs:documentation>0=False, 1=True</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="DtmfAccessId" type="xs:string" minOccurs="0">

  <xs:annotation>

  <xs:documentation>The DTMF access id (i.e., extension) of the subscriber. The dialable number.</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="PartitionObjectId" type="xs:string" minOccurs="0">

  <xs:annotation>

  <xs:documentation> The unique identifier of the Partition to which the DtmfAccessId is assigned.</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="PartitionURI" type="xs:anyURI" minOccurs="0" />

  <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other" processContents="lax" />

  <xs:element name="Messaging" type="xs:string">

  <xs:annotation>

  <xs:documentation>It's value can be Basic, Enhanced or Enhanced Plus</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="SpeechView" type="xs:string">

  <xs:annotation>

  <xs:documentation>It's value can be Speech View or Speech View Pro</xs:documentation>

  </xs:annotation>

  </xs:element>

  <xs:element name="NullFields">

  <xs:simpleType> 

  <xs:list itemType="xs:string"/>

  </xs:simpleType>

  </xs:element>

  </xs:sequence>

  </xs:complexType>

  <xs:element name="UserLicense" type="UserLicense"/>

  <xs:element name="UserLicenses">

  <xs:complexType>

  <xs:sequence>

  <xs:element name="UserLicense" type="UserLicense" maxOccurs="unbounded"/>

  </xs:sequence>

  <xs:attribute name="total" type="xs:integer"/>

  </xs:complexType>

  </xs:element>

</xs:schema>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: