Wowza Community

add custom property ModuleSecureURLParams api wowza ?

add custom property ModuleSecureURLParams api wowza

Hi,

Are you referring to the custom property secureurlparams.publish for the SecureURLParams module? If so, you can add any custom property to an application via REST API by sending a PUT request to the endpoint /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/adv.

Michelle

Hi @Michelle Brinker

I have been trying to add custom properties, with no visible results.

The cUrl command below returns a success, but when looking at the Application XML, nothing has been added.

First, I tried this:

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/aaa2 -d’{“advancedSettings”: [{“enabled”: true,“canRemove”: true,“name”: “pushPublishMapPath”,“value”: “${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “loopUntilLiveSourceStreams”,“value”: “podiapull”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “loopUntilLiveOutputStreams”,“value”: “podiastream”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherSmilFile”,“value”: “lulstream.smil”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherPassMetaData”,“value”: “true”,“defaultValue”: “false”,“type”: “Boolean”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherSwitchLog”,“value”: “true”,“defaultValue”: “false”,“type”: “Boolean”,“sectionName”: “Application”,“section”: “/Root/Application/”,“documented”: true}]}’

Then, I tried this:

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/aaa2 -d’{“advancedSettings”: [{“enabled”: true,“canRemove”: true,“name”: “pushPublishMapPath”,“value”: “${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “loopUntilLiveSourceStreams”,“value”: “podiapull”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “loopUntilLiveOutputStreams”,“value”: “podiastream”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherSmilFile”,“value”: “lulstream.smil”,“defaultValue”: “false”,“type”: “String”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherPassMetaData”,“value”: “true”,“defaultValue”: “false”,“type”: “Boolean”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true},{“enabled”: true,“canRemove”: true,“name”: “streamPublisherSwitchLog”,“value”: “true”,“defaultValue”: “false”,“type”: “Boolean”,“sectionName”: “Property”,“section”: “/Root/Application/Properties/”,“documented”: true}]}’

Both show {“success”:true,“message”:“Saved”,“data”:null} but nothing is in the area in the Application.xml file.

Any advice please?