You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.yaml
+61-43Lines changed: 61 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -4108,38 +4108,39 @@ paths:
4108
4108
new Linode will incur a charge on your Account.
4109
4109
4110
4110
Linodes can be created using one of the available Types. See
4111
-
[GET /linode/types](/docs/api/linode-types/#types-list) to get more
4111
+
Types List ([GET /linode/types](/docs/api/linode-types/#types-list)) to get more
4112
4112
information about each Type's specs and cost.
4113
4113
4114
-
Linodes can be created in any one of our available
4115
-
[Regions](/docs/api/regions/#regions-list) for a list
4116
-
of available Regions you can deploy your Linode in.
4114
+
Linodes can be created in any one of our available Regions, which are accessible from the
4115
+
Regions List ([GET /regions](/docs/api/regions/#regions-list)) endpoint.
4117
4116
4118
4117
In an effort to fight spam, Linode restricts outbound connections on ports 25, 465, and 587
4119
4118
on all Linodes for new accounts created after November 5th, 2019. For more information,
4120
4119
see [Sending Email on Linode](/docs/email/running-a-mail-server/#sending-email-on-linode).
4121
4120
4122
4121
Linodes can be created in a number of ways:
4123
4122
4124
-
* Using a Linode Linux Distribution image or an Image you created based on another Linode.
4123
+
* Using a Linode Public Image distribution or a Private Image you created based on another Linode.
4124
+
* Access the Images List ([GET /images](/docs/api/images/#images-list)) endpoint with authentication to view
4125
+
all available Images.
4125
4126
* The Linode will be `running` after it completes `provisioning`.
4126
4127
* A default config with two Disks, one being a 512 swap disk, is created.
4127
4128
* `swap_size` can be used to customize the swap disk size.
4128
4129
* Requires a `root_pass` be supplied to use for the root User's Account.
4129
4130
* It is recommended to supply SSH keys for the root User using the `authorized_keys` field.
4130
4131
* You may also supply a list of usernames via the `authorized_users` field.
4131
-
* These users must have an SSH Key associated with your Profile first. See [/profile/sshkeys](/docs/api/profile/#ssh-key-add) for more information.
4132
+
* These users must have an SSH Key associated with your Profile first. See SSH Key Add ([POST /profile/sshkeys](/docs/api/profile/#ssh-key-add)) for more information.
4132
4133
4133
4134
* Using a StackScript.
4134
-
* See [/linode/stackscripts](/docs/api/stackscripts/#stackscripts-list) for
4135
+
* See StackScripts List ([GET /linode/stackscripts](/docs/api/stackscripts/#stackscripts-list)) for
4135
4136
a list of available StackScripts.
4136
4137
* The Linode will be `running` after it completes `provisioning`.
4137
4138
* Requires a compatible Image to be supplied.
4138
-
* See [/linode/stackscript/{stackscriptId}](/docs/api/stackscripts/#stackscript-view) for compatible Images.
4139
+
* See StackScript View ([GET /linode/stackscript/{stackscriptId}](/docs/api/stackscripts/#stackscript-view)) for compatible Images.
4139
4140
* Requires a `root_pass` be supplied to use for the root User's Account.
4140
4141
* It is recommended to supply SSH keys for the root User using the `authorized_keys` field.
4141
4142
* You may also supply a list of usernames via the `authorized_users` field.
4142
-
* These users must have an SSH Key associated with your Profile first. See [/profile/sshkeys](/docs/api/profile/#ssh-key-add) for more information.
4143
+
* These users must have an SSH Key associated with your Profile first. See SSH Key Add ([POST /profile/sshkeys](/docs/api/profile/#ssh-key-add)) for more information.
4143
4144
4144
4145
* Using one of your other Linode's backups.
4145
4146
* You must create a Linode large enough to accommodate the Backup's size.
@@ -4148,7 +4149,7 @@ paths:
4148
4149
4149
4150
* Create an empty Linode.
4150
4151
* The Linode will remain `offline` and must be manually started.
4151
-
* See [POST /linode/instances/{linodeId}/boot](/docs/api/linode-instances/#linode-boot).
4152
+
* See Linode Boot ([POST /linode/instances/{linodeId}/boot](/docs/api/linode-instances/#linode-boot)).
4152
4153
* Disks and Configs must be created manually.
4153
4154
* This is only recommended for advanced use cases.
4154
4155
@@ -4533,11 +4534,11 @@ paths:
4533
4534
post:
4534
4535
x-linode-grant: read_write
4535
4536
summary: Snapshot Create
4536
-
description: >
4537
+
description: |
4537
4538
Creates a snapshot Backup of a Linode.
4538
4539
4539
-
** If you already have a snapshot of this Linode, this is a destructive
4540
-
action. The previous snapshot will be deleted.**
4540
+
**Important:** If you already have a snapshot of this Linode, this is a destructive
4541
+
action. The previous snapshot will be deleted.
4541
4542
tags:
4542
4543
- Linode Instances
4543
4544
operationId: createSnapshot
@@ -4547,7 +4548,6 @@ paths:
4547
4548
- oauth:
4548
4549
- linodes:read_write
4549
4550
requestBody:
4550
-
description: The label for the new snapshot.
4551
4551
required: true
4552
4552
content:
4553
4553
application/json:
@@ -4560,10 +4560,11 @@ paths:
4560
4560
type: string
4561
4561
minLength: 1
4562
4562
maxLength: 255
4563
+
description: The label for the new snapshot.
4563
4564
example: SnapshotLabel
4564
4565
responses:
4565
4566
'200':
4566
-
description: Snapshot was successfully taken.
4567
+
description: Snapshot request successful.
4567
4568
content:
4568
4569
application/json:
4569
4570
schema:
@@ -4826,8 +4827,7 @@ paths:
4826
4827
config_id:
4827
4828
type: integer
4828
4829
description: >
4829
-
The Linode Config ID to boot into. If omitted, we will attempt to select a
4830
-
config to use. (This will do the right thing in most cases.)
4830
+
The Linode Config ID to boot into.
4831
4831
example: null
4832
4832
responses:
4833
4833
'200':
@@ -4893,9 +4893,6 @@ paths:
4893
4893
application/json:
4894
4894
schema:
4895
4895
type: object
4896
-
required:
4897
-
- region
4898
-
- type
4899
4896
properties:
4900
4897
region:
4901
4898
type: string
@@ -4905,7 +4902,7 @@ paths:
4905
4902
To view all available Regions you can deploy to see
4906
4903
[/regions](/docs/api/regions/#regions-list).
4907
4904
4908
-
* Region can only be provided when cloning to a new Linode.
4905
+
* Region can only be provided and is required when cloning to a new Linode.
4909
4906
example: us-east
4910
4907
type:
4911
4908
type: string
@@ -4918,12 +4915,12 @@ paths:
4918
4915
To view all available Linode Types you can deploy with
4919
4916
see [/linode/types](/docs/api/linode-types/#types-list).
4920
4917
4921
-
* Type can only be provided when cloning to a new Linode.
4918
+
* Type can only be provided and is required when cloning to a new Linode.
4922
4919
example: g6-standard-2
4923
4920
linode_id:
4924
4921
type: integer
4925
4922
description: >
4926
-
If an existing Linode is to be the target for the clone,
4923
+
If an existing Linode is the target for the clone,
4927
4924
the ID of that Linode. The existing Linode must have enough
4928
4925
resources to accept the clone.
4929
4926
example: 124
@@ -5389,13 +5386,27 @@ paths:
5389
5386
- Linode Instances
5390
5387
summary: Disk Create
5391
5388
description: |
5392
-
Adds a new Disk to a Linode. You can optionally create a Disk
5393
-
from an Image (see [/images](/docs/api/images/#images-list) for a list of available public images,
5394
-
or use one of your own), and optionally provide a StackScript to deploy
5395
-
with this Disk.
5389
+
Adds a new Disk to a Linode.
5390
+
5391
+
* You can optionally create a Disk from an Image or an Empty Disk if no Image is provided with a request.
5392
+
5393
+
* When creating an Empty Disk, providing a `label` is required.
5396
5394
5397
-
The default filesystem for new Disks is `ext4`. If creating a Disk from an Image, the filesystem
5395
+
* If no `label` is provided, an `image` is required instead.
5396
+
5397
+
* When creating a Disk from an Image, `root_pass` is required.
5398
+
5399
+
* The default filesystem for new Disks is `ext4`. If creating a Disk from an Image, the filesystem
5398
5400
of the Image is used unless otherwise specified.
5401
+
5402
+
* When deploying a StackScript on a Disk:
5403
+
* See StackScripts List ([GET /linode/stackscripts](/docs/api/stackscripts/#stackscripts-list)) for
5404
+
a list of available StackScripts.
5405
+
* Requires a compatible Image to be supplied.
5406
+
* See StackScript View ([GET /linode/stackscript/{stackscriptId}](/docs/api/stackscripts/#stackscript-view)) for compatible Images.
5407
+
* It is recommended to supply SSH keys for the root User using the `authorized_keys` field.
5408
+
* You may also supply a list of usernames via the `authorized_users` field.
5409
+
* These users must have an SSH Key associated with their Profiles first. See SSH Key Add ([POST /profile/sshkeys](/docs/api/profile/#ssh-key-add)) for more information.
5399
5410
operationId: addLinodeDisk
5400
5411
x-linode-cli-action: disk-create
5401
5412
security:
@@ -5409,7 +5420,10 @@ paths:
5409
5420
content:
5410
5421
application/json:
5411
5422
schema:
5412
-
$ref: '#/components/schemas/DiskRequest'
5423
+
required:
5424
+
- size
5425
+
allOf:
5426
+
- $ref: '#/components/schemas/DiskRequest'
5413
5427
responses:
5414
5428
'200':
5415
5429
description: Disk created.
@@ -16326,24 +16340,27 @@ components:
16326
16340
DiskRequest:
16327
16341
type: object
16328
16342
description: Disk object request.
16329
-
required:
16330
-
- size
16331
-
- label
16332
16343
properties:
16333
16344
size:
16334
-
$ref: '#/components/schemas/Disk/properties/size'
16345
+
x-linode-filterable: true
16346
+
type: integer
16347
+
description: |
16348
+
The size of the Disk in MB.
16349
+
16350
+
Images require a minimum size. Access the Image View ([GET /images/{imageID}](/docs/api/images/#image-view)) endpoint to view its size.
0 commit comments