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:
35013501 - oauth:
35023502 - images:read_write
35033503 requestBody:
3504- description: The data
3504+ description: The Machine Image details.
35053505 content:
35063506 application/json:
35073507 schema:
@@ -3524,19 +3524,36 @@ paths:
35243524 example: This is an example image in the docs.
35253525 responses:
35263526 '200':
3527- description: The new image and upload url .
3527+ description: The new Machine Image upload URL .
35283528 content:
35293529 application/json:
35303530 schema:
35313531 type: object
35323532 properties:
35333533 upload_url:
35343534 type: string
3535- description: The URL to upload the image to.
3535+ description: The URL to upload the Machine Image to.
35363536 image:
35373537 $ref: '#/components/schemas/ImagePrivate'
35383538 default:
35393539 $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
35403557 /images/{imageId}:
35413558 x-linode-cli-command: images
35423559 parameters:
You can’t perform that action at this time.
0 commit comments