RTMP/E

 removeVHostAlias(vhost:String, alias:String) : Object

HTTP

 http://www.example.com:1111/admin/removeVHostAlias?auser=username&apswd=password&vhost=name&alias=name

Removes an alias from a virtual host. Aliases are alternative names for virtual hosts that are used as targets by incoming Adobe Media Server connections. When you remove an alias, that name is no longer available for incoming connections.

Availability

Flash Media Server 2.0.

Parameters

vhost

A String indicating the virtual host from which to remove an alias.

alias

A String indicating the alias name to remove from the specified virtual host.

auser

A String indicating the user name of the administrator.

apswd

A String indicating the password of the administrator.

Returns

RTMP/E

If the call succeeds, the server sends a reply information object with a level property of status, and a code property of NetConnection.Call.Success.

HTTP

If the call succeeds, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <timestamp></timestamp>  </result>

If the call fails, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <description></description>   <timestamp></timestamp>  </result>

The XML elements contain the same information as the Object properties returned in an RTMP/E call.

Note: The timestamp response over HTTP is formatted differently on Windows (9/23/2007 6:16:40 PM) and Linux (Sun 23 Sep 2007 06:16:40 PM IST).

Example

 nc_admin = new NetConnection(); 
 nc_admin.connect("rtmp://localhost:1111/admin", "JLee", "x52z49ab") 
 admin_nc.call("removeVHostAlias",new Result(),"myvhost","myalias");

See also

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy