You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
719 lines
28 KiB
719 lines
28 KiB
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "TA-socradar-incidents",
|
|
"version": "1.9.18",
|
|
"description": "SOCRadar Incidents",
|
|
"contact": {
|
|
"name": "Burak G\u00f6ger"
|
|
}
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "https://{domain}:{port}/servicesNS/-/TA-socradar-incidents",
|
|
"variables": {
|
|
"domain": {
|
|
"default": "localhost"
|
|
},
|
|
"port": {
|
|
"default": "8089"
|
|
}
|
|
},
|
|
"description": "Access via management interface"
|
|
}
|
|
],
|
|
"components": {
|
|
"schemas": {
|
|
"proxy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"proxy_enabled": {
|
|
"type": "string"
|
|
},
|
|
"proxy_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"http",
|
|
"socks4",
|
|
"socks5"
|
|
]
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_port": {
|
|
"type": "string"
|
|
},
|
|
"proxy_username": {
|
|
"type": "string"
|
|
},
|
|
"proxy_password": {
|
|
"type": "string",
|
|
"format": "password"
|
|
},
|
|
"proxy_rdns": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"proxy_without_name": {
|
|
"type": "object",
|
|
"properties": {
|
|
"proxy_enabled": {
|
|
"type": "string"
|
|
},
|
|
"proxy_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"http",
|
|
"socks4",
|
|
"socks5"
|
|
]
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_port": {
|
|
"type": "string"
|
|
},
|
|
"proxy_username": {
|
|
"type": "string"
|
|
},
|
|
"proxy_password": {
|
|
"type": "string",
|
|
"format": "password"
|
|
},
|
|
"proxy_rdns": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"logging": {
|
|
"type": "object",
|
|
"properties": {
|
|
"loglevel": {
|
|
"type": "string",
|
|
"enum": [
|
|
"DEBUG",
|
|
"INFO",
|
|
"WARNING",
|
|
"ERROR",
|
|
"CRITICAL"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"logging_without_name": {
|
|
"type": "object",
|
|
"properties": {
|
|
"loglevel": {
|
|
"type": "string",
|
|
"enum": [
|
|
"DEBUG",
|
|
"INFO",
|
|
"WARNING",
|
|
"ERROR",
|
|
"CRITICAL"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additional_parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"how_many_days": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additional_parameters_without_name": {
|
|
"type": "object",
|
|
"properties": {
|
|
"how_many_days": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"socradar_incidents_collector": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"socradar_api_key": {
|
|
"type": "string"
|
|
},
|
|
"socradar_company_id": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "string",
|
|
"enum": [
|
|
"False",
|
|
"True"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"socradar_incidents_collector_without_name": {
|
|
"type": "object",
|
|
"properties": {
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"socradar_api_key": {
|
|
"type": "string"
|
|
},
|
|
"socradar_company_id": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "string",
|
|
"enum": [
|
|
"False",
|
|
"True"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"socradar_incidents_collector_without_disabled": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"interval": {
|
|
"type": "string"
|
|
},
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"socradar_api_key": {
|
|
"type": "string"
|
|
},
|
|
"socradar_company_id": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"securitySchemes": {
|
|
"BasicAuth": {
|
|
"type": "http",
|
|
"scheme": "basic"
|
|
}
|
|
}
|
|
},
|
|
"paths": {
|
|
"/TA_socradar_incidents_settings/proxy": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Get list of items for proxy",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/proxy_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Get list of items for proxy",
|
|
"deprecated": false
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Create item in proxy",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/proxy_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Create item in proxy",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/proxy"
|
|
}
|
|
}
|
|
},
|
|
"required": false
|
|
},
|
|
"deprecated": false
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "output_mode",
|
|
"in": "query",
|
|
"required": true,
|
|
"description": "Output mode",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"default": "json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"/TA_socradar_incidents_settings/logging": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Get list of items for logging",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/logging_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Get list of items for logging",
|
|
"deprecated": false
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Create item in logging",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/logging_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Create item in logging",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/logging"
|
|
}
|
|
}
|
|
},
|
|
"required": false
|
|
},
|
|
"deprecated": false
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "output_mode",
|
|
"in": "query",
|
|
"required": true,
|
|
"description": "Output mode",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"default": "json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"/TA_socradar_incidents_settings/additional_parameters": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Get list of items for additional_parameters",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/additional_parameters_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Get list of items for additional_parameters",
|
|
"deprecated": false
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Create item in additional_parameters",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/additional_parameters_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Create item in additional_parameters",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/additional_parameters"
|
|
}
|
|
}
|
|
},
|
|
"required": false
|
|
},
|
|
"deprecated": false
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "output_mode",
|
|
"in": "query",
|
|
"required": true,
|
|
"description": "Output mode",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"default": "json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"/TA_socradar_incidents_socradar_incidents_collector": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Get list of items for socradar_incidents_collector",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Get list of items for socradar_incidents_collector",
|
|
"deprecated": false
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Create item in socradar_incidents_collector",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Create item in socradar_incidents_collector",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_disabled"
|
|
}
|
|
}
|
|
},
|
|
"required": false
|
|
},
|
|
"deprecated": false
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "output_mode",
|
|
"in": "query",
|
|
"required": true,
|
|
"description": "Output mode",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"default": "json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"/TA_socradar_incidents_socradar_incidents_collector/{name}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Get socradar_incidents_collector item details",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Get socradar_incidents_collector item details",
|
|
"deprecated": false
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Update socradar_incidents_collector item",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Update socradar_incidents_collector item",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
},
|
|
"required": false
|
|
},
|
|
"deprecated": false
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Delete socradar_incidents_collector item",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"entry": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/socradar_incidents_collector_without_name"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Delete socradar_incidents_collector item",
|
|
"deprecated": false
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true,
|
|
"description": "The name of the item to operate on",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "output_mode",
|
|
"in": "query",
|
|
"required": true,
|
|
"description": "Output mode",
|
|
"schema": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"default": "json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"BasicAuth": []
|
|
}
|
|
]
|
|
} |