No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/KmaCoder/ddoscluster_api_client.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/KmaCoder/ddoscluster_api_client.git
)
Then import the package:
import swagger_client
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 swagger_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DDOSClusterApi(swagger_client.ApiClient(configuration))
try:
api_response = api_instance.d_dos_get_active_tasks()
pprint(api_response)
except ApiException as e:
print("Exception when calling DDOSClusterApi->d_dos_get_active_tasks: %s\n" % e)
# create an instance of the API class
api_instance = swagger_client.DDOSClusterApi(swagger_client.ApiClient(configuration))
minutes_interval = 1.2 # float | (optional)
try:
api_response = api_instance.d_dos_get_active_workers(minutes_interval=minutes_interval)
pprint(api_response)
except ApiException as e:
print("Exception when calling DDOSClusterApi->d_dos_get_active_workers: %s\n" % e)
# create an instance of the API class
api_instance = swagger_client.DDOSClusterApi(swagger_client.ApiClient(configuration))
minutes_interval = 1.2 # float | (optional)
try:
api_response = api_instance.d_dos_get_damage_stats(minutes_interval=minutes_interval)
pprint(api_response)
except ApiException as e:
print("Exception when calling DDOSClusterApi->d_dos_get_damage_stats: %s\n" % e)
# create an instance of the API class
api_instance = swagger_client.DDOSClusterApi(swagger_client.ApiClient(configuration))
body = swagger_client.DDOSWorkerDTO() # DDOSWorkerDTO |
try:
api_response = api_instance.d_dos_upsert_worker(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DDOSClusterApi->d_dos_upsert_worker: %s\n" % e)
All URIs are relative to https://api.ddoscluster.in.ua/
Class | Method | HTTP request | Description |
---|---|---|---|
DDOSClusterApi | d_dos_get_active_tasks | GET /active-tasks | |
DDOSClusterApi | d_dos_get_active_workers | GET /active-workers | |
DDOSClusterApi | d_dos_get_damage_stats | GET /damage-stats | |
DDOSClusterApi | d_dos_upsert_worker | POST /submit-progress | |
SwaggerApi | swagger_get_json | GET /swagger/json | |
SwaggerApi | swagger_get_ui | GET /swagger |
All endpoints do not require authorization.