@@ -49,7 +49,8 @@ endpoints:
49
49
distribution :
50
50
optional : true
51
51
description : >
52
- The Distribution to deploy this Linode with. May not be included if 'backup' is sent.
52
+ The Distribution to deploy this Linode with. May not be included
53
+ if 'backup_id' or 'image' is sent.
53
54
type : string
54
55
root_pass :
55
56
optional : unless source == "distro"
@@ -79,12 +80,19 @@ endpoints:
79
80
optional : true
80
81
description : >
81
82
The Backup to restore to the newly created
82
- Linode. May not be included if 'distribution' is sent.
83
+ Linode. May not be included if 'distribution' or 'image' is sent.
84
+ type : Integer
85
+ image :
86
+ optional : true
87
+ description : >
88
+ The gold-master image to use for the newly created Linode. May
89
+ not be included if 'distribution' or 'backup_id' is sent.
83
90
type : Integer
84
91
backups_enabled :
85
92
optional : true
86
93
description : >
87
- Subscribes this Linode with the Backup service. (Additional charges apply.) Defaults to "false".
94
+ Subscribes this Linode with the Backup service. (Additional
95
+ charges apply.) Defaults to "false".
88
96
type : Boolean
89
97
examples :
90
98
curl : |
@@ -334,6 +342,34 @@ endpoints:
334
342
https://$api_root/$version/linode/instances/$linode_id/disks/$disk_id/password
335
343
python : |
336
344
disk.reset_root_password('hunter2')
345
+ /linode/instances/$id/disks/$id/imagize :
346
+ group : Disks
347
+ type : Strange
348
+ authenticated : true
349
+ description : Creates a gold-master image for future deployments.
350
+ methods :
351
+ POST :
352
+ oauth : linodes:modify
353
+ response : image
354
+ params :
355
+ label :
356
+ optional : true
357
+ description : >
358
+ Sets the name of the image shown in the base image list, defaults
359
+ to the source disk label.
360
+ type : String
361
+ description :
362
+ optional : true
363
+ description : An optional description of the created image
364
+ type : String
365
+ examples :
366
+ curl : |
367
+ curl -H "Content-Type: application/json" \
368
+ -H "Authorization: Bearer $TOKEN" \
369
+ -X POST -d '{
370
+ "label": "My gold master image"
371
+ }' \
372
+ https://$api_root/$version/linode/instances/$linode_id/disks/$disk_id/imagize
337
373
/linode/instances/$id/configs :
338
374
group : Configs
339
375
authenticated : true
@@ -362,13 +398,13 @@ endpoints:
362
398
description : >
363
399
A kernel ID to boot this Linode with.
364
400
Defaults to "linode/latest-64bit".
365
- type : string
401
+ type : String
366
402
value : linode/latest-64bit
367
403
label :
368
404
description : >
369
405
The user-friendly label to name this config.
370
406
limit : 1-48 characters
371
- type : string
407
+ type : String
372
408
value : My config
373
409
devices :
374
410
description : >
@@ -941,8 +977,9 @@ endpoints:
941
977
type : Action
942
978
authenticated : true
943
979
description : >
944
- Deletes all Disks and Configs on this Linode, then deploys a new Distribution to this Linode with the given attributes.
945
- Returns information about this Linode.
980
+ Deletes all Disks and Configs on this Linode, then deploys a new
981
+ Distribution or Image to this Linode with the given attributes. Returns
982
+ information about this Linode.
946
983
methods :
947
984
POST :
948
985
oauth : linodes:modify
@@ -952,6 +989,12 @@ endpoints:
952
989
description : >
953
990
An Distribution to deploy to this Linode.
954
991
type : Distribution
992
+ image :
993
+ optional : true
994
+ description : >
995
+ The gold-master image to use for this Linode. May
996
+ not be included if 'distribution' is sent.
997
+ type : Integer
955
998
root_pass :
956
999
description : >
957
1000
The root password for the new deployment.
0 commit comments