Skip to content

Commit 586b6e4

Browse files
committed
new: Documents POST /volumes/:id/resize
1 parent 2091c66 commit 586b6e4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/data/endpoints/volumes.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,26 @@ endpoints:
218218
python: |
219219
v = linode.Volume(client, 123)
220220
v.detach()
221+
/volumes/$id/resize:
222+
authenticated: true
223+
description: >
224+
Increase the size of a volume.
225+
methods:
226+
POST:
227+
oauth: volumes:modify
228+
description: >
229+
Increase the size of a volume. You may not decrease the size of a volume
230+
with this endpoint.
231+
params:
232+
size:
233+
type: Integer
234+
description: The new size of this volume.
235+
value: 2000
236+
examples:
237+
curl: |
238+
curl -H "Content-Type: application/json" \
239+
-H "Authorization: token $TOKEN" \
240+
-X POST -d '{
241+
"size": 2000
242+
}'
243+
https://$api_root/$version/volumes/$volume_id/resize

0 commit comments

Comments
 (0)