Canonical · Schema

CertificatesPost_2

CertificatesPost represents the fields of a new LXD certificate

CanonicalCloudLinuxOpen SourceUbuntuContainersBare MetalCharmsIdentity

Properties

Name Type Description
certificate string The certificate itself, as base64 encoded X509 PEM certificate API extension: certificate_self_renewal
name string Name associated with the certificate
password string Server trust password (used to add an untrusted client, deprecated, use trust_token) Deprecated: Use TrustToken.
projects array List of allowed projects (applies when restricted) API extension: certificate_project
restricted boolean Whether to limit the certificate to listed projects API extension: certificate_project
token boolean Whether to create a certificate add token API extension: certificate_token
trust_token string Trust token (used to add an untrusted client) API extension: explicit_trust_token
type string Usage type for the certificate
View JSON Schema on GitHub

JSON Schema

canonical-certificates-post-2-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-certificates-post-2-schema.json",
  "title": "CertificatesPost_2",
  "description": "CertificatesPost represents the fields of a new LXD certificate",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-certificates-api-openapi.yml#/components/schemas/CertificatesPost_2",
  "properties": {
    "certificate": {
      "description": "The certificate itself, as base64 encoded X509 PEM certificate\n\nAPI extension: certificate_self_renewal",
      "type": "string",
      "x-go-name": "Certificate"
    },
    "name": {
      "description": "Name associated with the certificate",
      "type": "string",
      "x-go-name": "Name"
    },
    "password": {
      "description": "Server trust password (used to add an untrusted client, deprecated, use trust_token)\n\nDeprecated: Use TrustToken.",
      "type": "string",
      "x-deprecated": true,
      "x-go-name": "Password"
    },
    "projects": {
      "description": "List of allowed projects (applies when restricted)\n\nAPI extension: certificate_project",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "Projects"
    },
    "restricted": {
      "description": "Whether to limit the certificate to listed projects\n\nAPI extension: certificate_project",
      "type": "boolean",
      "x-go-name": "Restricted"
    },
    "token": {
      "description": "Whether to create a certificate add token\n\nAPI extension: certificate_token",
      "type": "boolean",
      "x-go-name": "Token"
    },
    "trust_token": {
      "description": "Trust token (used to add an untrusted client)\n\nAPI extension: explicit_trust_token",
      "type": "string",
      "x-go-name": "TrustToken"
    },
    "type": {
      "description": "Usage type for the certificate",
      "type": "string",
      "x-go-name": "Type"
    }
  },
  "type": "object",
  "x-go-package": "github.com/canonical/lxd/shared/api"
}

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-certificates-post-2"
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.