Results 1 to 4 of 4

Thread: REST Api createApplication with HTTPStreamer properties

  1. #1

    Default REST Api createApplication with HTTPStreamer properties

    Hello,

    When I create a new application with Rest API, I want to setup HTTPStreamer properties like these properties in the Application.xml of my application
    <HTTPStreamer>
    <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
    <Properties>
    	<Property>
    		<Name>httpOriginMode</Name>
    		<Value>on</Value>
    		<Type>String</Type>
    	</Property>
    	<Property>
    		<Name>cupertinoCacheControlPlaylist</Name>
    		<Value>max-age=1</Value>
    		<Type>String</Type>
    	</Property>
    	<Property>
    		<Name>cupertinoCacheControlMediaChunk</Name>
    		<Value>max-age=3600</Value>
    		<Type>String</Type>
    	</Property>
    </Properties>
    </HTTPStreamer>
    I try a GET for retrieve informations about an existing application (which already has these properties) and there is no informations about this in the responses of the call.

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    Hello

    You can get this information from the following endpoint:

    GET /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/adv

    Example cURL request:
    curl -X GET --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/adv
    The response will contain your properties as defined in your Application.xml:

    ...{"enabled":true,"canRemove":true,"name":"httpOriginMode","value":"on","defaultValue":"","type":"String","sectionName":"HTTPCacheOrigin","section":"/Root/Application/HTTPStreamer","documented":true},...
    Thanks,
    Matt

  3. #3

    Thumbs up

    Hello,

    Thanks.

    I test to update with POST and it works great !

  4. #4

    Default

    Thank you for the update and glad to hear you got this working.

    Regards,

    Salvadore

Similar Threads

  1. Can I edit application properties using the REST API?
    By wtoolbox in forum Wowza Streaming Engine REST API
    Replies: 3
    Last Post: 09-22-2015, 01:37 AM
  2. HTTPStreamer error
    By steveitl in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 12-17-2012, 11:58 AM
  3. createApplication and writeAppConfig methods
    By reardencode in forum General Forum
    Replies: 6
    Last Post: 12-21-2011, 07:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •