Click or drag to resize

PublishingSystemManagerServicesAdministrativeReplicate Method


Performs a replication directly on a Publishing Target without publishing.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
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: XHRServiceResponseGenericAdminReplicationResult

Object containing instructions of the administrative replication

Examples
Sample JSON return
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