SecurityCenter API: Ticket

Admins do not have access to this endpoint.

/ticket

Methods
GET

Gets the list of Tickets.

Fields Parameter
Expand

The fields parameter should be specified along the query string, and it takes the syntax

    ?fields=<field>,...

Allowed Fields

*id
**name
**description
creator
owner
assignee
ownerGroup
assigneeGroup
queries
classification
status
notes
assignedTime
resolvedTime
closedTime
createdTime
modifiedTime
canUse
canManage
canRespond 

Legend

* = always comes back

** = comes back if fields list not specified on GET all
Request Parameters

None

Filter Parameters

usable - The response will be an object containing an array of usable Tickets. By default, both usable and manageable objects are returned.
manageable - The response will be an object containing all manageable Tickets. By default, both usable and manageable objects are returned. 

Example Response
Expand
{
    "type" : "regular",
    "response" : {
        "usable" : [
            {
                "id" : "1",
                "name" : "TestTicket",
                "description" : ""
            }
        ],
        "manageable" : [
            {
                "id" : "1",
                "name" : "TestTicket",
                "description" : ""
            }
        ]
    },
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : {},
    "timestamp" : 1423499298
}

POST

Adds a Ticket.

Request Parameters
Expand
{
    "name": <string>,
    "assignee": {
		"id" : <number>
	},
    "status": <string> (Optional; always "assigned" on add),
    "classification": <string> (Optional; default: "Information"; "Information" | "Configuration" | "Patch" | "Disable" | "Firewall" | "Schedule" | "IDS" | "Other" | "Accept Risk" | "Recast Risk" | "Re-scan Request" | "False Positive" | "System Probe" | "External Probe" | "Investigation Needed" | "Compromised System" | "Virus Incident" | "Bad Credentials" | "Unauthorized Software" | "Unauthorized System" | "Unauthorized User" ),
    "description": <string> (Optional),
    "notes": <string> (Optional),
    "queries": [
        {<query ID Record>}...
    ] (Optional),
    "query": <query Object> (Optional)
}
Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"id" : "1",
		"name" : "test",
		"description" : "Test",
		"classification" : "Unauthorized System",
		"status" : "assigned",
		"notes" : "Created for testing of alerts",
		"assignedTime" : "1424810461",
		"resolvedTime" : "-1",
		"closedTime" : "-1",
		"createdTime" : "1424810461",
		"modifiedTime" : "1424810461",
		"queries" : [],
        "canUse" : "true",
        "canManage" : "true",
        "canRespond" : "true",
		"creator" : {
			"id" : "1",
			"username" : "head",
			"firstname" : "Security Manager",
			"lastname" : ""
		},
		"owner" : {
			"id" : "1",
			"username" : "head",
			"firstname" : "Security Manager",
			"lastname" : ""
		},
		"assignee" : {
			"id" : "1",
			"username" : "head",
			"firstname" : "Security Manager",
			"lastname" : ""
		},
		"ownerGroup" : {
			"id" : "0",
			"name" : "Full Access",
			"description" : "Full Access group"
		},
		"assigneeGroup" : {
			"id" : "0",
			"name" : "Full Access",
			"description" : "Full Access group"
		}
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1426879889
}

/ticket/{id}

Methods
GET

Gets the Ticket associated with {id}.

Fields Parameter
Expand

The fields parameter should be specified along the query string, and it takes the syntax

    ?fields=<field>,...

Allowed Fields

*id
**name
**description
creator
owner
assignee
ownerGroup
assigneeGroup
queries
classification
status
notes
assignedTime
resolvedTime
closedTime
createdTime
modifiedTime
canUse
canManage
canRespond

Legend

* = always comes back

** = comes back if fields list not specified on GET all
Request Parameters

None

Example Response
Expand
{
    "type" : "regular",
    "response" : {
        "id" : "6",
        "name" : "TestTicket",
        "description" : "",
        "classification" : "Information",
        "status" : "assigned",
        "notes" : "",
        "assignedTime" : "1423501383",
        "resolvedTime" : "-1",
        "closedTime" : "-1",
        "createdTime" : "1423501383",
        "modifiedTime" : "1423501383",
        "canUse" : "true",
        "canManage" : "true",
        "canRespond" : "true",
        "creator" : {
            "id" : "1",
            "username" : "head",
            "firstname" : "hi",
            "lastname" : "User"
		},
        "owner" : {
            "id" : "1",
            "username" : "head",
            "firstname" : "hi",
            "lastname" : "User"
		},
        "assignee" : {
            "id" : "1",
            "username" : "head",
            "firstname" : "hi",
            "lastname" : "User"
		},
        "ownerGroup" : {
            "id" : "0",
            "name" : "Full Access",
            "description" : "Full Access group"
		},
        "assigneeGroup" : {
            "id" : "0",
            "name" : "Full Access",
            "description" : "Full Access group"
		}
	},
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : {},
    "timestamp" : 1423501383
}

PATCH

Edits the Ticket associated with {id}, changing only the passed in fields.

Request Parameters

(All fields are optional)

See /ticket::POST for parameters.

Example Response
See /ticket/{id}::GET