Canonical · Schema

PatchedDevice

Device Serializer class.

CanonicalCloudLinuxOpen SourceUbuntuContainersBare MetalCharmsIdentity

Properties

Name Type Description
uid string
creation_date string
address string
public_ssh_key string
grafana_dashboards array
foxglove_dashboards array
prometheus_alert_rule_files array
loki_alert_rule_files array
certificate object
View JSON Schema on GitHub

JSON Schema

canonical-patched-device-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-patched-device-schema.json",
  "title": "PatchedDevice",
  "description": "Device Serializer class.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-devices-api-openapi.yml#/components/schemas/PatchedDevice",
  "type": "object",
  "properties": {
    "uid": {
      "type": "string",
      "maxLength": 200
    },
    "creation_date": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "address": {
      "type": "string",
      "title": "Device IP"
    },
    "public_ssh_key": {
      "type": "string",
      "title": "Device public SSH key"
    },
    "grafana_dashboards": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "foxglove_dashboards": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "prometheus_alert_rule_files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "loki_alert_rule_files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "certificate": {
      "allOf": [
        {
          "$ref": "#/$defs/DeviceCertificate"
        }
      ],
      "readOnly": true
    }
  },
  "$defs": {
    "BlankEnum": {
      "enum": [
        ""
      ]
    },
    "DeviceCertificate": {
      "type": "object",
      "description": "Device Certificate Serializer class.",
      "properties": {
        "csr": {
          "type": "string",
          "title": "Device Certificate Signing Request"
        },
        "certificate": {
          "type": "string",
          "title": "Signed Device Certificate"
        },
        "ca": {
          "type": "string",
          "title": "Device Certificate Authority"
        },
        "chain": {
          "type": "string",
          "title": "Device Certificate Chain"
        },
        "status": {
          "oneOf": [
            {
              "$ref": "#/$defs/StatusEnum"
            },
            {
              "$ref": "#/$defs/BlankEnum"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "title": "Device Certificate request created"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "title": "Device Certificate last updated"
        }
      },
      "required": [
        "created_at",
        "csr",
        "updated_at"
      ]
    },
    "StatusEnum": {
      "enum": [
        "pending",
        "signed",
        "denied"
      ],
      "type": "string",
      "description": "* `pending` - Pending\n* `signed` - Signed\n* `denied` - Denied"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/canonical-patched-device"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.