Replication.saveServer (Method)

Creates or saves information about a target server.

Returns:

ServerID (integer)

Arguments:

Name Type Required Description
serverID ServerID_0 Required A replication target server's ID. Setting this to 0 tells CommonSpot to create a new server record.
serverName PlainText_NonNull_128 Required The server's name.
serverAddress PlainText_128 Required The target replication server's IP address or alias.
serverPort ServerPort Optional. Defaults to '80'. The default port is 80. Set a value here if CommonSpot should use a different port for the target replication server.

Context:

License Requirements Replication
Permission Requirements site:ManageReplication
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the server level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
36003 Another record with the specified server name already exists.
36012 The license for this server only lets you create $1 replication target servers.

Notes:

None