Skip to content

Commit 5e2c154

Browse files
authored
Merge pull request #2685 from SzySteve/docs/linode
Linode post/put/delete docs cleanup
2 parents b8fd231 + cadbc3f commit 5e2c154

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

docs/src/data/endpoints/linodes.yaml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ endpoints:
3131
description: >
3232
A region ID to provision
3333
this Linode in.
34-
type: string
34+
type: String
3535
value: us-east-1a
3636
type:
3737
description: A Linode type ID to use for this Linode.
38-
type: string
38+
type: String
39+
value: g5-standard-1
3940
label:
4041
optional: true
4142
description: The label to assign this Linode. Defaults to "linode".
@@ -51,7 +52,7 @@ endpoints:
5152
description: >
5253
The Distribution to deploy this Linode with. May not be included
5354
if 'backup_id' or 'image' is sent.
54-
type: string
55+
type: String
5556
root_pass:
5657
optional: unless source == "distro"
5758
description: >
@@ -309,14 +310,15 @@ endpoints:
309310
group: Disks
310311
type: Strange
311312
authenticated: true
312-
description: Resizes the disk.
313+
description: Resizes the disk. The Linode this disk is attached to must be shut down for resizing to take effect.
313314
methods:
314315
POST:
315316
oauth: linodes:modify
316317
dangerous: true
317318
params:
318319
size:
319320
description: The desired size of the disk in MB.
321+
value: 1024
320322
type: Integer
321323
examples:
322324
curl: |
@@ -341,6 +343,7 @@ endpoints:
341343
description: >
342344
New root password for the OS installed on this disk.
343345
type: String
346+
value: hunter2
344347
examples:
345348
curl: |
346349
curl -H "Content-Type: application/json" \
@@ -367,10 +370,12 @@ endpoints:
367370
Sets the name of the image shown in the base image list, defaults
368371
to the source disk label.
369372
type: String
373+
value: My gold master image
370374
description:
371375
optional: true
372376
description: An optional description of the created image
373377
type: String
378+
value: This is the image description, it's more descriptive than a label.
374379
examples:
375380
curl: |
376381
curl -H "Content-Type: application/json" \
@@ -417,7 +422,8 @@ endpoints:
417422
value: My config
418423
devices:
419424
description: >
420-
Disks attached to this Linode config.
425+
Devices that would be attached to a Linode when booted using this config.
426+
Devices can be either Disks or Volumes, but only one type per slot (a - h).
421427
type: devices
422428
comments:
423429
optional: true
@@ -684,18 +690,17 @@ endpoints:
684690
dangerous: false
685691
params:
686692
region:
687-
optional: true
688693
description: >
689694
A region ID to provision
690695
this Linode in. Required when cloning to a new Linode.
691-
type: string
696+
type: String
692697
value: us-east-1a
693698
type:
694-
optional: true
695699
description: >
696700
A Linode type ID to use for this
697701
Linode. Required when cloning to a new Linode.
698-
type: string
702+
type: String
703+
value: g5-standard-1
699704
linode_id:
700705
optional: true
701706
description: >
@@ -720,13 +725,13 @@ endpoints:
720725
optional: true
721726
description: >
722727
A list of disk ID's to include in the clone process. All disks attached to configs will be cloned from the source Linode if not provided.
723-
type: string
728+
type: String
724729
isArray: true
725730
configs:
726731
optional: true
727732
description: >
728733
A list of config ID's to include in the clone process. All configs will be cloned from the source Linode if not provided.
729-
type: string
734+
type: String
730735
isArray: true
731736
examples:
732737
curl: |
@@ -772,7 +777,7 @@ endpoints:
772777
type:
773778
description: >
774779
A Linode type to use for this Linode.
775-
type: string
780+
type: String
776781
examples:
777782
curl: |
778783
curl -H "Content-Type: application/json" \
@@ -915,8 +920,12 @@ endpoints:
915920
params:
916921
type:
917922
description: >
918-
An IP Address Type for this IP Address. Public IP's incur a monthly cost.
919-
type: string
923+
The type of IP Address this is, can be one of "public" or "private".
924+
Public IP Addresses, over and above the one included with each Linode,
925+
incur an additional monthly charge. If you need an additional Public IP Address
926+
you must request one - please open a ticket.
927+
type: String
928+
value: private
920929
examples:
921930
curl: |
922931
curl -H "Content-Type: application/json" \
@@ -933,7 +942,7 @@ endpoints:
933942
Sets IP Sharing for this Linode.
934943
params:
935944
ips:
936-
type: string
945+
type: String
937946
description: >
938947
A list of IP Addresses this Linode will share.
939948
examples:
@@ -1069,6 +1078,7 @@ endpoints:
10691078
Label of StackScript.
10701079
limit: 3-128 characters
10711080
type: String
1081+
value: Initial Label
10721082
description:
10731083
optional: true
10741084
description: >
@@ -1094,6 +1104,7 @@ endpoints:
10941104
description: >
10951105
The shell script to run on boot.
10961106
type: String
1107+
value: "#!/bin/bash"
10971108
examples:
10981109
curl: |
10991110
curl -H "Content-Type: application/json" \
@@ -1273,6 +1284,7 @@ endpoints:
12731284
description: >
12741285
A unique label to identify your new volume with.
12751286
type: String
1287+
value: a_fancy_new_volume
12761288
region:
12771289
description: >
12781290
Which region the new volume should be created in.
@@ -1349,6 +1361,7 @@ endpoints:
13491361
description: >
13501362
A unique label to identify your new volume with.
13511363
type: String
1364+
value: a_fancy_new_volume
13521365
region:
13531366
description: >
13541367
Which region the new volume should be created in.

docs/src/data/objects/device.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ prefix: device
44
schema:
55
disk_id:
66
type: Integer
7-
value: 123456
87
description: Null if a volume is assigned to this slot.
98
volume_id:
109
type: Integer

0 commit comments

Comments
 (0)