Wowza Community

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

[HTML]

httpOriginMode

on

String

cupertinoCacheControlPlaylist

max-age=1

String

cupertinoCacheControlMediaChunk

max-age=3600

String

[/HTML]

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.

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

Hello,

Thanks.

I test to update with POST and it works great !

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

Regards,

Salvadore