PublishingSystemManagerServicesGetPubTarget Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<PublishingTargetEditorData> GetPubTarget( PublishingSystemItemGetParam data )
Object containing unique Id of the Publishing Target
{ "data": { "itemId": "PublishingTargets/1" } }
Object containing the information of Publishing Target, the information of its replication system, and collection of User Groups
{ "code": 0, "error": null, "message": { "accessibleGroups": [{ "name": "Administrators", "groupId": "UserGroup\/1", "usersCount": 2 }, { "name": "Authors", "groupId": "UserGroups\/1", "usersCount": 1 }], "info": { "name": "Live", "id": "PublishingTargets\/1", "rootPage": "x2", "rootPageName": "Site", "site": "", "transformOnPublish": false, "userAgent": "", "analytics": { "analyticsEnabled": false, "provider": "Ingeniux.Analytics.Google.AnalyticsDataProvider, Ingeniux.Analytics" }, "autoRedirectCanonicalURL": true, "baseUrl": "", "enableDynamicPublishing": true, "externalPreviewURL": "DssPreview\/IGXDynamicPreview", "forceLowerCaseURL": false, "globalContentRoot": "", "homePageId": "x5", "iceEnabled": true, "iceFieldMarkupUpdateURL": "DssPreview\/IGXDTICEUpdate", "includeFoldersInURL": false, "normalizeUrlSeparators": false, "page404Id": "", "pubFolder": "Live", "structuredUrlEnabled": true, "urlExtension": "xml", "urlSeparator": "-", "useExternalPreviewURL": true }, "replication": { "doReplication": true, "simultaneousReplication": false, "targetTypes": [{ "name": "File Replication Target", "type": "FileReplicationTarget" }, { "name": "Secure FTP Replication Target", "type": "SFTPReplicationTarget" }, { "name": "FTP\/SSL Replication Target", "type": "FTPSReplicationTarget" }, { "name": "FTP Replication Target", "type": "FTPReplicationTarget" }], "targets": ["{\"TargetLocation\":\"G:\\\\SyncTests\\\\file2\",\"UseImpersonation\":false,\"ImpersonateUserName\":\"\",\"ImpersonateUserDomain\":\"\",\"ImpersonatePassword\":\"\",\"ID\":\"bc24ec5353c9417590dbcc27ee56f005\",\"Name\":\"File\",\"Disabled\":false,\"ReplicatorID\":\"Replicator_PublishingTargets_1\",\"Type\":\"Ingeniux.CMS.FileReplicationTarget\",\"typeFriendlyName\":\"Ingeniux.CMS.FileReplicationTarget\",\"Description\":\"\",\"PublishingTargetDirectory\":\"g:\\\\productdev\\\\dev_trunk\\\\cms_site\\\\app_data\\\\xml\\\\pub\\\\Live\",\"PublishingTargetID\":\"PublishingTargets\/1\",\"UseCommands\":false,\"PreReplicationCommand\":\"\",\"PostReplicationCommand\":\"\",\"PreReplicationCommandTimeout\":10,\"PostReplicationCommandTimeout\":10,\"ExemptLocations\":[],\"AdditionalLocations\":[],\"CleanupExemptLocations\":[]}"] } } }
If Publishing Target doesn't exist, returns error status