API Client library for root.io platform.
Project description
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
- APIKey
- Account
- CreateAPIKeyRequest
- CreateOrgInviteRequest
- CreateOrgInviteResponse
- CreateOrganizationRequest
- EntitiesFindingStatus
- EntitiesResolution
- EntitiesScannerName
- EntitiesSecurityFindingSeverity
- EntitiesVscanReportUploadStatus
- ImageBuildResponse
- OrgRoleBinding
- OrgRoleBindingCreationRequest
- Organization
- ReleaseTag
- SecurityFindingResource
- SecurityfindingsCommentRequest
- SecurityfindingsSecurityFindingActivityResource
- SecurityfindingsSecurityFindingActivitySummaryResource
- SecurityfindingsSecurityFindingDetailedActivityResource
- SecurityfindingsStatusUpdateRequest
- VscanReportUpload
- VulnerablePackageSummary
Documentation For Authorization
Authentication schemes defined for the API:
BasicAuth
- Type: HTTP basic authentication
Author
Pack Commands
pip install setuptools wheel twine
python3 setup.py sdist bdist_wheel
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rootio-client-1.1.0.tar.gz.
File metadata
- Download URL: rootio-client-1.1.0.tar.gz
- Upload date:
- Size: 61.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cea999f3c7d2c8f8aeaf07e5b734eefa0b30afb40221d5ccc7e3fa11eaa6864
|
|
| MD5 |
1d866a96de38e0c144341992d64d54d0
|
|
| BLAKE2b-256 |
f6005c668658a493a2c6b566d61b56db32336004d9a8f6e0ecfd885646234cb3
|
File details
Details for the file rootio_client-1.1.0-py3-none-any.whl.
File metadata
- Download URL: rootio_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 168.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c7a7cf35e9847479e7bd7ded33f663a8f79fbbe0e6cd4b17cb426199c788280
|
|
| MD5 |
796fc13d92da8ccd72a446716f72691c
|
|
| BLAKE2b-256 |
96555e12c0daeafaea244b203c562eb18b487465789ef84641b7bf74b571d39d
|