User management query examples for the Wowza Streaming Engine REST API

Use cURL to query the Wowza Streaming Engine™ media server software REST API to identify and manage users of a Wowza Streaming Engine instance.

Notes:

Contents


Get a list of users
Create a user
Remove a user

Get a list of users


The following example shows how to get a list of users that have been created on a given Wowza Streaming Engine instance:

curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/users

Create a user


The following example shows how to create a user and include the group:

curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/users -d'
{
   "restURI": "http://localhost:8087/v2/servers/_defaultServer_/users/myuser",
   "userName": "myuser",
   "password":"mypassword",
   "groups": [
      "admin","advUser"
   ]
}'

Remove a user


The following example shows how to remove an existing user:

curl -X DELETE --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/users/myuser

Originally Published: 06-16-2015.
Updated: For Wowza Streaming Engine 4.3.0 on 10-06-2015.
 

If you're having problems or want to discuss this article, post in our forum.