mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-08 03:40:13 +00:00
api-test: update curl examples
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
bb937395f7
commit
9fd9bd53fd
@ -20,3 +20,11 @@ curl -XPOST -H 'Content-type: application/json' \
|
|||||||
-d '{"entry":{"mount_type":"volume","source":"/source","destination":"/destination","ro":true}}' \
|
-d '{"entry":{"mount_type":"volume","source":"/source","destination":"/destination","ro":true}}' \
|
||||||
'http://127.0.0.1:3000/api/1/mount/rootfs'
|
'http://127.0.0.1:3000/api/1/mount/rootfs'
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "Calling /api/1/mount/rootfs again, but with a destination which does NOT match the regex"
|
||||||
|
echo "Expect an error:"
|
||||||
|
# with the optional 'ro' field
|
||||||
|
curl -XPOST -H 'Content-type: application/json' \
|
||||||
|
-d '{"entry":{"mount_type":"volume","source":"/source","destination":"./foo","ro":true}}' \
|
||||||
|
'http://127.0.0.1:3000/api/1/mount/rootfs'
|
||||||
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user