docs(REST API): use | cat trick in VDI import example

This commit is contained in:
Julien Fontanet
2022-05-30 16:51:35 +02:00
parent 33a380b173
commit ee8e2fa906
2 changed files with 8 additions and 2 deletions

View File

@@ -150,9 +150,12 @@ curl \
-b authenticationToken=KQxQdm2vMiv7jBIK0hgkmgxKzemd8wSJ7ugFGKFkTbs \
-H 'Content-Type: application/octet-stream' \
--data-binary @myDisk.vhd \
'https://xo.example.org/rest/v0/srs/357bd56c-71f9-4b2a-83b8-3451dec04b8f/vdis?name_label=my_imported_VDI'
'https://xo.example.org/rest/v0/srs/357bd56c-71f9-4b2a-83b8-3451dec04b8f/vdis?name_label=my_imported_VDI' \
| cat
```
> Note: the final `| cat` ensures cURL's standard output is not a TTY, which is necessary for upload stats to be dislayed.
This request returns the UUID of the created VDI.
The following query parameters are supported to customize the created VDI: