PublishingSystemManagerServicesListPubTargets Method

Ingeniux CMS Web Services API

Retrieves the collection of Publishing Targets and User Groups basic information

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

public XHRServiceResponseGeneric<PublishingTargetsListData> ListPubTargets()

Return Value

Type: XHRServiceResponseGenericPublishingTargetsListData

Object contains Array of Publishing Target basic information, and array of User Groups basic information

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "groups": [{
            "name": "Administrators",
            "groupId": "UserGroup\/1",
            "usersCount": 2
        }, {
            "name": "Authors",
            "groupId": "UserGroups\/1",
            "usersCount": 1
        }],
        "pubTargets": [{
            "name": "Live",
            "id": "PublishingTargets\/1",
            "rootPage": "x2",
            "rootPageName": "Site",
            "site": "",
            "transformOnPublish": false,
            "userAgent": ""
        }, {
            "name": "Staging",
            "id": "PublishingTargets\/33",
            "rootPage": "x2",
            "rootPageName": "Site",
            "site": "",
            "transformOnPublish": false,
            "userAgent": ""
        }, {
            "name": "Staging 2",
            "id": "PublishingTargets\/34",
            "rootPage": "x2",
            "rootPageName": "Site",
            "site": "",
            "transformOnPublish": false,
            "userAgent": ""
        }]
    }
}
See Also

Reference