fix create snapshot request docs (#15242)

This commit is contained in:
Ayrat Badykov 2022-11-17 09:43:40 +02:00 committed by GitHub
parent 6415fb4284
commit c94c231c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -600,7 +600,7 @@ provider. Only CSI plugins that implement the
| Method | Path | Produces |
| -------- | --------------------------------- | ------------------ |
| `PUT` | `/v1/volumes/snapshot/:volume_id` | `application/json` |
| `POST` | `/v1/volumes/snapshot` | `application/json` |
The table below shows this endpoint's support for
[blocking queries](/api-docs#blocking-queries) and
@ -633,18 +633,14 @@ parameters.
]
}
```
### Parameters
- `:volume_id` `(string: <required>)` - Specifies the ID of the volume to
snapshot. This must be the full ID. This is specified as part of the path.
### Sample Request
```shell-session
$ curl \
--request PUT \
--request POST \
--data @payload.json \
https://localhost:4646/v1/volume/csi/volume-id1/snapshot
https://localhost:4646/v1/volumes/snapshot
```
### Sample Response