HydraCore
API by router

Runtime images

List Runtime Images

GET
/internal/v1/runtime-images

Query Parameters

manifest_id?string|null
provider?string|null
include_superseded?Include Superseded
Defaultfalse

Header Parameters

authorization?string|null

Response Body

Successful Response

application/json
  1. response
images*array<>
Example Request
curl -X GET 'https://example.com/internal/v1/runtime-images'
Example Response
{  "images": [    {      "built_at": "2019-08-24T14:15:22Z",      "bundle_hash": "string",      "compatibility_hash": "string",      "id": "string",      "manifest_id": "string",      "provider": "string",      "registered_at": "2019-08-24T14:15:22Z",      "registered_by": "string",      "runtime_version": "string",      "snapshot_id": "string",      "superseded_at": "2019-08-24T14:15:22Z"    }  ]}

Register Runtime Image

POST
/internal/v1/runtime-images

Header Parameters

authorization?string|null

Request Body

application/json
  1. body
built_at*Built At
Formatdate-time
bundle_hash?|null
compatibility_hash*Compatibility Hash
Length10 <= length <= 80
manifest_id*Manifest Id
Lengthlength <= 100
provider*Provider
Lengthlength <= 50
registered_by?|null
runtime_version?|null
snapshot_id*Snapshot Id
Lengthlength <= 255

Response Body

Successful Response

application/json
  1. response
compatibility_hash*Compatibility Hash
id*Id
manifest_id*Manifest Id
provider*Provider
snapshot_id*Snapshot Id
superseded*Superseded
superseded_id*string|null
Example Request
curl -X POST 'https://example.com/internal/v1/runtime-images' \  -H 'Content-Type: application/json' \  -d '{  "built_at": "2019-08-24T14:15:22Z",  "compatibility_hash": "stringstri",  "manifest_id": "string",  "provider": "string",  "snapshot_id": "string"}'
Example Response
{  "compatibility_hash": "string",  "id": "string",  "manifest_id": "string",  "provider": "string",  "snapshot_id": "string",  "superseded": true,  "superseded_id": "string"}

Rollback Runtime Image

POST
/internal/v1/runtime-images/{image_id}/rollback

Path Parameters

image_id*Image Id

Query Parameters

allow_empty_slot?Allow Empty Slot
Defaultfalse

Header Parameters

authorization?string|null

Response Body

Successful Response

application/json
  1. response
manifest_id*Manifest Id
provider*Provider
restored*string|null
rolled_back_from*Rolled Back From
Example Request
curl -X POST 'https://example.com/internal/v1/runtime-images/string/rollback'
Example Response
{  "manifest_id": "string",  "provider": "string",  "restored": "string",  "rolled_back_from": "string"}