File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ endpoints:
10
10
methods :
11
11
GET :
12
12
response : image
13
- paginationKey : images
14
13
oauth : ' images:view'
15
14
description : |
16
15
Returns a list of images.
@@ -20,6 +19,38 @@ endpoints:
20
19
python : |
21
20
import linode
22
21
TODO
22
+ POST :
23
+ money : false
24
+ oauth : linode:view, images:create
25
+ description : |
26
+ Create a new image from a Linode Disk
27
+ params :
28
+ disk_id :
29
+ optional : false
30
+ description : The id of the Linode Disk that will be imagized
31
+ type : Integer
32
+ value : 123
33
+ label :
34
+ optional : true
35
+ description : The label to assign this Image. Defaults to the label of the Disk.
36
+ type : String
37
+ limit : " 1-50 ASCII characters limited to letters, numbers, and underscores"
38
+ value : this_is_a_label
39
+ description :
40
+ optional : true
41
+ description : A longer summary that describes the image
42
+ type : String
43
+ limit : " 1-65000 ASCII characters"
44
+ value : A longer description of the image
45
+ examples :
46
+ curl : |
47
+ curl -H "Content-Type: application/json" \
48
+ -H "Authorization: Bearer $TOKEN" \
49
+ -X POST -d '$SUB_SPEC_EXAMPLE' \
50
+ https://$api_root/$version/images
51
+ python : |
52
+ import linode
53
+ TODO
23
54
/images/$id :
24
55
type : resource
25
56
description : |
You can’t perform that action at this time.
0 commit comments