CloudBit Documentation
  • Overview
  • Platform
    • Release Notes
    • Pricing
      • Compute
      • Kubernetes
      • Object Storage
      • Volumes & Snapshots
      • Load Balancers
      • Elastic IPs
      • VPN & Peering
      • Licenses
      • Support
      • Billing FAQ
    • Account
      • Sign Up
      • Closing account
  • Products
    • ▫️Compute
      • Instances
        • How-to
          • Connect to instances
          • Destroy instances
      • Volumes
      • Keypairs
      • ▫️Networking
        • Private Networks
        • Routers
        • Security Groups
        • Elastic IPs
        • Load Balancers
          • Balancing Pools
        • Certificates
        • VPN & Peering
    • ▫️Kubernetes
      • Clusters
      • Resources
        • Volumes Features (CSI)
        • Cluster Autoscaler
    • ▫️Object Storage
      • Instances
      • How-to
        • Access Storage with AWS S3 SDKs
        • Access Storage with Cyberduck
        • Access Storage with Mountainduck
      • Ressources
        • Supported Amazon S3 features
        • Replication Management
          • GET service replication
          • PUT service replication
          • DELETE service replication
  • Developer Center
    • Overview
    • API
      • Product Entities
      • Location Entities
    • CLI
    • Terraform
Powered by GitBook
On this page
  • Documentation
  • Authentication

Was this helpful?

  1. Developer Center

API

PreviousOverviewNextProduct Entities

Last updated 3 years ago

Was this helpful?

The CloudBit API allows you to manage resources within the CloudBit cloud in a simple, programmatic way using conventional HTTP requests. The endpoints are intuitive and powerful, allowing you to easily make calls to retrieve information or to execute actions.

All of the functionality that you are familiar with in the CloudBit control panel is also available through the API, allowing you to script the complex actions that your situation requires. Our API has predictable resource-oriented URLs, accepts and returns JSON-encoded content and uses standard HTTP response codes.

Documentation

The latest API documentation is available here:

Authentication

Most of our requests are protected tough a user role management system and therefore require identification of the current user. This authentication system works by requesting an authentication token using a username and password and sending the generated token with each request in the X-Auth-Token header.

To generate such a token you have to make the following request:

POST https://api.cloudbit.ch/v3/auth
{
	"username": "…",
	"password": "…"
}
{
	"token": "…",
	"id": 1,
	"username": "my@cloudbit.ch"
}

Please find here more details about the authentication endpoints and models:

https://my.cloudbit.ch/#/doc/general
https://my.cloudbit.ch/#/doc/authentication