Skip to content

Rust client/crate for the Chaos API (auto-generated repo)

Notifications You must be signed in to change notification settings

qernal/openapi-chaos-rust-client

Repository files navigation

Rust API client for openapi-chaos-client

Central Management API - publicly exposed set of APIs for managing deployments

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named openapi-chaos-client and add the following to Cargo.toml under [dependencies]:

openapi-chaos-client = { path = "./openapi-chaos-client" }

Documentation for API Endpoints

All URIs are relative to https://chaos.qernal.com/v1

Class Method HTTP request Description
FunctionsApi functions_create POST /functions Create function
FunctionsApi functions_delete DELETE /functions/{function_id} Delete function
FunctionsApi functions_get GET /functions/{function_id} Get function (latest revision)
FunctionsApi functions_revisions_get GET /functions/{function_id}/revisions/{function_revision_id} Get a specific revision of a function
FunctionsApi functions_revisions_list GET /functions/{function_id}/revisions List all revisions for a function
FunctionsApi functions_update PUT /functions/{function_id} Update function
FunctionsApi projects_functions_list GET /projects/{project_id}/functions List all functions within a project
HostsApi projects_hosts_create POST /projects/{project_id}/hosts Create host for project
HostsApi projects_hosts_delete DELETE /projects/{project_id}/hosts/{hostname} Delete specific host by hostname
HostsApi projects_hosts_get GET /projects/{project_id}/hosts/{hostname} Get specific host by hostname
HostsApi projects_hosts_list GET /projects/{project_id}/hosts List hosts for project
HostsApi projects_hosts_update PUT /projects/{project_id}/hosts/{hostname} Update specific host by hostname
HostsApi projects_hosts_verify_create POST /projects/{project_id}/hosts/{hostname}/verify Schedule host verification task
LogsApi logs_list GET /logs Get logs
MetricsApi metrics_aggregations_list GET /metrics/aggregations/{metric_aggregation_type} Get metrics
OrganisationsApi organisations_create POST /organisations Create organisations
OrganisationsApi organisations_delete DELETE /organisations/{organisation_id} Delete an organisation
OrganisationsApi organisations_get GET /organisations/{organisation_id} Get an organisation
OrganisationsApi organisations_list GET /organisations List organisations
OrganisationsApi organisations_update PUT /organisations/{organisation_id} Update an organisation
ProjectsApi organisations_projects_list GET /organisations/{organisation_id}/projects Get all projects within an organisation
ProjectsApi projects_create POST /projects Create project
ProjectsApi projects_delete DELETE /projects/{project_id} Delete project
ProjectsApi projects_get GET /projects/{project_id} Get project
ProjectsApi projects_list GET /projects List projects
ProjectsApi projects_update PUT /projects/{project_id} Update project
ProvidersApi providers_list GET /providers Get available providers
SecretsApi projects_secrets_create POST /projects/{project_id}/secrets Create project secret
SecretsApi projects_secrets_delete DELETE /projects/{project_id}/secrets/{secret_name} Delete project secret
SecretsApi projects_secrets_get GET /projects/{project_id}/secrets/{secret_name} Get project secret
SecretsApi projects_secrets_list GET /projects/{project_id}/secrets List project secrets of a specific type
SecretsApi projects_secrets_update PUT /projects/{project_id}/secrets/{secret_name} Update project secret
TokensApi auth_tokens_create POST /auth/tokens Create new auth token
TokensApi auth_tokens_delete DELETE /auth/tokens/{token_id} Delete token
TokensApi auth_tokens_get GET /auth/tokens/{token_id} Get token information
TokensApi auth_tokens_list GET /auth/tokens List all user auth tokens
TokensApi auth_tokens_update PUT /auth/tokens/{token_id} Update token

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

[email protected]

About

Rust client/crate for the Chaos API (auto-generated repo)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published