• User management query examples for the Wowza Streaming Engine REST API

    Wowza Streaming Engine™ media server software has a REST Application Programming Interface (API) that can be used to configure, manage, and monitor the media server through HTTP requests. This article demonstrates ways identify and manage users of a Wowza Streaming Engine instance using some basic cURL examples to query the Wowza Streaming Engine REST service. For a complete breakdown and documentation of the API, see How to access documentation for the Wowza Streaming Engine REST API.

    Note: Wowza Streaming Engine 4.3.0 or later is required. You must also have working knowledge of cURL and REST-related services.

    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.