Click or drag to resize

PublishingSystemManagerServicesAddReplicationTarget Method


Adds a new replication target to specified publishing target

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<string> AddReplicationTarget(
	string pubTargetId,
	ReplicationTargetInput repTargetInfo
)

Parameters

pubTargetId
Type: SystemString
Id of the publishing target to add replication target on
repTargetInfo
Type: ReplicationTargetInput

Information of the replication target to add

Examples

Sample JSON input

JavaScript
{
  "type": "FileReplicationTarget",
  "data": "{\"Disabled\":false,\"ID\":\"\",\"Name\":\"Staging Replication Target\",\"Description\":\"Replication Target for Staging Site\",\"TargetLocation\":\"f:\\\\igxsites\\\\mysite\",\"CompareContent\":false,\"UseCommands\":false,\"PreReplicationCommand\":\"\",\"PreReplicationCommandTimeout\":10,\"PostReplicationCommand\":\"\",\"PostReplicationCommandTimeout\":10,\"UseImpersonation\":false,\"ImpersonateUserName\":\"\",\"ImpersonateUserDomain\":\"\",\"ImpersonatePassword\":\"\"}",
  "exemptLocations": [],
  "additionalLocations": [],
  "cleanupExemptLocations": []
}

Return Value

Type: XHRServiceResponseGenericString

The unique id of created replication target

See Also