get_activity_for_domain

Gets activity for a domain.

Path:
/lib/server/get_activity_for_domain.js

Parameters:

NameTypeDescription
idStringThe unique ID of the domain to retrieve activity for.

Example Request:

POST /redrock/query

{
	"Script":"@/lib/server/get_activity_for_domain.js(id:'7305da...')"
}

Example Response:

{
    "success": true,
    "Result": {
        "IsAggregate": false,
        "Count": 4,
        "Columns": [
            {
                "Name": "When",
                "IsHidden": false,
                "DDName": "WhenOccurred",
                "Title": "When",
                "DDTitle": "When Occurred",
                "Description": null,
                "Type": 3,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            {
                "Name": "Detail",
                "IsHidden": false,
                "DDName": "EventMessage",
                "Title": "Detail",
                "DDTitle": "Message",
                "Description": null,
                "Type": 12,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            ...
        ],
        "FullCount": 4,
        "Results": [
            {
                "Entities": [],
                "Row": {
                    "Detail": "[email protected] failed to add domain account \"nithesh.shetty\" for centrify.com. Reason: Unauthorized access",
                    "EventType": "Cloud.Server.DomainAccount.AccountAddFailure",
                    "When": "/Date(1522362267321)/",
                    "AuditId": null
                }
            },
            {
                "Entities": [],
                "Row": {
                    "Detail": "[email protected] failed to add domain account \"nithesh.shetty\" for centrify.com. Reason: Unauthorized access",
                    "EventType": "Cloud.Server.DomainAccount.AccountAddFailure",
                    "When": "/Date(1521069033039)/",
                    "AuditId": null
                }
            },
            ...
        ],
        "ReturnID": ""
    },
    "Message": null,
    "MessageID": null,
    "Exception": null,
    "ErrorID": null,
    "ErrorCode": null,
    "InnerExceptions": null
}