Skip to content

Commit ea48426

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

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/data/endpoints/images.yaml

Lines changed: 29 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,35 @@ endpoints:
2019
python: |
2120
import linode
2221
TODO
22+
POST:
23+
money: true
24+
oauth: 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+
label:
33+
optional: true
34+
description: The label to assign this Image. Defaults to the label of the Disk.
35+
type: String
36+
limit: "1-50 ASCII characters limited to letters, numbers, and underscores"
37+
description:
38+
optioanl: true
39+
description: A longer summary that describes the image
40+
type: String
41+
limit: "1-65000 ASCII characters"
42+
examples:
43+
curl: |
44+
curl -H "Content-Type: application/json" \
45+
-H "Authorization: Bearer $TOKEN" \
46+
-X POST -d '$SUB_SPEC_EXAMPLE' \
47+
https://$api_root/$version/images
48+
python: |
49+
import linode
50+
TODO
2351
/images/$id:
2452
type: resource
2553
description: |

0 commit comments

Comments
 (0)