OpenStack · Schema

OpenStack Nova Server

Schema describing a Nova compute server (instance) returned by the OpenStack Compute API.

Cloud PlatformInfrastructure as a ServiceOpen SourceVirtualizationLinux Foundation

Properties

Name Type Description
id string
name string
status string
tenant_id string
user_id string
flavor object
image object
addresses object
key_name string
security_groups array
metadata object
created string
updated string
OS-EXT-STS:vm_state string
OS-EXT-STS:task_state stringnull
OS-EXT-STS:power_state integer
OS-EXT-AZ:availability_zone string
hostId string
progress integer
links array
View JSON Schema on GitHub

JSON Schema

openstack-server-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/openstack/refs/heads/main/json-schema/openstack-server-schema.json",
  "title": "OpenStack Nova Server",
  "description": "Schema describing a Nova compute server (instance) returned by the OpenStack Compute API.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "name": { "type": "string" },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE", "BUILD", "DELETED", "ERROR", "HARD_REBOOT", "MIGRATING",
        "PASSWORD", "PAUSED", "REBOOT", "REBUILD", "RESCUE", "RESIZE",
        "REVERT_RESIZE", "SHELVED", "SHELVED_OFFLOADED", "SHUTOFF",
        "SOFT_DELETED", "SUSPENDED", "UNKNOWN", "VERIFY_RESIZE"
      ]
    },
    "tenant_id": { "type": "string" },
    "user_id": { "type": "string" },
    "flavor": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "links": { "type": "array", "items": { "type": "object" } }
      }
    },
    "image": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "id": { "type": "string" },
            "links": { "type": "array", "items": { "type": "object" } }
          }
        },
        { "type": "string" }
      ]
    },
    "addresses": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "addr": { "type": "string" },
            "version": { "type": "integer", "enum": [4, 6] },
            "OS-EXT-IPS:type": { "type": "string", "enum": ["fixed", "floating"] },
            "OS-EXT-IPS-MAC:mac_addr": { "type": "string" }
          }
        }
      }
    },
    "key_name": { "type": "string" },
    "security_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": { "name": { "type": "string" } }
      }
    },
    "metadata": { "type": "object", "additionalProperties": { "type": "string" } },
    "created": { "type": "string", "format": "date-time" },
    "updated": { "type": "string", "format": "date-time" },
    "OS-EXT-STS:vm_state": { "type": "string" },
    "OS-EXT-STS:task_state": { "type": ["string", "null"] },
    "OS-EXT-STS:power_state": { "type": "integer" },
    "OS-EXT-AZ:availability_zone": { "type": "string" },
    "hostId": { "type": "string" },
    "progress": { "type": "integer" },
    "links": { "type": "array", "items": { "type": "object" } }
  },
  "required": ["id", "name", "status"]
}