addAdmin()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
addAdmin(admin_name, password [,scope])
Parameters
A string that contains the user name of the administrator being added.
admin_name
Password of that administrator. The password is encoded before it is written to
password
the Server.xml configuration file.
Optional; string that specifies whether the administrator is a server administrator or a
scope
virtual host administrator, and for which virtual host. To add a server administrator, specify
.
server
To add a virtual host administrator to the virtual host to which you're connected, omit this
parameter. To add a virtual host administrator to a different virtual host, specify the virtual
host as
adaptor_name/virtual_host_name
Returns
If the call succeeds, the server sends a reply information object with a
and a
property of
status
code
configuration file is updated with the new administrator.
If the call fails, the server sends a reply information object with a
and a
property of
code
available. Some objects might also have a
describing the cause of the failure.
If the specified administrator already exists in the system, this command fails.
Description
Adds an administrator to the system. You can add a server administrator or a virtual host
administrator, depending on the parameters you specify.
You must be a server administrator to add an administrator to the system.
NetConnection.Call.Success
NetConnection.Admin.CommandFailed
description
.
. The Server.xml
level
or a more specific value, if
property that contains a string
property of
level
property of
error
addAdmin()
13
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?