File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -3501,7 +3501,7 @@ paths:
3501
3501
- oauth:
3502
3502
- images:read_write
3503
3503
requestBody:
3504
- description: The data
3504
+ description: The Machine Image details.
3505
3505
content:
3506
3506
application/json:
3507
3507
schema:
@@ -3524,19 +3524,36 @@ paths:
3524
3524
example: This is an example image in the docs.
3525
3525
responses:
3526
3526
'200':
3527
- description: The new image and upload url .
3527
+ description: The new Machine Image upload URL .
3528
3528
content:
3529
3529
application/json:
3530
3530
schema:
3531
3531
type: object
3532
3532
properties:
3533
3533
upload_url:
3534
3534
type: string
3535
- description: The URL to upload the image to.
3535
+ description: The URL to upload the Machine Image to.
3536
3536
image:
3537
3537
$ref: '#/components/schemas/ImagePrivate'
3538
3538
default:
3539
3539
$ref: '#/components/responses/ErrorResponse'
3540
+ x-code-samples:
3541
+ - lang: Shell
3542
+ source: >
3543
+ curl -H "Content-Type: application/json" \
3544
+ -H "Authorization: Bearer $TOKEN" \
3545
+ -X POST -d '{
3546
+ "description": "This is an example Machine Image.",
3547
+ "label": "example-machine-image-label",
3548
+ "region": "us-east"
3549
+ }' \
3550
+ https://api.linode.com/v4/images
3551
+ - lang: CLI
3552
+ source: >
3553
+ linode-cli images upload \
3554
+ --label example-machine-image-label \
3555
+ --description "This is an example Machine Image."
3556
+ --region us-east
3540
3557
/images/{imageId}:
3541
3558
x-linode-cli-command: images
3542
3559
parameters:
You can’t perform that action at this time.
0 commit comments