How to return all data with xo-cli without limits
-
When I run this
xo-cli rest get vdisit shows me a list of VDIs but not all of them. At the end it will show... 1447 more items. Here's an example output'vdis/b1129b5c-517e-49e2-834c-d386d5faa795', 'vdis/df3b5d1b-c3ca-40d2-8a93-49195a2b564b', 'vdis/21ea982e-3fdb-4966-be37-483dd5360f64', 'vdis/bf6d04aa-bccd-47a3-abe5-ebadd5eb3925', 'vdis/c7100c77-cc86-4f2f-9d37-37241ebfe048', 'vdis/a0b7cb90-1a08-4ecf-8dde-4391cde3a051', 'vdis/728686f9-4957-421c-9732-4ea48964ebb9', ... 1447 more items ]I tried to set the limit to a high number but it doesn't seem to work. Anyone have any ideas?
xo-cli rest get vdis limit=9999 -
Hi @eeldivad

You can use the
jsonflag.xo-cli rest --json get vdis -
Ping @julien-f
-
Hi @eeldivad

You can use the
jsonflag.xo-cli rest --json get vdis -
@MathieuRA That worked! Thank you. I thought json was the default format and it seems --json must be right after the
restword. I tried putting it at the end and it didn't work but not a big deal. Thank you. How do you mark this post as resolved? -
On it. Thanks

-
O olivierlambert marked this topic as a question on
-
O olivierlambert has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login