PublishingMonitorServicesGetRepLogsForRepTarget Method

Ingeniux CMS Web Services API

Retrieves the Replication Logs for specific Replication Target under a Publishing Target

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
Syntax

public XHRServiceResponseGeneric<ReplicationLogSummaryReturn> GetRepLogsForRepTarget(
	string pubTargetId,
	string repTargetId,
	int start,
	int count
)

Parameters

pubTargetId
Type: SystemString
Id of Publishing Target
repTargetId
Type: SystemString
Id of Replication Target, must be under the given Publishing Target
start
Type: SystemInt32
Starting index
count
Type: SystemInt32
Number of items to return

Return Value

Type: XHRServiceResponseGenericReplicationLogSummaryReturn

Collection of Replication Log entries, contains basic information of each log

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": [{
        "FileName": "replicationLog_PublishingTargets_1_bc24ec5353c9417590dbcc27ee56f005_2014-01-28-21-08-52.xml",
        "ReplicationTargetID": "20",
        "StartTime": "2014-01-28-21-08"
    }, {
        "FileName": "replicationLog_PublishingTargets_1_bc24ec5353c9417590dbcc27ee56f005_2014-01-28-21-07-36.xml",
        "ReplicationTargetID": "20",
        "StartTime": "2014-01-28-21-07"
    }]
}
Remarks

Event if Publishing Target or Replication Target no longer exist, there are might still be logs kept around.

If Replication Target is not under Publishing Target, we will have empty collection returned.

See Also

Reference