@@ -12,6 +12,8 @@ servers:
12
12
paths :
13
13
/regions :
14
14
get :
15
+ tags :
16
+ - regions
15
17
description : |
16
18
List the regions available for Linode services. Not all services are
17
19
guaranteed to be available in all regions.
38
40
schema :
39
41
type : string
40
42
get :
43
+ tags :
44
+ - regions
41
45
description : |
42
46
Get information about a single Region.
43
47
operationId : getRegion
50
54
$ref : ' #/components/schemas/Region'
51
55
/linode/instances :
52
56
get :
57
+ tags :
58
+ - linode/instances
53
59
description : |
54
60
Manage Linodes on your account.
55
61
operationId : getLinodeInstaces
79
85
schema :
80
86
type : integer
81
87
get :
88
+ tags :
89
+ - ' linode/instances/{linodeId}'
82
90
description : Get a Linode
83
91
operationId : getLinodeInstance
84
92
security :
@@ -92,6 +100,31 @@ paths:
92
100
application/json :
93
101
schema :
94
102
$ref : ' #/components/schemas/Linode'
103
+ put :
104
+ tags :
105
+ - ' linode/instances/{linodeId}'
106
+ description : Update information about a Linode
107
+ operationId : putLinodeInstance
108
+ security :
109
+ - personalAccessToken : []
110
+ - oauth :
111
+ - ' linodes:modify'
112
+ requestBody :
113
+ description : The fields to modify
114
+ required : true
115
+ content :
116
+ application/json :
117
+ schema :
118
+ allOf :
119
+ - $ref : ' #/components/schemas/LinodeEditable'
120
+ responses :
121
+ ' 200 ' :
122
+ description : The updated Linode
123
+ content :
124
+ application/json :
125
+ schema :
126
+ allOf :
127
+ - $ref : ' #/components/schemas/Linode'
95
128
components :
96
129
securitySchemes :
97
130
personalAccessToken :
@@ -106,6 +139,7 @@ components:
106
139
tokenUrl : ' https://login.linode.com/oauth/token'
107
140
scopes :
108
141
' linodes:view ' : GET endpoints for Linodes
142
+ ' linodes:modify ' : PUT and action endpoints for Linodes
109
143
schemas :
110
144
PaginationEnvelope :
111
145
required :
@@ -123,30 +157,53 @@ components:
123
157
results :
124
158
type : integer
125
159
Region :
126
- required :
127
- - id
128
- - country
129
160
properties :
130
161
id :
131
162
type : string
132
163
country :
133
164
type : string
134
- Linode :
135
- required :
136
- - id
137
- - label
138
- - group
165
+ LinodeEditable :
139
166
properties :
140
- id :
141
- type : integer
142
- description : This Linode's ID.
143
167
label :
144
168
type : string
145
169
description : This Linode's unique label.
146
170
group :
147
171
type : string
148
172
description : |
149
- The group thie Linode is in. This is for display purposes only.
173
+ The group this Linode is in. This is for display purposes only.
174
+ alerts :
175
+ type : object
176
+ properties :
177
+ cpu :
178
+ type : integer
179
+ description : >
180
+ The thershold of cpu usage at which we will alert you. If set
181
+ to 0, this check
182
+
183
+ is disabled.
184
+ network_in :
185
+ type : integer
186
+ description : |
187
+ TODO
188
+ network_out :
189
+ type : integer
190
+ description : |
191
+ TODO
192
+ transfer_quota :
193
+ type : integer
194
+ description : |
195
+ TODO
196
+ io :
197
+ type : integer
198
+ description : |
199
+ TODO
200
+ Linode :
201
+ allOf :
202
+ - $ref : ' #/components/schemas/LinodeEditable'
203
+ properties :
204
+ id :
205
+ type : integer
206
+ description : This Linode's ID.
150
207
status :
151
208
type : string
152
209
description : |
@@ -160,3 +217,62 @@ components:
160
217
enum :
161
218
- kvm
162
219
- xen
220
+ created :
221
+ type : string
222
+ format : date-time
223
+ description : When this Linode was created.
224
+ updated :
225
+ type : string
226
+ format : date-time
227
+ description : When this Linode was last updated.
228
+ type :
229
+ type : string
230
+ description : The type of Linode this is.
231
+ ipv4 :
232
+ type : array
233
+ format : string
234
+ description : This Lindoe's IPv4 Addresses.
235
+ ipv6 :
236
+ type : array
237
+ format : string
238
+ description : This Linode's IPv6 Addresses.
239
+ image :
240
+ type : string
241
+ description : ' The Image that was deployed to this Linode, or null.'
242
+ region :
243
+ type : string
244
+ description : The region this Linode is in.
245
+ specs :
246
+ type : object
247
+ properties :
248
+ disk :
249
+ type : integer
250
+ description : ' The amount of storage space this Linode has access to, in GB.'
251
+ memory :
252
+ type : integer
253
+ description : ' The amount of RAM this Linode has access to, in MB.'
254
+ vcpus :
255
+ type : integer
256
+ description : The number of vcpus this Linode has access to.
257
+ transfer :
258
+ type : integer
259
+ description : The amount of transfer this Linode is allotted.
260
+ backups :
261
+ type : object
262
+ properties :
263
+ enabled :
264
+ type : boolean
265
+ description : >
266
+ If this Linode has our backup service enabled. To enable
267
+ backups, see
268
+
269
+ /linode/instances/{linodeId}/backups/enable
270
+ schedule :
271
+ type : object
272
+ properties :
273
+ day :
274
+ type : string
275
+ description : TODO
276
+ window :
277
+ type : string
278
+ description : TODO
0 commit comments