Resource pools (deb/2.9/CLI)

2.7 2.8 2.9
Snap CLI ~ UI CLI ~ UI CLI ~ UI
Packages CLI ~ UI CLI ~ UI CLI ~ UI

Resource pools allow administrators to logically group resources – machines and VM hosts – into pools. Pools can help you budget machines for a particular set of functions. For example, if you’re using MAAS to manage a hospital data centre, you may want to keep a certain number of machines reserved for provider use, whether that be for the charts, documentation, or orders application. You can use resource pools to reserve those machines, regardless of which of the three applications you end up loading onto a particular machine at any given time.

Seven questions you may have:

  1. How can I create a resource pool?
  2. How can I list available resource pools?
  3. How can I list a single resource pool?
  4. How can I update a resource pool?
  5. How can I delete a resource pool?
  6. How can I add a machine to a resource pool?
  7. How can I get started with MAAS CLI?

Creating a resource pool

Here’s an example that demonstrates how to create a new resource pool named myresource.

maas $PROFILE resource-pools create name=myresource description="A new resource pool."

The description field is optional.

List available resource pools

maas $PROFILE resource-pools read

List a single resource pool

maas $PROFILE resource-pool read $RESOURCE_POOL_ID

Update a resource pool

maas $PROFILE resource-pool update $RESOURCE_POOL_ID name=newname description="A new description."

The name and description fields are optional.

Delete a resource pool

maas $PROFILE resource-pool delete $RESOURCE_POOL_ID

Add a machine to a resource pool

maas $PROFILE machine update $SYSTEM_ID pool=$POOL_NAME

Last updated 10 days ago.