Youki · JSON Structure

Oci Runtime State Structure

Open Container Runtime State Schema

Type: object Properties: 6 Required: 4
ContainersContainer RuntimeOCIRustCNCFCloud NativeKubernetes

OciRuntimeState is a JSON Structure definition published by Youki, describing 6 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

ociVersion id status pid bundle annotations

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

oci-runtime-state-structure.json Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/youki/refs/heads/main/json-structure/oci-runtime-state-structure.json",
  "name": "OciRuntimeState",
  "description": "Open Container Runtime State Schema",
  "type": "object",
  "properties": {
    "ociVersion": {
      "$ref": "defs.json#/definitions/ociVersion"
    },
    "id": {
      "description": "the container's ID",
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "creating",
        "created",
        "running",
        "stopped"
      ]
    },
    "pid": {
      "type": "int32",
      "minimum": 0
    },
    "bundle": {
      "type": "string"
    },
    "annotations": {
      "$ref": "defs.json#/definitions/annotations"
    }
  },
  "required": [
    "ociVersion",
    "id",
    "status",
    "bundle"
  ]
}