RTMP/E

 getAdminContext([adminName:String][, adaptorName:String][, vhostName:String]) : Object

HTTP

 http://www.example.com:1111/admin/getAdminContext?auser=username&apswd=password[&adminName=name][&adaptorName=name] [&vhostName=name]

Gets the administrative context for an administrator, including information about the specified user’s administrative permissions, the name of the adaptor and virtual host to which the user is connected, and whether the user is currently connected to Adobe Media Server.

Availability

Flash Communication Server 1.0.

Parameters

adminName

A String indicating the name of an administrator.

adaptorName

A String indicating an alternate adaptor, other than _defaultRoot_, on which to find administrators. If not specified, _defaultRoot_ is used.

vhostName

A String indicating an alternate virtual host, other than _defaultVHost_, on which to find virtual host administrators. If not specified, server level admin 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 object. The data object has the following properties:

Property

Description

admin_type

String; the type of administrator, either server or virtual host.

adaptor

String; name of the adaptor for which the user is an administrator.

vhost

String; name of the virtual host for which the user is an administrator.

connected

String; this property is deprecated and always returns true.

HTTP

If the call succeeds, it returns something like the following:

 <result>   <level>status</level>   <code>NetConnection.Call.Success</code>   <timestamp>7/23/2007 8:57:26 AM</timestamp>   <data>   <admin_type>server</admin_type>   <adaptor>_defaultRoot_</adaptor>   <vhost>_defaultVHost_</vhost>   <connected>true</connected>   </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:00:44 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).

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