Skip to content

/AWS1/CL_SAGTASK

Represents an individual security test task within a pentest job. Each task targets a specific risk type or endpoint and executes independently.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_taskid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The unique identifier of the task.

Optional arguments:

iv_pentestid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The unique identifier of the pentest associated with the task.

iv_pentestjobid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The unique identifier of the pentest job that contains the task.

iv_agentspaceid TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The unique identifier of the agent space.

iv_title TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

The title of the task.

iv_description TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING

A description of the task.

it_categories TYPE /AWS1/CL_SAGCATEGORY=>TT_CATEGORYLIST TT_CATEGORYLIST

The list of categories assigned to the task.

iv_risktype TYPE /AWS1/SAGRISKTYPE /AWS1/SAGRISKTYPE

The type of security risk the task is testing for.

io_targetendpoint TYPE REF TO /AWS1/CL_SAGENDPOINT /AWS1/CL_SAGENDPOINT

The target endpoint being tested by the task.

iv_executionstatus TYPE /AWS1/SAGTASKEXECUTIONSTATUS /AWS1/SAGTASKEXECUTIONSTATUS

The current execution status of the task.

io_logslocation TYPE REF TO /AWS1/CL_SAGLOGLOCATION /AWS1/CL_SAGLOGLOCATION

The location of the task execution logs.

iv_createdat TYPE /AWS1/SAGTIMESTAMP /AWS1/SAGTIMESTAMP

The date and time the task was created, in UTC format.

iv_updatedat TYPE /AWS1/SAGTIMESTAMP /AWS1/SAGTIMESTAMP

The date and time the task was last updated, in UTC format.


Queryable Attributes

taskId

The unique identifier of the task.

Accessible with the following methods

Method Description
GET_TASKID() Getter for TASKID, with configurable default
ASK_TASKID() Getter for TASKID w/ exceptions if field has no value
HAS_TASKID() Determine if TASKID has a value

pentestId

The unique identifier of the pentest associated with the task.

Accessible with the following methods

Method Description
GET_PENTESTID() Getter for PENTESTID, with configurable default
ASK_PENTESTID() Getter for PENTESTID w/ exceptions if field has no value
HAS_PENTESTID() Determine if PENTESTID has a value

pentestJobId

The unique identifier of the pentest job that contains the task.

Accessible with the following methods

Method Description
GET_PENTESTJOBID() Getter for PENTESTJOBID, with configurable default
ASK_PENTESTJOBID() Getter for PENTESTJOBID w/ exceptions if field has no value
HAS_PENTESTJOBID() Determine if PENTESTJOBID has a value

agentSpaceId

The unique identifier of the agent space.

Accessible with the following methods

Method Description
GET_AGENTSPACEID() Getter for AGENTSPACEID, with configurable default
ASK_AGENTSPACEID() Getter for AGENTSPACEID w/ exceptions if field has no value
HAS_AGENTSPACEID() Determine if AGENTSPACEID has a value

title

The title of the task.

Accessible with the following methods

Method Description
GET_TITLE() Getter for TITLE, with configurable default
ASK_TITLE() Getter for TITLE w/ exceptions if field has no value
HAS_TITLE() Determine if TITLE has a value

description

A description of the task.

Accessible with the following methods

Method Description
GET_DESCRIPTION() Getter for DESCRIPTION, with configurable default
ASK_DESCRIPTION() Getter for DESCRIPTION w/ exceptions if field has no value
HAS_DESCRIPTION() Determine if DESCRIPTION has a value

categories

The list of categories assigned to the task.

Accessible with the following methods

Method Description
GET_CATEGORIES() Getter for CATEGORIES, with configurable default
ASK_CATEGORIES() Getter for CATEGORIES w/ exceptions if field has no value
HAS_CATEGORIES() Determine if CATEGORIES has a value

riskType

The type of security risk the task is testing for.

Accessible with the following methods

Method Description
GET_RISKTYPE() Getter for RISKTYPE, with configurable default
ASK_RISKTYPE() Getter for RISKTYPE w/ exceptions if field has no value
HAS_RISKTYPE() Determine if RISKTYPE has a value

targetEndpoint

The target endpoint being tested by the task.

Accessible with the following methods

Method Description
GET_TARGETENDPOINT() Getter for TARGETENDPOINT

executionStatus

The current execution status of the task.

Accessible with the following methods

Method Description
GET_EXECUTIONSTATUS() Getter for EXECUTIONSTATUS, with configurable default
ASK_EXECUTIONSTATUS() Getter for EXECUTIONSTATUS w/ exceptions if field has no val
HAS_EXECUTIONSTATUS() Determine if EXECUTIONSTATUS has a value

logsLocation

The location of the task execution logs.

Accessible with the following methods

Method Description
GET_LOGSLOCATION() Getter for LOGSLOCATION

createdAt

The date and time the task was created, in UTC format.

Accessible with the following methods

Method Description
GET_CREATEDAT() Getter for CREATEDAT, with configurable default
ASK_CREATEDAT() Getter for CREATEDAT w/ exceptions if field has no value
HAS_CREATEDAT() Determine if CREATEDAT has a value

updatedAt

The date and time the task was last updated, in UTC format.

Accessible with the following methods

Method Description
GET_UPDATEDAT() Getter for UPDATEDAT, with configurable default
ASK_UPDATEDAT() Getter for UPDATEDAT w/ exceptions if field has no value
HAS_UPDATEDAT() Determine if UPDATEDAT has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_TASKLIST

TYPES TT_TASKLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_SAGTASK WITH DEFAULT KEY
.