Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

An error occurred while submitting your form. Please try again or file a bug report. Close

How to script MAAS with Python

The python-libmaas client library provides access to various MAAS endpoints, so that you can write Python scripts to control MAAS. This page provides links to the necessary references and instructions.

Library endpoints

Currently, the library provides eight endpoints:

  • account
  • boot-sources and boot-resources
  • machines, devices, region controllers, rack controllers
  • events
  • configuration
  • tags
  • version
  • zones

See the API documentation for more info.

Using python-libmaas

Kick-start your journey with these useful external links:

For hands-on examples to get you up and running, visit the Python libmaas client guide.

For package details on PyPI, consult this external link.

Last updated 2 months ago. Help improve this document in the forum.