File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -281,18 +281,6 @@ endpoints:
281
281
python : |
282
282
disk.label = 'New Disk Label'
283
283
disk.save()
284
- POST :
285
- oauth : linodes:create
286
- description : >
287
- Duplicates this disk.
288
- examples :
289
- curl : |
290
- curl -H "Content-Type: application/json" \
291
- -H "Authorization: Bearer $TOKEN" \
292
- -X POST \
293
- https://$api_root/$version/linode/instances/$linode_id/disks/$disk_id
294
- python : |
295
- new_disk = disk.duplicate()
296
284
DELETE :
297
285
oauth : linodes:delete
298
286
dangerous : true
@@ -305,6 +293,25 @@ endpoints:
305
293
https://$api_root/$version/linode/instances/$linode_id/disks/$disk_id
306
294
python : |
307
295
disk.delete()
296
+ /linode/instances/$id/disks/$id/clone :
297
+ group : Disks
298
+ type : resource
299
+ authenticated : true
300
+ description : >
301
+ Duplicates a disk.
302
+ methods :
303
+ POST :
304
+ oauth : linodes:create
305
+ description : >
306
+ Duplicates this disk.
307
+ examples :
308
+ curl : |
309
+ curl -H "Content-Type: application/json" \
310
+ -H "Authorization: Bearer $TOKEN" \
311
+ -X POST \
312
+ https://$api_root/$version/linode/instances/$linode_id/disks/$disk_id/clone
313
+ python : |
314
+ new_disk = disk.duplicate()
308
315
/linode/instances/$id/disks/$id/resize :
309
316
group : Disks
310
317
type : Strange
You can’t perform that action at this time.
0 commit comments