How to manage server users with the Wowza Streaming Engine REST API

Use 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 server users
Create a server user
Remove a server user

Get a list of server users


View a list of users for a Wowza Streaming Engine instance:

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

The command should return a response that lists each user and the groups to which each is assigned, like this:

{
  "serverName": "_defaultServer_",
  "users": [{
     "userName": "WowzaNinja",
     "groups": [
        "admin",
        "advUser"
     ]
  }]
}

Create a server user


Create a user (WowzaNewbie, in this example) who isn't assigned to any groups:

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'
{
   "userName": "WowzaNewbie",
   "password":"mypassword",
   "groups": [
      ""
   ]
}

Remove a server user


Delete a user:

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

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