Canonical · Schema

InstancePost represents the fields required to rename/move a LXD instance.

CanonicalCloudLinuxOpen SourceUbuntuContainersBare MetalCharmsIdentity

Properties

Name Type Description
Config object Instance configuration file. API extension: instance_move_config
Devices object Instance devices. API extension: instance_move_config
Profiles array List of profiles applied to the instance. API extension: instance_move_config
allow_inconsistent boolean AllowInconsistent allow inconsistent copies when migrating. API extension: instance_allow_inconsistent_copy
container_only boolean Whether snapshots should be discarded (migration only, deprecated, use instance_only) Deprecated: use InstanceOnly.
instance_only boolean Whether snapshots should be discarded (migration only)
live boolean Whether to perform a live migration (migration only)
migration boolean Whether the instance is being migrated to another server
name string New name for the instance
override_snapshot_profiles boolean Whether the instances's snapshot should receive target instances profile on copy API extension: override_snapshot_profiles_on_copy
pool string Target pool for local cross-pool move API extension: instance_pool_move
project string Target project for local cross-project move API extension: instance_project_move
target object
View JSON Schema on GitHub

JSON Schema

canonical-instance-post-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-instance-post-schema.json",
  "title": "InstancePost represents the fields required to rename/move a LXD instance.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-instances-api-openapi.yml#/components/schemas/InstancePost",
  "properties": {
    "Config": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Instance configuration file.\n\nAPI extension: instance_move_config",
      "type": "object"
    },
    "Devices": {
      "additionalProperties": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "description": "Instance devices.\n\nAPI extension: instance_move_config",
      "type": "object"
    },
    "Profiles": {
      "description": "List of profiles applied to the instance.\n\nAPI extension: instance_move_config",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "allow_inconsistent": {
      "description": "AllowInconsistent allow inconsistent copies when migrating.\n\nAPI extension: instance_allow_inconsistent_copy",
      "type": "boolean",
      "x-go-name": "AllowInconsistent"
    },
    "container_only": {
      "description": "Whether snapshots should be discarded (migration only, deprecated, use instance_only)\n\nDeprecated: use InstanceOnly.",
      "type": "boolean",
      "x-deprecated": true,
      "x-go-name": "ContainerOnly"
    },
    "instance_only": {
      "description": "Whether snapshots should be discarded (migration only)",
      "type": "boolean",
      "x-go-name": "InstanceOnly"
    },
    "live": {
      "description": "Whether to perform a live migration (migration only)",
      "type": "boolean",
      "x-go-name": "Live"
    },
    "migration": {
      "description": "Whether the instance is being migrated to another server",
      "type": "boolean",
      "x-go-name": "Migration"
    },
    "name": {
      "description": "New name for the instance",
      "type": "string",
      "x-go-name": "Name"
    },
    "override_snapshot_profiles": {
      "description": "Whether the instances's snapshot should receive target instances profile on copy\n\nAPI extension: override_snapshot_profiles_on_copy",
      "type": "boolean",
      "x-go-name": "OverrideSnapshotProfiles"
    },
    "pool": {
      "description": "Target pool for local cross-pool move\n\nAPI extension: instance_pool_move",
      "type": "string",
      "x-go-name": "Pool"
    },
    "project": {
      "description": "Target project for local cross-project move\n\nAPI extension: instance_project_move",
      "type": "string",
      "x-go-name": "Project"
    },
    "target": {
      "$ref": "#/$defs/InstancePostTarget"
    }
  },
  "type": "object",
  "x-go-package": "github.com/canonical/lxd/shared/api",
  "$defs": {
    "InstancePostTarget": {
      "properties": {
        "certificate": {
          "description": "The certificate of the migration target",
          "type": "string",
          "x-go-name": "Certificate"
        },
        "operation": {
          "description": "The operation URL on the remote target",
          "type": "string",
          "x-go-name": "Operation"
        },
        "secrets": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Migration websockets credentials",
          "type": "object",
          "x-go-name": "Websockets"
        }
      },
      "title": "InstancePostTarget represents the migration target host and operation.",
      "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-instance-post"
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.