"Hello World" LogoutAll

The following example logs out a user from all devices. This is used when logging out all users before performing system updates. Use of logoutAll API may lead to the generation of large number of database change notifications. This could have a momentary impact on system performance. The number of change notifications will be directly proportionate to the number of users logged in. It is recommended to use this API outside of peak business hours.

When creating the request body, it is recommended to first build in XML format and then encode the XML before sending to the CUCM server. The first part of the example shows the XML unencoded and the second part of the example shows the XML encoded.

Request


POST /emservice/EMServiceServlet
Content-Type: application/x-www-form-urlencoded

Unencoded

1
2
3
4
5
6
7
8
<request>
<appinfo>
<appid>appid</appid>
<appcertificate>apppasswd</appcertificate>
</appinfo>
<logoutall>
</logoutall>
</request>

Encoded

1
2
3
4
5
6
7
8
xml=%3Crequest%3E
%3CappInfo%3E
%3CappID%3Eappid%3C/appID%3E
%3CappCertificate%3Eapppasswd%3C/appCertificate%3E
%3C/appInfo%3E
%3ClogoutAll%3E
%3C/logoutAll%3E
%3C/request%3E

Success Response

1
2
3
<response>
<success/>
</response>

UserQuery Request

View a sample UserQuery request