Skip to content

Commit 7e4086a

Browse files
committed
new: Add POST /images
1 parent 5f89845 commit 7e4086a

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/data/endpoints/images.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ endpoints:
1010
methods:
1111
GET:
1212
response: image
13-
paginationKey: images
1413
oauth: 'images:view'
1514
description: |
1615
Returns a list of images.
@@ -20,6 +19,38 @@ endpoints:
2019
python: |
2120
import linode
2221
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 should 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
2354
/images/$id:
2455
type: resource
2556
description: |

0 commit comments

Comments
 (0)