1
1
openapi: 3.0.1
2
2
info:
3
- version: 4.5 .0
3
+ version: 4.6 .0
4
4
title: Linode API
5
5
description: |
6
6
# Introduction
@@ -182,9 +182,7 @@ info:
182
182
183
183
```Shell
184
184
curl "https://api.linode.com/v4/linode/types" \
185
- -H 'X-Filter: { \
186
- "class": "standard"
187
- }'
185
+ -H 'X-Filter: { "class": "standard" }'
188
186
```
189
187
190
188
The filter object's keys are the keys of the object you're filtering,
@@ -193,11 +191,8 @@ info:
193
191
Types that offer one vcpu:
194
192
195
193
```Shell
196
- curl "https://api.linode.com/v4/linode/types" \
197
- -H 'X-Filter: { \
198
- "class": "standard",
199
- "vcpus": 1
200
- }'
194
+ curl "https://api.linode.com/v4/linode/types" \
195
+ -H 'X-Filter: { "class": "standard", "vcpus": 1 }'
201
196
```
202
197
203
198
In the above example, both filters are combined with an "and" operation.
@@ -206,12 +201,7 @@ info:
206
201
207
202
```Shell
208
203
curl "https://api.linode.com/v4/linode/types" \
209
- -H 'X-Filter: {
210
- "+or": [
211
- { "vcpus": 1 },
212
- { "class": "standard" }
213
- ]
214
- }'
204
+ -H 'X-Filter: { "+or": [ { "vcpus": 1 }, { "class": "standard" } ] }'
215
205
```
216
206
217
207
Each filter in the `+or` array is its own filter object, and all conditions
@@ -239,11 +229,7 @@ info:
239
229
240
230
```Shell
241
231
curl "https://api.linode.com/v4/linode/types" \
242
- -H 'X-Filter: {
243
- "memory": {
244
- "+gte": 61440
245
- }
246
- }'
232
+ -H 'X-Filter: { "memory": { "+gte": 61440 } }'
247
233
```
248
234
249
235
You can combine and nest operators to construct arbitrarily-complex queries.
@@ -253,34 +239,7 @@ info:
253
239
254
240
```Shell
255
241
curl "https://api.linode.com/v4/linode/types" \
256
- -H 'X-Filter: {
257
- "+or": [
258
- {
259
- "+or": [
260
- {
261
- "class": "standard"
262
- },
263
- {
264
- "class": "highmem"
265
- }
266
- ]
267
- },
268
- {
269
- "+and": [
270
- {
271
- "vcpus": {
272
- "+gte": 12
273
- }
274
- },
275
- {
276
- "vcpus": {
277
- "+lte": 20
278
- }
279
- }
280
- ]
281
- }
282
- ]
283
- }'
242
+ -H 'X-Filter: { "+or": [ { "+or": [ { "class": "standard" }, { "class": "highmem" } ] }, { "+and": [ { "vcpus": { "+gte": 12 } }, { "vcpus": { "+lte": 20 } } ] } ] }'
284
243
```
285
244
286
245
# CLI (Command Line Interface)
@@ -2271,6 +2230,7 @@ paths:
2271
2230
Imports a domain zone from a remote nameserver.
2272
2231
2273
2232
Your nameserver must allow zone transfers (AXFR) from the following IPs:
2233
+
2274
2234
- 96.126.114.97
2275
2235
- 96.126.114.98
2276
2236
- 2600:3c00::5e
@@ -4996,7 +4956,8 @@ paths:
4996
4956
4997
4957
**Note:** Next Generation Network (NGN) data centers do not support IPv6 `/116` pools or IP Failover.
4998
4958
If you have these features enabled on your Linode and attempt to migrate to an NGN data center,
4999
- the migration will not initiate. NGN data centers include Toronto and Mumbai.
4959
+ the migration will not initiate. If a Linode cannot be migrated because of an incompatibility,
4960
+ you will be prompted to select a different data center or contact support.
5000
4961
tags:
5001
4962
- Linode Instances
5002
4963
operationId: migrateLinodeInstance
@@ -7374,6 +7335,60 @@ paths:
7374
7335
- lang: CLI
7375
7336
source: >
7376
7337
linode-cli managed service-enable 9994
7338
+ /managed/stats:
7339
+ description: |
7340
+ A collection of managed stats.
7341
+ x-linode-cli-command: managed
7342
+ get:
7343
+ x-linode-grant: unrestricted only
7344
+ tags:
7345
+ - Managed
7346
+ summary: List Managed Stats
7347
+ description: |
7348
+ Returns a list of Managed Stats on your Account in the form of x and y data points.
7349
+ You can use these data points to plot your own graph visualizations. These stats
7350
+ reflect the last 24 hours of combined usage across all managed Linodes on your account
7351
+ giving you a high-level snapshot of data for the following:
7352
+
7353
+
7354
+ * cpu
7355
+ * disk
7356
+ * swap
7357
+ * network in
7358
+ * network out
7359
+ operationId: getManagedStats
7360
+ x-linode-cli-action: stats-list
7361
+ security:
7362
+ - personalAccessToken: []
7363
+ - oauth:
7364
+ - account:read_only
7365
+ responses:
7366
+ '200':
7367
+ description: A list of Managed Stats from the last 24 hours.
7368
+ content:
7369
+ application/json:
7370
+ schema:
7371
+ type: object
7372
+ properties:
7373
+ data:
7374
+ type: object
7375
+ oneOf:
7376
+ - x-linode-ref-name: "Stats Available"
7377
+ $ref: '#/components/schemas/StatsDataAvailable'
7378
+ - x-linode-ref-name: "Stats Unavailable"
7379
+ $ref: '#/components/schemas/StatsDataUnavailable'
7380
+ discriminator:
7381
+ propertyName: x-linode-ref-name
7382
+ default:
7383
+ $ref: '#/components/responses/ErrorResponse'
7384
+ x-code-samples:
7385
+ - lang: Shell
7386
+ source: >
7387
+ curl -H "Authorization: Bearer $TOKEN" \
7388
+ https://api.linode.com/v4/managed/stats
7389
+ - lang: CLI
7390
+ source: >
7391
+ linode-cli managed stats-list
7377
7392
/networking/ips:
7378
7393
description: >
7379
7394
A collection of IP Addresses on your Account. Excludes private addresses.
@@ -8916,7 +8931,7 @@ paths:
8916
8931
"label": "example-bucket",
8917
8932
"cluster": "us-east-1",
8918
8933
"cors_enabled": true,
8919
- "acl": "private",
8934
+ "acl": "private"
8920
8935
}' \
8921
8936
https://api.linode.com/v4beta/object-storage/buckets/
8922
8937
/object-storage/buckets/{clusterId}/{bucket}:
@@ -8999,18 +9014,6 @@ paths:
8999
9014
- personalAccessToken: []
9000
9015
- oauth:
9001
9016
- object_storage:read_write
9002
- parameters:
9003
- - name: force
9004
- in: query
9005
- required: false
9006
- description: >
9007
- If false, this operation will fail if the bucket is not empty. If true, this operation
9008
- will attempt to remove the bucket and its contents; very large buckets
9009
- may still return an error and require object deletion manually or through
9010
- object lifecycle management. See [the S3 API docs](https://docs.ceph.com/docs/mimic/radosgw/s3/bucketops/#delete-bucket) for details.
9011
- schema:
9012
- type: integer
9013
- default: false
9014
9017
responses:
9015
9018
'200':
9016
9019
description: Bucket deleted successfully.
@@ -13069,7 +13072,7 @@ components:
13069
13072
readOnly: true
13070
13073
description: |
13071
13074
Detailed information about the Event's secondary entity, which provides additional information
13072
- for events such as, but not limited to, `linode_boot`, `linode_create`, and `linode_clone` Event actions.
13075
+ for events such as, but not limited to, `linode_boot`, `linode_reboot`, ` linode_create`, and `linode_clone` Event actions.
13073
13076
x-linode-cli-display: 5
13074
13077
properties:
13075
13078
id:
@@ -15878,18 +15881,6 @@ components:
15878
15881
The hostname where this bucket can be accessed. This hostname
15879
15882
can be accessed through a browser if the bucket is made public.
15880
15883
example: example-bucket.us-east-1.linodeobjects.com
15881
- region:
15882
- type: string
15883
- description: The ID of the Region this bucket exists in.
15884
- example: us-east
15885
- size:
15886
- type: integer
15887
- description: The size of this bucket, in bytes.
15888
- example: 123
15889
- objects:
15890
- type: integer
15891
- description: The number of objects in this bucket.
15892
- example: 4
15893
15884
ObjectStorageObject:
15894
15885
type: object
15895
15886
description: >
@@ -16465,6 +16456,61 @@ components:
16465
16456
label: Enter the DB password
16466
16457
name: DB_PASSWORD
16467
16458
example: hunter2
16459
+ StatsDataAvailable:
16460
+ type: object
16461
+ description: >
16462
+ A collection of graph data returned for managed stats.
16463
+ properties:
16464
+ cpu:
16465
+ type: array
16466
+ description: CPU usage stats from the last 24 hours.
16467
+ items:
16468
+ $ref: '#/components/schemas/StatsData'
16469
+ disk:
16470
+ type: array
16471
+ description: Disk usage stats from the last 24 hours.
16472
+ items:
16473
+ $ref: '#/components/schemas/StatsData'
16474
+ swap:
16475
+ type: array
16476
+ description: Swap usage stats from the last 24 hours.
16477
+ items:
16478
+ $ref: '#/components/schemas/StatsData'
16479
+ net_in:
16480
+ type: array
16481
+ description: Inbound network traffic stats from the last 24 hours.
16482
+ items:
16483
+ $ref: '#/components/schemas/StatsData'
16484
+ net_out:
16485
+ type: array
16486
+ description: Outbound network traffic stats from the last 24 hours.
16487
+ items:
16488
+ $ref: '#/components/schemas/StatsData'
16489
+ StatsDataUnavailable:
16490
+ type: array
16491
+ readOnly: true
16492
+ description: >
16493
+ An array of error messages if managed stats are unavaliable.
16494
+ items:
16495
+ type: string
16496
+ example: Graphs are not yet available.
16497
+ StatsData:
16498
+ type: object
16499
+ description: >
16500
+ A stat data point.
16501
+ properties:
16502
+ x:
16503
+ type: integer
16504
+ readOnly: true
16505
+ description: >
16506
+ A stats graph data point.
16507
+ example: 11513761600000
16508
+ y:
16509
+ type: integer
16510
+ readOnly: true
16511
+ description: >
16512
+ A stats graph data point.
16513
+ example: 29.94
16468
16514
SupportTicket:
16469
16515
type: object
16470
16516
description: >
0 commit comments