Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Subscribe on RMMP Request event

Subscribe on "/users/rmmp" to get events when a user has requested for RMMP privileges.

URL

/subscription

Method

POST

Data Params

  • resources = An identifier Required
  • <identifier> = The subscription resource URI (The URI here is: '/users/rmmp') Required
  • <identifier>-p = The priority associated with the subscription resource. Required

Success Response

CREATED(201)

see HTTP Status codes

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Event</title>
</head>
<body>
<div class="state">
<a href="subscription/7" rel="group" />
<a href="ws://localhost/poll/7" rel="self" />
<a href="subscription/7?action=show" rel="action" />
<ul>
<li class="user-rmmp-ev" title="rmmp">
<a href="/users/rmmp" rel="resource"/>
</li>
</ul>
</div>
</body>
</html>

Error Response

UNSUPPORTED_MEDIA(415), BAD_REQUEST(400)

See Robot controller return codes

Sample Call

only low priority subscription(-p=0) and medium priority subscription(-p=1) are allowed on this resource

curl --digest -u "Default User":robotics -d "resources=1&1=/users/rmmp&1-p=0" -X POST "http://localhost/subscription"

curl --digest -u "Default User":robotics -d "resources=1&1=/users/rmmp&1-p=1" -X POST "http://localhost/subscription"

Notes

  • Not supported in bootserver mode.