Skip to main content

Turbinia API Server

Project description

turbinia-api-lib

Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

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 turbinia_api_lib

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 turbinia_api_lib

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import turbinia_api_lib
from turbinia_api_lib.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = turbinia_api_lib.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with turbinia_api_lib.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = turbinia_api_lib.TurbiniaConfigurationApi(api_client)

    try:
        # Download Configuration
        api_response = api_instance.download_config()
        print("The response of TurbiniaConfigurationApi->download_config:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling TurbiniaConfigurationApi->download_config: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
TurbiniaConfigurationApi download_config GET /api/config/download Download Configuration
TurbiniaConfigurationApi get_request_options GET /api/config/request_options Get Request Options
TurbiniaConfigurationApi get_version GET /api/config/version Get Version
TurbiniaConfigurationApi read_config GET /api/config/ Read Config
TurbiniaEvidenceApi get_evidence_attributes GET /api/evidence/types/{evidence_type} Get Evidence Attributes
TurbiniaEvidenceApi get_evidence_by_id GET /api/evidence/{evidence_id} Get Evidence By Id
TurbiniaEvidenceApi get_evidence_summary GET /api/evidence/summary Get Evidence Summary
TurbiniaEvidenceApi get_evidence_types GET /api/evidence/types Get Evidence Types
TurbiniaEvidenceApi query_evidence GET /api/evidence/query Query Evidence
TurbiniaEvidenceApi upload_evidence POST /api/evidence/upload Upload Evidence
TurbiniaJobsApi read_jobs GET /api/jobs/ Read Jobs
TurbiniaLogsApi get_logs GET /api/logs/{query} Get Logs
TurbiniaRequestResultsApi get_plaso_file GET /api/result/plasofile/{task_id} Get Plaso File
TurbiniaRequestResultsApi get_request_output GET /api/result/request/{request_id} Get Request Output
TurbiniaRequestResultsApi get_task_output GET /api/result/task/{task_id} Get Task Output
TurbiniaRequestsApi create_request POST /api/request/ Create Request
TurbiniaRequestsApi get_request_report GET /api/request/report/{request_id} Get Request Markdown Report
TurbiniaRequestsApi get_request_status GET /api/request/{request_id} Get Request Status
TurbiniaRequestsApi get_requests_summary GET /api/request/summary Get Requests Summary
TurbiniaTasksApi get_task_report GET /api/task/report/{task_id} Get Task Report
TurbiniaTasksApi get_task_statistics GET /api/task/statistics Get Task Statistics
TurbiniaTasksApi get_task_status GET /api/task/{task_id} Get Task Status
TurbiniaTasksApi get_workers_status GET /api/task/workers Get Workers Status

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

oAuth2

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

turbinia_api_lib-1.0.5.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

turbinia_api_lib-1.0.5-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

Details for the file turbinia_api_lib-1.0.5.tar.gz.

File metadata

  • Download URL: turbinia_api_lib-1.0.5.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.15-2rodete2-amd64

File hashes

Hashes for turbinia_api_lib-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a1a7bc2075f7853a2b8353e4e7e22f4654ec45f6da1b71451b9f7386f9f60608
MD5 7560a891513580b5c5fc6c26e222f997
BLAKE2b-256 85519ff9ddff56feba162398e2dccf33a80ffbdce54694d85f108a136841ceec

See more details on using hashes here.

File details

Details for the file turbinia_api_lib-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: turbinia_api_lib-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 51.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.15-2rodete2-amd64

File hashes

Hashes for turbinia_api_lib-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d23c6b334e0a0ae2283955477de6bdacf2f093b40f70214bf6d1ff8b9762ad43
MD5 2c3f3cddada05d8c55895f5df7404ec7
BLAKE2b-256 337b72f8f3d84672fca7fdc26c43a2d88fe79f6ff0f731947473e1a8400234b0

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