Stream Target gets duplicated on all applications when created using Rest API

Wowza Streaming Engine Version 4.7.4 (build 21380)

21380

Trying to add a stream target to a specific application using the Rest API, I have managed to create the target but for some reason that new target gets duplicated on all existing applications.

I am using the following post call:

http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/app_name/pushpublish/mapentries/target_name

json:

{

"sourceStreamName": “myStream”,

"profile": “rtmp”,

"host": “rtmp-api.facebook.com”,

"streamName": “xxxxxxxxxxxxxxxxxxxxxxxxxx”,

"port": 80,

"application": “app_name”,

"entryName" : “target_name”,

"enabled":“false”,

"extraOptions": {

"destinationName": "rtmp"

}

}

It sounds like you have your applications set to use the default PushPublishMap.txt file located in the conf/ directory. You can configure each application to use application-level map files by configuring the following property on the application:

Path: /Root/Application
Name: pushPublishMapPath
Type: String
Value: ${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt

Michelle

Can you tell me ware I can do this because I am having this problem

Would you mind clarifying @Michelle B for the location? Is it in the config/ directory?

@Michelle B Every time I set the property in the API request when I create the application, I receive 500 error code.

my API request is:

http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/app_name
<?xml version="1.0" encoding="UTF-8" ?>
<Application serverName="_defaultServer_">
    	<AppType>Live</AppType>
    	<Description>Live Streaming application created by wowza.</Description>
    	<Properties>
    		<Property>
    			<Path>/Root/Application</Path>
    			<Name>pushPublishMapPath</Name>
    			<Type>String</Type>
    			<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt</Value>
    		</Property>
	</Properties>
</Application>

Could you please help.