Skip to main content

API Client library for root.io platform.

Project description

Pack Commands

pip install setuptools wheel twine
python3 setup.py sdist bdist_wheel
twine upload dist/*

root-io.sdk.cloud-client

This is the API documentation for Root.io.

The root_io.sdk.cloud_client package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.5.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

  • urllib3 >= 1.25.3
  • python-dateutil
  • aiohttp
  • pydantic

Getting Started

In your own code, to use this library to connect and interact with root-io.sdk.cloud-client, you can run the following:

import root_io.sdk.cloud_client
from root_io.sdk.cloud_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.root.io
# See configuration.py for a list of all supported configuration parameters.
configuration = root_io.sdk.cloud_client.Configuration(
    host = "https://api.root.io"
)

# 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.

# Configure HTTP basic authorization: BasicAuth
configuration = root_io.sdk.cloud_client.Configuration(
    username = os.environ["USERNAME"],
    password = os.environ["PASSWORD"]
)


# Enter a context with an instance of the API client
async with root_io.sdk.cloud_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = root_io.sdk.cloud_client.APIKeysApi(api_client)

    try:
        # List API Keys
        api_response = await api_instance.api_keys_get()
        print("The response of APIKeysApi->api_keys_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling APIKeysApi->api_keys_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.root.io

Class Method HTTP request Description
APIKeysApi api_keys_get GET /api_keys List API Keys
APIKeysApi api_keys_id_delete DELETE /api_keys/{id} Delete API Key
APIKeysApi api_keys_id_get GET /api_keys/{id} Show API Key
APIKeysApi api_keys_post POST /api_keys Create API Key
AccountApi me_get GET /me Get account information
InventoryApi orgs_org_id_inventory_image_builds_get GET /orgs/{org_id}/inventory/image_builds List images' builds
InventoryApi orgs_org_id_inventory_package_summaries_get GET /orgs/{org_id}/inventory/package_summaries List package summaries
InventoryApi orgs_org_id_inventory_release_tags_get GET /orgs/{org_id}/inventory/release_tags List release tags
InviteApi orgs_org_id_invites_invite_id_acceptance_post POST /orgs/{org_id}/invites/{invite_id}/acceptance Accepts an organization invite
InviteApi orgs_org_id_invites_post POST /orgs/{org_id}/invites Creates an organization invite
OrganizationApi orgs_org_id_get GET /orgs/{org_id} Get organization by ID
OrganizationApi orgs_org_id_role_bindings_post POST /orgs/{org_id}/role_bindings Links account to an organization
OrganizationApi orgs_post POST /orgs Creates a new organization
SecurityFindingsApi orgs_org_id_security_findings_finding_id_comments_comment_id_delete DELETE /orgs/{orgID}/security_findings/{findingID}/comments/{commentID} Delete a comment from a security finding
SecurityFindingsApi orgs_org_id_security_findings_finding_id_comments_comment_id_put PUT /orgs/{orgID}/security_findings/{findingID}/comments/{commentID} Update a comment to a security finding
SecurityFindingsApi orgs_org_id_security_findings_finding_id_comments_post POST /orgs/{org_id}/security_findings/{finding_id}/comments Adds a comment to a security finding
SecurityFindingsApi orgs_org_id_security_findings_finding_id_status_put PUT /orgs/{org_id}/security_findings/{finding_id}/status Updates security finding status and resolution
SecurityFindingsApi orgs_org_id_security_findings_get GET /orgs/{org_id}/security_findings List security findings
SecurityFindingsApi orgs_org_id_security_findings_report_get GET /orgs/{org_id}/security_findings/report Export a security findings file
VScanReportsApi orgs_org_id_vscan_reports_upload_post POST /orgs/{org_id}/vscan_reports/upload Upload VScan Report

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BasicAuth

  • Type: HTTP basic authentication

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

rootio-client-1.0.0.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rootio_client-1.0.0-py3-none-any.whl (93.1 kB view details)

Uploaded Python 3

File details

Details for the file rootio-client-1.0.0.tar.gz.

File metadata

  • Download URL: rootio-client-1.0.0.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for rootio-client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 10732fd8ed2b9263ccdb3f81a57349a0a2aee0b91a7a11f4f806bd325f7eb335
MD5 bc2482fbe5eb6970d9b9ff5961ae8cbc
BLAKE2b-256 7bd0289c5efc9a693c6d6204863957c0b02704c5d3954108f9aae6c3c3c759fd

See more details on using hashes here.

File details

Details for the file rootio_client-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rootio_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 93.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for rootio_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38190a0bb3404d02092e58464148902ca4ee345329eb3239aec52478668d373b
MD5 d467161357c5a272abd85990783e9065
BLAKE2b-256 2756ea54703a57bfa2d75420151aef99974273693b9d42de62c7b2a2193f0ab5

See more details on using hashes here.

Supported by

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