Cisco Cisco Prime Collaboration Assurance 11.5 Guide Du Développeur

Page de 32
 
 
© 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public  
Page 16 
 
Methods 
POST 
updateCustomerAssociation () 
API to update the customer association of device(s). 
API requires customer name and comma separated list of IP addresses as input. 
If the IP address is of a CUCM or VCS then the customer association for all the registered 
devices will also be updated. 
If the customer name is provided as blank, then the device is removed from that customer 
domain. 
request 
representations 
application/json    Example: 
This API takes JSON as input. JSON should contain "ipAddress" field 
specifying IP Address(s) of device(s). 
 IP Address can be specified in comma separated format if there are 
multiple devices. 
 
responses 
status: 
200 - OK 
representations 
application/json    Example: 
The output of this API is a JSON that will contain the overall result of the 
operation, values can be 
 SUCCESS - if the request on all the devices was successful. 
 FAILURE - if the operation on all the devices failed. 
  
 
https://<ipaddress>/emsam/nbi/device/deleteDevices 
Methods 
POST 
deleteDevices () 
API to delete multiple device. 
request 
representations 
application/json    Example: 
This API can be used to delete single or multiple devices. 
 A json with an array of device ipaddress should be provided as input.