Is it possible to call api using curl

Asked by Binoy M V on 2015-10-06

Hi,

Is it possible to call MAAS-API using curl. When i tried with the following, got error

root@wing:/project# curl --user admin:admin --data "op=list" http://localhost/MAAS/api/1.0/nodes/?op=list

root@wing:/project# curl --user admin:admin --data "op=list" http://localhost/MAAS/api/1.0/nodes/?op=list

curl -X GET -u admin:admin --data "op=list" http://localhost/MAAS/api/1.0/nodes/
Unrecognised signature: method=GET op=None

Unrecognised signature: method=GET op=list

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu maas Edit question
Assignee:
No assignee Edit question
Last query:
2015-10-06
Last reply:
2015-10-21
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.