From f57b165a53d02562bf0f4cae8adcdc679e02230c Mon Sep 17 00:00:00 2001 From: epintzov Date: Tue, 21 May 2024 13:24:49 +0300 Subject: [PATCH] openapi --- .../TA-Demisto/appserver/static/openapi.json | 681 ++++++++++++++++++ 1 file changed, 681 insertions(+) create mode 100644 add-on/TA-Demisto/appserver/static/openapi.json diff --git a/add-on/TA-Demisto/appserver/static/openapi.json b/add-on/TA-Demisto/appserver/static/openapi.json new file mode 100644 index 0000000..9ea58d6 --- /dev/null +++ b/add-on/TA-Demisto/appserver/static/openapi.json @@ -0,0 +1,681 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "TA-Demisto", + "version": "4.1.3", + "description": "Demisto Add-On for Splunk", + "contact": { + "name": "Palo Alto Networks" + } + }, + "servers": [ + { + "url": "https://{domain}:{port}/servicesNS/-/TA-Demisto", + "variables": { + "domain": { + "default": "localhost" + }, + "port": { + "default": "8089" + } + }, + "description": "Access via management interface" + } + ], + "components": { + "schemas": { + "account": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "password": { + "type": "string", + "format": "password" + } + } + }, + "account_without_name": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "password": { + "type": "string", + "format": "password" + } + } + }, + "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": { + "ssl_cert_loc": { + "type": "string" + }, + "validate_ssl": { + "type": "string" + } + } + }, + "additional_parameters_without_name": { + "type": "object", + "properties": { + "ssl_cert_loc": { + "type": "string" + }, + "validate_ssl": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "BasicAuth": { + "type": "http", + "scheme": "basic" + } + } + }, + "paths": { + "/TA_Demisto_account": { + "get": { + "responses": { + "200": { + "description": "Get list of items for account", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/account_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get list of items for account", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Create item in account", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/account_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Create item in account", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/account" + } + } + }, + "required": false + }, + "deprecated": false + }, + "parameters": [ + { + "name": "output_mode", + "in": "query", + "required": true, + "description": "Output mode", + "schema": { + "type": "string", + "enum": [ + "json" + ], + "default": "json" + } + } + ] + }, + "/TA_Demisto_account/{name}": { + "get": { + "responses": { + "200": { + "description": "Get account item details", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/account_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get account item details", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Update account item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/account_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Update account item", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/account_without_name" + } + } + }, + "required": false + }, + "deprecated": false + }, + "delete": { + "responses": { + "200": { + "description": "Delete account item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/account_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Delete account 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" + } + } + ] + }, + "/TA_Demisto_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_Demisto_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_Demisto_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" + } + } + ] + } + }, + "security": [ + { + "BasicAuth": [] + } + ] +} \ No newline at end of file