LXD REST API
The REST API used by every LXD client. LXD is Canonical's system container and virtual machine manager; the API is available over a local unix+http socket and over remote https, authenticated by TLS client certificate, OIDC identity, or unix group membership for local users. Canonical publishes the full contract as a Swagger 2.0 document with 169 paths, 333 operations and 236 schema definitions — the largest and most complete API contract in the Canonical portfolio. Capability discovery is through the api_extensions[] array on GET /1.0 rather than a path version bump; the path has been /1.0 since 2016.
Operations 334
Showing the first 250 of 334. The full set is in the contract, and via get_provider_operations.
PATCH
/1.0/auth/identity-provider-groups/{idpGroupName}
Partially update the identity provider group
#
POST
/1.0/images/{fingerprint}/secret
Generate secret for retrieval of the image by an untrusted client
#
GET
/1.0/network-allocations
Get the network allocations in use (`network`, `network-forward`, `load-balancer`, `uplink` and `instance`)
#
PATCH
/1.0/networks/{networkName}/forwards/{listenAddress}
Partially update the network address forward
#
DELETE
/1.0/networks/{networkName}/load-balancer-pools/{poolName}
Delete a network load balancer pool
#
PUT
/1.0/networks/{networkName}/load-balancer-pools/{poolName}
Update a network load balancer pool
#
GET
/1.0/networks/{networkName}/load-balancer-pools/{poolName}/state
Get the state of a network load balancer pool
#
DELETE
/1.0/networks/{networkName}/load-balancers/{listenAddress}
Delete the network address load balancer
#
GET
/1.0/networks/{networkName}/load-balancers/{listenAddress}
Get the network address load balancer
#
PATCH
/1.0/networks/{networkName}/load-balancers/{listenAddress}
Partially update the network address load balancer
#
PUT
/1.0/networks/{networkName}/load-balancers/{listenAddress}
Update the network address load balancer
#
Documentation
📖
Documentation
https://documentation.ubuntu.com/lxd/latest/rest-api/
📖
APIReference
https://documentation.ubuntu.com/lxd/latest/api-extensions/
Specifications
Other Resources
🔗
Overlay
https://raw.githubusercontent.com/api-evangelist/canonical/refs/heads/main/overlays/canonical-lxd-rest-api-overlay.yaml
🔗
AgentSkill
https://raw.githubusercontent.com/api-evangelist/canonical/refs/heads/main/skills/canonical-lxd-provision-instance.md
🔗
SourceCode
https://github.com/canonical/lxd
🔗
Portal
https://canonical.com/lxd