Skip to main content

securityapi

Project description

cloudmersive_security_api_client

The security APIs help you detect and block security threats.

This Python package provides a native API client for Cloudmersive Security Threat Detection API

  • API version: v1
  • Package version: 3.0.1
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import cloudmersive_security_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import cloudmersive_security_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import cloudmersive_security_api_client
from cloudmersive_security_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_security_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_security_api_client.ContentThreatDetectionApi(cloudmersive_security_api_client.ApiClient(configuration))
value = 'value_example' # str | User-facing text input.

try:
    # Automatically detect threats in an input string
    api_response = api_instance.content_threat_detection_automatic_threat_detection_string(value)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContentThreatDetectionApi->content_threat_detection_automatic_threat_detection_string: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

Class Method HTTP request Description
ContentThreatDetectionApi content_threat_detection_automatic_threat_detection_string POST /security/threat-detection/content/automatic/detect/string Automatically detect threats in an input string
ContentThreatDetectionApi content_threat_detection_check_sql_injection_string POST /security/threat-detection/content/sql-injection/detect/string Check text input for SQL Injection (SQLI) attacks
ContentThreatDetectionApi content_threat_detection_check_xxe POST /security/threat-detection/content/xxe/detect/xml/string Protect text input from XML External Entity (XXE) attacks
ContentThreatDetectionApi content_threat_detection_detect_insecure_deserialization_json_string POST /security/threat-detection/content/insecure-deserialization/json/detect/string Detect Insecure Deserialization JSON (JID) attacks in a string
ContentThreatDetectionApi content_threat_detection_protect_xss POST /security/threat-detection/content/xss/detect/string Protect text input from Cross-Site-Scripting (XSS) attacks through normalization
NetworkThreatDetectionApi network_threat_detection_detect_ssrf_url POST /security/threat-detection/network/url/ssrf/detect Check a URL for Server-side Request Forgery (SSRF) threats
NetworkThreatDetectionApi network_threat_detection_is_bot POST /security/threat-detection/network/ip/is-bot Check if IP address is a Bot client threat
NetworkThreatDetectionApi network_threat_detection_is_threat POST /security/threat-detection/network/ip/is-threat Check if IP address is a known threat
NetworkThreatDetectionApi network_threat_detection_is_tor_node POST /security/threat-detection/network/ip/is-tor-node Check if IP address is a Tor node server

Documentation For Models

Documentation For Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudmersive_security_api_client-3.0.1.tar.gz (23.2 kB view details)

Uploaded Source

File details

Details for the file cloudmersive_security_api_client-3.0.1.tar.gz.

File metadata

  • Download URL: cloudmersive_security_api_client-3.0.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for cloudmersive_security_api_client-3.0.1.tar.gz
Algorithm Hash digest
SHA256 1100579e81d6a349e43bc20cba05ffa44073791d21409bfa8680a69191827a1c
MD5 2602985e3c23cd747211068adf26f97f
BLAKE2b-256 c566d26e5f19344eb5dcfb346d6fe4e0da36a03f537c6d0ae6288074df4d3db8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page