Offline docs (switch to live docs)                          Full          UI-only         CLI-only

CLI resource pool management

This document explains resource-pool management tasks you can perform with the MAAS CLI.

Quick questions you may have:

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."

[note] The description field is optional. [/note]

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."

[note] The name and description fields are optional. [/note]

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