Skip to content

Codius Compute Service

wilsonianb edited this page Feb 10, 2015 · 6 revisions

Compute resources are provisioned and containers are deployed to said resources with the standard Codius Compute Service interface.

Instance State Machine

pending | running | shutting-down | terminated | stopping | stopped

Start Running a Container

POST /instances

Request Parameters:

  • container_uri
  • token
  • type
  • variables
  • port

Response Body:

  • Instance
    • state
    • token
    • container_hash
    • container_uri
    • ip_address
    • port

List all running containers

GET /instances

Response Body:

  • Array of Instances

Get info of a single Running Container

GET /instances/:token

Response Body:

  • Instance
    • state
    • token
    • container_hash
    • container_uri
    • ip_address
    • port

Stop a Running Container

DELETE /instances/:token

Response Body:

  • Instance
    • state

Get a Quote to run a Container

Provide a Codius Manifest json which includes requirements for compute resources and computes the price of using those resources.

POST /quotes

Request Params:

  • manifest

Response Body:

  • manifest_hash
  • price (Codius Processing Units)
  • interval (Milliseconds)
  • signature (WebToken)