RTMP/E
getAdmins(adaptorName:String) : Object
HTTP
http://www.example.com:1111/admin/getAdmins?auser=username&apswd=password&adaptorName=name
Returns an array of all administrators on Adobe Media Server. The returned data has two top‑level groups: server-level administrators and virtual host-level administrators. The server-level administrators group is a simple list of names. The virtual host administrators are subdivided by virtual host and each virtual host contains a list of administrator names.
Availability
Flash Media Server 2.0.
Parameters
adaptorName
A String indicating an alternate adaptor, other than _defaultRoot_, on which to find virtual host administrators. If not specified, _defaultRoot_ is used.
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, a code property of NetConnection.Call.Success, and a data property that is an array. The data object has the following properties:
Property |
Description |
---|---|
server_admins |
Array; an array of administrator names. |
admin |
String; name of an administrator. |
vhost_admins |
Array; an array of virtual host names. |
admin |
String; name of the virtual host for which the user is an administrator. |
HTTP
If the call succeeds, it returns something like the following:
<result> <level>status</level> <code>NetConnection.Call.Success</code> <timestamp>7/23/2007 9:05:00 AM</timestamp> <data> <server_admins> <admin>Admin</admin> <admin>John</admin> <admin>Mary</admin> </server_admins> <vhost_admins> <_defaultVHost_> <_0>Kent</_0> </__defaultVHost_> </vhost_admins> </data> </result>If the call fails, it returns something like the following:
<result> <level>error</level> <code>NetConnection.Connect.Rejected</code> <description>Administrator login failed for user Admin.</description> <timestamp>7/23/2007 9:08:25 AM</timestamp> </result>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).