URL

GET https://{api-url}/api/v2/tenants/{tenantId}/rba/scripts/{scriptId}/paginatedOutputs

Sample URLs

https://{api-url}/api/v2/tenants/msp_14/rba/scripts/13/paginatedOutputs
https://{api-url}/api/v2/tenants/client_69828/rba/scripts/13/paginatedOutputs
https://{api-url}/api/v2/tenants/client_69828/rba/scripts/13/paginatedOutputs?pageNo=1&pageSize=1&isDescendingOrder=true&sortName=response_time
https://{api-url}/api/v2/tenants/msp_3/rba/scripts/8/paginatedOutputs?deviceId=2771a95d-496a-4c0b-a4f4-1cf1b7f94045

Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).

Status code

200 OK

Sample request

{
"results": [
            {
		"output": "Agent Offline",
		"responseDate": "2017-04-02T05:35:10+0000",
		"type": "ONDEMAND",
                "task": {
                         "id": 8,
                         "name": "Host Namme"
                        },
		"device": {
			"id": "3b05e1ff-9eac-476d-8d45-06c8e1f5299f",
			"generalInfo": {
                                "osName": "Ubuntu 12.04.5 LTS"
				"ipAddresses": "172.22.221.41",
				"hostName": "luminalto-qa45k.luml.com",
			},
			"clientUniqueId": "client_69828",
			"type": "DEVICE"
		},
		"owner": {
			"loginName": "superadmin",
			"lastName": "Admin",
			"firstName": "Super",
			"email": "john.smith@domain.com",
                        "phoneNumber": ""
		}
	},
	{
		"output": "Agent Offline",
		"responseDate": "2017-04-02T05:35:10+0000",
		"type": "ONDEMAND",
                "task":{
                       "id": 8,
                       "name": "Host Namme"
                       },
		"device": {
			"id": "DEV0000015681",
			"generalInfo": {
                                "osName": "Microsoft Windows 7 Professional Service Pack 1, 32-bit",
				"ipAddresses": "172.22.221.37",
				"hostName": "qa-win2k8ssta.testbed.qa.com",
				"osbuildNumber": 0
			},
			"clientUniqueId": "client_69828",
			"type": "DEVICE"
		},
		"owner": {
			"loginName": "superadmin",
			"lastName": "Admin",
			"firstName": "Super",
			"email": "john.smith@domain.com",
			"phoneNumber": ""
		}
	},
	{
		"output": "",
		"responseDate": "2017-04-02T05:35:10+0000",
		"type": "ONDEMAND",
		"device": {
			"id": "DEV0000015679",
			"generalInfo": {
				"ipAddresses": "172.22.221.107",
				"hostName": "hydpc007.luminalto.com",
				"buildNumber": 0
			},
			"clientUniqueId": "client_69828",
			"type": "DEVICE"
		},
		"owner": {
			"id": "USR0000000001",
			"loginName": "superadmin",
			"lastName": "Admin",
			"firstName": "Super",
			"email": "john.smith@domain.com",
			"phoneNumber": ""
		}
	},

    "totalResults": 2,
    "orderBy": "res.response_time",
    "pageNo": 1,
    "pageSize": 100,
    "totalPages": 1,
    "nextPage": false,
    "previousPageNo": 0,
    "descendingOrder": true
]
}

Sample response

{
    "results": [
        {
            "output": "admin-PC\n</br>",
            "responseDate": "2019-03-29T07:07:58+0000",
            "type": "ONDEMAND",
            "task": {
                "id": 8,
                "name": "Host Name"
            },
            "device": {
                "id": "2771a95d-496a-4c0b-a4f4-1cf1b7f94045",
                "generalInfo": {
                    "osName": "Microsoft Windows 7 Professional Service Pack 1, 32-bit",
                    "ipAddresses": "10.0.3.15",
                    "hostName": "ADMIN-PC",
                    "osBuildNumber": "7601"
                },
                "clientUniqueId": "client_16",
                "type": "DEVICE"
            },
            "owner": {
                "loginName": "john",
                "lastName": "doe",
                "firstName": "john",
                "email": "john.doe@acme.com",
                "phoneNumber": ""
            }
        },
        {
            "output": "admin-PC\n</br>",
            "responseDate": "2019-03-29T07:07:56+0000",
            "type": "ONDEMAND",
            "task": {
                "id": 8,
                "name": "Host Name"
            },
            "device": {
                "id": "2771a95d-496a-4c0b-a4f4-1cf1b7f94045",
                "generalInfo": {
                    "osName": "Microsoft Windows 7 Professional Service Pack 1, 32-bit",
                    "ipAddresses": "10.0.3.15",
                    "hostName": "ADMIN-PC",
                    "osBuildNumber": "7601"
                },
                "clientUniqueId": "client_16",
                "type": "DEVICE"
            },
            "owner": {
                "loginName": "john",
                "lastName": "john",
                "firstName": "doe",
                "email": "john.doe@opsramp.com",
                "phoneNumber": ""
            }
        },
        {
            "output": "admin-PC\n</br>",
            "responseDate": "2019-03-29T07:07:37+0000",
            "type": "ONDEMAND",
            "task": {
                "id": 8,
                "name": "Host Name"
            },
            "device": {
                "id": "2771a95d-496a-4c0b-a4f4-1cf1b7f94045",
                "generalInfo": {
                    "osName": "Microsoft Windows 7 Professional Service Pack 1, 32-bit",
                    "ipAddresses": "10.0.3.15",
                    "hostName": "ADMIN-PC",
                    "osBuildNumber": "7601"
                },
                "clientUniqueId": "client_16",
                "type": "DEVICE"
            },
            "owner": {
                "loginName": "john",
                "lastName": "john",
                "firstName": "doe",
                "email": "john.doe@opsramp.com",
                "phoneNumber": ""
            }
        }
    ],
    "totalResults": 3,
    "orderBy": "res.response_time",
    "pageNo": 1,
    "pageSize": 100,
    "totalPages": 1,
    "nextPage": false,
    "previousPageNo": 0,
    "descendingOrder": true
}