partition¶
add-tag¶
Add a tag to a partition on machine system_id, device device_id and partition id.
maas $PROFILE partition add-tag [--help] [-d] [-k] system_id device_id id [data ...]
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
Keywords¶
Keyword “tag”¶
Optional String. The tag being added.
Note: This command accepts JSON.
delete¶
Delete the partition from machine system_id and device device_id with the given partition id.
maas $PROFILE partition delete [--help] [-d] [-k] system_id device_id id
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
format¶
Format the partition on machine system_id and device device_id with the given partition id.
maas $PROFILE partition format [--help] [-d] [-k] system_id device_id id [data ...]
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
Keywords¶
Keyword “fstype”¶
Optional String. Type of filesystem.
Keyword “uuid”¶
Optional String. The UUID for the filesystem.
Keyword “label”¶
Optional String. The label for the filesystem.
Note: This command accepts JSON.
mount¶
Mount a filesystem on machine system_id, device device_id and partition id.
maas $PROFILE partition mount [--help] [-d] [-k] system_id device_id id [data ...]
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
Keywords¶
Keyword “mount_point”¶
Optional String. Path on the filesystem to mount.
Keyword “mount_options”¶
Optional String. Options to pass to mount(8).
Note: This command accepts JSON.
read¶
Read the partition from machine system_id and device device_id with the given partition id.
maas $PROFILE partition read [--help] [-d] [-k] system_id device_id id
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
remove-tag¶
Remove a tag from a partition on machine system_id, device device_id and partition id.
maas $PROFILE partition remove-tag [--help] [-d] [-k] system_id device_id id [data ...]
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
Keywords¶
Keyword “tag”¶
Optional String. The tag being removed.
Note: This command accepts JSON.
unformat¶
Unformat the partition on machine system_id and device device_id with the given partition id.
maas $PROFILE partition unformat [--help] [-d] [-k] system_id device_id id
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
unmount¶
Unmount a filesystem on machine system_id, device device_id and partition id.
maas $PROFILE partition unmount [--help] [-d] [-k] system_id device_id id
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
id |
The ID of the resource (e.g., |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
partitions create¶
Create a partition on a block device.
maas $PROFILE partitions create [--help] [-d] [-k] system_id device_id [data ...]
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |
Keywords¶
Keyword “size”¶
Optional Int. The size of the partition in bytes. If not specified, all available space will be used.
Keyword “uuid”¶
Optional String. UUID for the partition. Only used if the partition table type for the block device is GPT.
Keyword “bootable”¶
Optional Boolean. If the partition should be marked bootable.
Note: This command accepts JSON.
partitions read¶
List partitions on a device with the given system_id and device_id.
maas $PROFILE partitions read [--help] [-d] [-k] system_id device_id
Positional arguments¶
Argument |
Effect |
|---|---|
system_id |
The system ID of the machine/device (e.g., |
device_id |
The device_id parameter |
Command-line options¶
Option |
Effect |
|---|---|
–help, -h |
Show this help message and exit. |
-d, –debug |
Display more information about API responses. |
-k, –insecure |
Disable SSL certificate check. |