|
int ServerHierarchy::RegisterServer |
( |
wstring |
wstrDisplName, |
|
|
int |
nGroupId, |
|
|
binary |
pCertificate, |
|
|
wstring |
wstrNetAddress, |
|
|
params |
pAdditionalInfo |
|
) |
| |
Register the new secondary Administration Server for the specified group.
The secondary Administration Server registration requires performing actions on both secondary and primary Administration Servers. This method registers the secondary Administration Server and should be called on the primary Administration Server. Some method parameters are optional, depending on whether the secondary Administration Server is passive or active.
See Secondary Administration Server registration for details.
- Parameters:
-
wstrDisplName | secondary Administration Server display name. |
nGroupId | administration group id where to locate the secondary Administration Server. |
pCertificate | secondary Administration Server certificate, same as used to connect to the secondary Administration Server by Administration Console |
wstrNetAddress | secondary Administration Server location in format 'http://server_addr:server_port', e.g. 'http://secondaryserveraddr.local:13000'. Value required only for the passive secondary Administration Server registration, otherwise it should be emtpy. |
pAdditionalInfo | Additional information for the secondary Administration Server, optional. Currently only one attribute is supported:
|
- Returns:
- secondary Administration Server ID.
- See also:
- Sample. Creating and destroying a "primary/secondary" relation.
|