on 01-24-2014 05:57 PM
Jeff Lindborg:8.5 is a little early - wouldn't suprise me if several items were not implemented fully back there - for tools using REST (either CUPI, CUPI for users or CUMI) I normally set the minimum version for Connection at 8.6. The Phone system (port groups, media switch, codecs etc...) are all fully editable, create/delete etc... in 10.0 - many of the system level objects were read only in earlier versions - 10.0 enables full functionality for nearly the entire object model...
Hi Jeff,Jeff Lindborg:8.5 is a little early - wouldn't suprise me if several items were not implemented fully back there - for tools using REST (either CUPI, CUPI for users or CUMI) I normally set the minimum version for Connection at 8.6. The Phone system (port groups, media switch, codecs etc...) are all fully editable, create/delete etc... in 10.0 - many of the system level objects were read only in earlier versions - 10.0 enables full functionality for nearly the entire object model...
Dear Jeff,Jeff Lindborg:Sure you can create port groups – the other insterfaces allowing for creation and editing would be meaningless if you can’t create a port group or a port. I just poped up the .NET SDK for CUPI and wrote this code:
ConnectionServerRest connectionServer = new ConnectionServerRest ("lindborgload7.cisco.com", "CCMAdministrator", "ecsbulab");
PortGroup oGroup;
List<PhoneSystem> oPhones;
PhoneSystem.GetPhoneSystems(connectionServer, out oPhones);
PortGroup.AddPortGroup(connectionServer, "jeffs port group", oPhones[0].ObjectId, "10.20.30.40", TelephonyIntegrationMethodEnum.SCCP, "prefix-VI",out oGroup);
And it created a port group (SCCP) no problem – executed with Fiddler open the port group creation call in HTTP looks like this:
POST https://lindborgload7.cisco.com:8443/vmrest/portgroups
Body:
<PortGroup>
<DisplayName>jeffs port group</DisplayName>
<MediaPortGroupTemplateObjectId>90dd306f-b8af-46b6-8289-f13437cc1e5e</MediaPortGroupTemplateObjectId>
<MediaSwitchObjectId>c133af88-d120-4acc-a53c-01b5864b0318</MediaSwitchObjectId>
<HostOrIPAddress>10.20.30.40</HostOrIPAddress>
<TelephonyIntegrationMethodEnum>1</TelephonyIntegrationMethodEnum>
<SkinnyDevicePrefix>prefix-VI</SkinnyDevicePrefix>
</PortGroup>
201 response:
/vmrest/portgroups/185775df-39eb-460b-a094-663e083adf6d
I’m working with build 298 which is a number of builds old now – I’m quite sure this worked earlier than that since it’s part of my integration tests in the SDK referenced above.
Thanks Jeff,I resolved.it,becuase my request body not using the corrected order of the tag info ,like "displayName","MediaPortGroupTemplateObjectId","TelephonyIntegrationMethodEnum" and so on .Jeff Lindborg:Sure you can create port groups – the other insterfaces allowing for creation and editing would be meaningless if you can’t create a port group or a port. I just poped up the .NET SDK for CUPI and wrote this code:
ConnectionServerRest connectionServer = new ConnectionServerRest ("lindborgload7.cisco.com", "CCMAdministrator", "ecsbulab");
PortGroup oGroup;
List<PhoneSystem> oPhones;
PhoneSystem.GetPhoneSystems(connectionServer, out oPhones);
PortGroup.AddPortGroup(connectionServer, "jeffs port group", oPhones[0].ObjectId, "10.20.30.40", TelephonyIntegrationMethodEnum.SCCP, "prefix-VI",out oGroup);
And it created a port group (SCCP) no problem – executed with Fiddler open the port group creation call in HTTP looks like this:
POST https://lindborgload7.cisco.com:8443/vmrest/portgroups
Body:
<PortGroup>
<DisplayName>jeffs port group</DisplayName>
<MediaPortGroupTemplateObjectId>90dd306f-b8af-46b6-8289-f13437cc1e5e</MediaPortGroupTemplateObjectId>
<MediaSwitchObjectId>c133af88-d120-4acc-a53c-01b5864b0318</MediaSwitchObjectId>
<HostOrIPAddress>10.20.30.40</HostOrIPAddress>
<TelephonyIntegrationMethodEnum>1</TelephonyIntegrationMethodEnum>
<SkinnyDevicePrefix>prefix-VI</SkinnyDevicePrefix>
</PortGroup>
201 response:
/vmrest/portgroups/185775df-39eb-460b-a094-663e083adf6d
I’m working with build 298 which is a number of builds old now – I’m quite sure this worked earlier than that since it’s part of my integration tests in the SDK referenced above.
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: