This is a simple python client that shows succinct information on boot resources that you have available in your maas.
It uses the same login credenitals that the maas cli uses, and depends on that being set up.
The data output is is space delimited os/release, arch/subarch, build_serial, label, synced.
$ maas list
admin http://192.168.1.2/MAAS/api/1.0/ ABCDEFG:abcdefg:12345afjd
$ ./maas-dump-image-status admin
$ maas-dump-image-status home-smoser
centos/centos66 amd64/generic 20141129_01 daily True
centos/centos70 amd64/generic 20141129_01 daily True
ubuntu/precise amd64/hwe-p 20160201 daily True
ubuntu/precise amd64/hwe-q 20160201 daily True
ubuntu/precise amd64/hwe-r 20160201 daily True
ubuntu/precise amd64/hwe-s 20160201 daily True
ubuntu/precise amd64/hwe-t 20160201 daily True
ubuntu/trusty amd64/hwe-t 20160209 daily True
ubuntu/trusty amd64/hwe-u 20160209 daily True
ubuntu/trusty amd64/hwe-v 20160209 daily True
ubuntu/trusty amd64/hwe-w 20160209 daily True
ubuntu/wily amd64/hwe-w 20160204 daily True
ubuntu/xenial amd64/hwe-w 20160211 daily True
This information can be obtained with the maas cli, it is just more painful to do so.
$ maas home-smoser boot-resources read > resources.json
$ ruris=$(python -c 'import json, sys;
print(" ".join([r["resource_uri"].split("/")[-2] for r in json.load(sys.stdin)]))' < resources.json)
$ echo $ruris
18 17 32 33 34 35 31 28 29 26 27 37 30 36 38
$ maas home-smoser boot-resource read 18
{
"name": "centos/centos66",
"subarches": "generic",
"architecture": "amd64/generic",
"sets": {
"20160801_01": {
"files": {
"root-tgz": {
"filename": "root-tgz",
"filetype": "root-tgz",
"sha256": "286b0740fc244d5eb85b55c1349e6d4603d292a6c9a1be036b77ed289c8ab35b",
"complete": true,
"size": 248031463
}
},
"label": "daily",
"version": "20160801_01",
"complete": true,
"size": 248031463
}
},
"type": "Synced",
"id": 18,
"resource_uri": "/MAAS/api/1.0/boot-resources/18/"
}