Perform a replication directly on a Publishing Target without publishing.
Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax
public XHRServiceResponseGeneric<AdminReplicationResult> AdministrativeReplicate( string pubTargetId, bool clean )
Parameters
- pubTargetId
- Type: SystemString
Id of the Publishing Target - clean
- Type: SystemBoolean
Whether to perform a replication that will clean up files not no longer exists in the Publishing Folder
Return Value
Type: XHRServiceResponseGenericAdminReplicationResultObject containing instructions of the administrative replication
Examples
JavaScript
{ "code": 0, "error": null, "message": { "clean": false, "pubTargetId": "PublishingTargets\/1" } }
Remarks
If Publishing Target doesn't exist, returns error status
If Publishing Target's replication function is not enabled, returns error status
This opertaion will return a response right away, the actual replication will be performed in the background and may take some time to finish
See Also