Skip to content

Commit db59774

Browse files
Merge pull request #140 from linode/release-4.6.0
Release 4.6.0
2 parents 395e05c + e2f04d5 commit db59774

File tree

1 file changed

+121
-75
lines changed

1 file changed

+121
-75
lines changed

openapi.yaml

Lines changed: 121 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.1
22
info:
3-
version: 4.5.0
3+
version: 4.6.0
44
title: Linode API
55
description: |
66
# Introduction
@@ -182,9 +182,7 @@ info:
182182

183183
```Shell
184184
curl "https://api.linode.com/v4/linode/types" \
185-
-H 'X-Filter: { \
186-
"class": "standard"
187-
}'
185+
-H 'X-Filter: { "class": "standard" }'
188186
```
189187

190188
The filter object's keys are the keys of the object you're filtering,
@@ -193,11 +191,8 @@ info:
193191
Types that offer one vcpu:
194192

195193
```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 }'
201196
```
202197

203198
In the above example, both filters are combined with an "and" operation.
@@ -206,12 +201,7 @@ info:
206201

207202
```Shell
208203
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" } ] }'
215205
```
216206

217207
Each filter in the `+or` array is its own filter object, and all conditions
@@ -239,11 +229,7 @@ info:
239229

240230
```Shell
241231
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 } }'
247233
```
248234

249235
You can combine and nest operators to construct arbitrarily-complex queries.
@@ -253,34 +239,7 @@ info:
253239

254240
```Shell
255241
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 } } ] } ] }'
284243
```
285244

286245
# CLI (Command Line Interface)
@@ -2271,6 +2230,7 @@ paths:
22712230
Imports a domain zone from a remote nameserver.
22722231

22732232
Your nameserver must allow zone transfers (AXFR) from the following IPs:
2233+
22742234
- 96.126.114.97
22752235
- 96.126.114.98
22762236
- 2600:3c00::5e
@@ -4996,7 +4956,8 @@ paths:
49964956

49974957
**Note:** Next Generation Network (NGN) data centers do not support IPv6 `/116` pools or IP Failover.
49984958
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.
50004961
tags:
50014962
- Linode Instances
50024963
operationId: migrateLinodeInstance
@@ -7374,6 +7335,60 @@ paths:
73747335
- lang: CLI
73757336
source: >
73767337
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
73777392
/networking/ips:
73787393
description: >
73797394
A collection of IP Addresses on your Account. Excludes private addresses.
@@ -8916,7 +8931,7 @@ paths:
89168931
"label": "example-bucket",
89178932
"cluster": "us-east-1",
89188933
"cors_enabled": true,
8919-
"acl": "private",
8934+
"acl": "private"
89208935
}' \
89218936
https://api.linode.com/v4beta/object-storage/buckets/
89228937
/object-storage/buckets/{clusterId}/{bucket}:
@@ -8999,18 +9014,6 @@ paths:
89999014
- personalAccessToken: []
90009015
- oauth:
90019016
- 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
90149017
responses:
90159018
'200':
90169019
description: Bucket deleted successfully.
@@ -13069,7 +13072,7 @@ components:
1306913072
readOnly: true
1307013073
description: |
1307113074
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.
1307313076
x-linode-cli-display: 5
1307413077
properties:
1307513078
id:
@@ -15878,18 +15881,6 @@ components:
1587815881
The hostname where this bucket can be accessed. This hostname
1587915882
can be accessed through a browser if the bucket is made public.
1588015883
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
1589315884
ObjectStorageObject:
1589415885
type: object
1589515886
description: >
@@ -16465,6 +16456,61 @@ components:
1646516456
label: Enter the DB password
1646616457
name: DB_PASSWORD
1646716458
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
1646816514
SupportTicket:
1646916515
type: object
1647016516
description: >

0 commit comments

Comments
 (0)