Creates a new investigation on the registry.
HTTP Request
POST /WebApp/OSCE_iES/OsceIes/ApiEntry
Parameters
The HTTP request body must contain all required parameters.
|
Name |
Type |
Description |
|---|---|---|
|
Required Parameters |
||
|
Url |
String |
Specifies the Endpoint Sensor API request to query |
|
TaskType |
Integer |
Type of API request For Endpoint Sensor, the value is always 4. For available values, see Threat Investigation API Task Types. |
|
Payload |
Object |
Payload of the request |
|
agentGuid |
Object |
GUID of the agent The value of agentGuid is a object of key-value pairs. The key is the serverGuid, and the value is a list of agentGuid strings of the endpoints managed by the target server. It uses the following format: { serverGuid : [ agentGuid ] } If both agentGuid and serverGuid contain an empty array, the request targets all agents. |
|
serverGuid |
String array |
GUID of servers which manage the endpoints specified in agentGuid If both agentGuid and serverGuid contain an empty array, the request targets all agents. |
|
name |
String |
Name of the investigation |
|
scanType |
Integer |
Method used for the investigation
|
|
timeRange |
Object |
Container for timeRange objects |
|
timeRange.rangeType |
String |
Period to be investigated
|
|
selectAll |
Object array |
Specify a blank value to return all results To include only results that match certain filters, specify values for selectAll[i].type and selectAll[i].value |
|
registryCriteria |
Object |
Container for registryCriteria objects |
|
registryCriteria.item |
Object array |
Container for registryCriteria.item objects |
|
registryCriteria.item[i].value |
Object array |
Container for registryCriteria.item[i].value objects |
|
registryCriteria.item[i].value[i].key |
String |
Value of registry key |
|
registryCriteria.item[i].value[i].value |
String |
Value of registry name |
|
registryCriteria.item[i].value[i].data |
String |
Value of registry data |
|
registryCriteria.item[i].value[i].matchOption |
Integer |
Indicates the operator used for the investigation
|
|
Optional Parameters |
||
|
scanScheduleId |
Integer |
ID of the scheduled investigation, if the investigation is triggered by a schedule |
|
scanScheduleGuid |
String |
GUID of the scheduled investigation, if the investigation is triggered by a schedule |
|
timeRange.startUnixTime |
Integer |
Date and time when the investigation starts Specify the time using the unix timestamp format |
|
timeRange.endUnixTime |
Integer |
Date and time when the investigation ends Specify the time using the unix timestamp format |
|
selectAll[i].type |
Integer |
Return only the results that match the specified filter For possible values, see Threat Investigation API Filter Values. |
|
selectAll[i].value |
Integer |
Value of the filter type For more information, see Threat Investigation API "selectAll" Types and Values. |
HTTP Request Example
POST /WebApp/OSCE_iES/OsceIes/ApiEntry
HTTP Request Body
Specify a JSON object containing the following HTTP request body:
Request body:
{
"Url": "V1/Task/CreateScan",
"TaskType": 4,
"Payload": {
"name": "test",
"scanType": 1,
"timeRange": {
"rangeType": "ANY"
},
"agentGuid": {
"2EBEC86D-3FEB-4666-9CA6-B80AB1E193E6": [
"654b1b52-c3c9-4405-b133-48e2353da13b"
]
},
"serverGuid": [
"2EBEC86D-3FEB-4666-9CA6-B80AB1E193E6"
],
"selectAll": [],
"registryCriteria": {
"item": [
{
"value": [
{
"key": "key",
"value": "value",
"matchOption": 1,
"data": "data"
}
]
}
]
}
}
}
Response
If successful, this method returns an HTTP status code of "200", result code of "0", and a response body with the following structure:
{
"Data": {
"Code": 0,
"CodeType": 1,
"Message": "OK",
"Data": {
"taskId": "0acf92f2-b9ff-4e11-b115-5f391d7c1d4a",
"lastContentId": "",
"hasMore": false,
"serverName": "SAMPLE_SERVER",
"serverGuid": "2EBEC86D-3FEB-4666-9CA6-B80AB1E193E6",
"content": [
{
"statusCode": 0,
"message": "TMSL_S_SUCCESS",
"content": {
"scanSummaryGuid":
"d490d749-0380-4ac5-b45f-a5a8b640585b"
}
}
]
},
"TimeZone": 8
},
"Meta": {
"result": 1,
"errorCode": 0,
"errorMessgae": "Success"
},
"PermissionCtrl": {
"permission": "255",
"elements": null
},
"FeatureCtrl": {
"mode": "0"
},
"SystemCtrl": {
"TmcmSoDist_Role": "none"
}
}
The following table describes the response objects specific to this API.
|
Name |
Type |
Description |
|---|---|---|
|
scanSummaryGuid |
String |
The GUID of the scan summary |
For more information about standard responses and response codes for this API, see the following topics:
