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
+97-22Lines changed: 97 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
openapi: 3.0.1
2
2
info:
3
-
version: 4.136.0
3
+
version: 4.137.0
4
4
5
5
title: Linode API
6
6
description: |
@@ -341,39 +341,54 @@ info:
341
341
342
342
## Rate Limiting
343
343
344
-
With the Linode API, you can make up to 1,600 general API requests every two minutes per user as
345
-
determined by IP address or by OAuth token. Additionally, there are endpoint specific limits defined below.
344
+
Rate limits on API requests help maintain the health and stability of the Linode API. Accordingly, every endpoint of the Linode API applies a rate limit on a per user basis as determined by OAuth token for authenticated requests or IP address for public endpoints.
345
+
346
+
Each rate limit consists of a total number of requests and a time window. For example, if an endpoint has a rate limit of 800 requests per minute, then up to 800 requests over a one minute window are permitted. Subsequent requests to an endpoint after hitting a rate limit return a 429 error. You can successfully remake requests to that endpoint after the rate limit window resets.
347
+
348
+
### Linode APIv4 Rate Limits
349
+
350
+
With the Linode API, you can generally make up to 1,600 general API requests every two minutes. Additionally, all endpoints have a rate limit of 800 requests per minute unless otherwise specified below.
346
351
347
352
**Note:** There may be rate limiting applied at other levels outside of the API, for example, at the load balancer.
348
353
349
-
Creating Linodes has a dedicated limit of 10 requests per 30 seconds per user.
350
-
That endpoint is:
354
+
Creating Linodes has a dedicated rate limit of 10 requests per 30 seconds. That endpoint is:
Opening Support Tickets has a dedicated limit of 2 requests per minute per user.
368
-
That endpoint is:
369
+
Opening Support Tickets has a dedicated rate limit of 2 requests per minute. That endpoint is:
369
370
370
371
* [Open Support Ticket](/docs/api/support/#support-ticket-open)
371
372
372
-
Accepting Service Transfers has a dedicated limit of 2 requests per minute per user.
373
-
That endpoint is:
373
+
Accepting Service Transfers has a dedicated rate limit of 2 requests per minute. That endpoint is:
374
374
375
375
* [Service Transfer Accept](/docs/api/account/#service-transfer-accept)
376
376
377
+
### Rate Limit HTTP Response Headers
378
+
379
+
The Linode API includes the following HTTP response headers which are designed to help you avoid hitting rate limits that might disrupt your applications:
380
+
381
+
* **X-RateLimit-Limit**: The maximum number of permitted requests during the rate limit window for this endpoint.
382
+
* **X-RateLimit-Remaining**: The remaining number of permitted requests in the current rate limit window.
383
+
* **X-RateLimit-Reset**: The time when the current rate limit window rests in UTC epoch seconds.
384
+
* **Retry-After**: The remaining time in seconds until the current rate limit window resets.
385
+
386
+
There are many ways to access header information for your requests, depending on how you are accessing the Linode API. For example, to view HTTP response headers when making requests with `curl`, use the `-i` or `--include` option as follows:
387
+
388
+
```Shell
389
+
curl -i https://api.linode.com/v4/regions
390
+
```
391
+
377
392
## CLI (Command Line Interface)
378
393
379
394
The <a href="https://github.com/linode/linode-cli" target="_top">Linode CLI</a> allows you to easily
@@ -3218,6 +3233,7 @@ paths:
3218
3233
- $ref: '#/components/parameters/pageSize'
3219
3234
description: |
3220
3235
Display all accessible Managed MongoDB Databases.
3236
+
3221
3237
**Note**: New MongoDB Databases cannot currently be created.
3222
3238
security:
3223
3239
- personalAccessToken: []
@@ -3361,6 +3377,7 @@ paths:
3361
3377
x-linode-grant: read_only
3362
3378
description: |
3363
3379
Display information for a single, accessible Managed MongoDB Database.
3380
+
3364
3381
**Note**: New MongoDB Databases cannot currently be created.
3365
3382
security:
3366
3383
- personalAccessToken: []
@@ -3395,9 +3412,13 @@ paths:
3395
3412
x-linode-grant: read_write
3396
3413
description: |
3397
3414
Remove a Managed MongoDB Database from your Account.
3415
+
3398
3416
Requires `read_write` access to the Database.
3417
+
3399
3418
The Database must have an `active`, `failed`, or `degraded` status to perform this command.
3419
+
3400
3420
Only unrestricted Users can access this command, and have access regardless of the acting token's OAuth scopes.
3421
+
3401
3422
**Note**: New MongoDB Databases cannot currently be created.
3402
3423
security:
3403
3424
- personalAccessToken: []
@@ -3433,15 +3454,24 @@ paths:
3433
3454
x-linode-grant: read_write
3434
3455
description: |
3435
3456
Update a Managed MongoDB Database.
3457
+
3436
3458
Requires `read_write` access to the Database.
3459
+
3437
3460
The Database must have an `active` status to perform this command.
3461
+
3438
3462
Updating addresses in the `allow_list` overwrites any existing addresses.
3463
+
3439
3464
* IP addresses on this list can access the Managed Database. All other sources are blocked.
3465
+
3440
3466
* Entering an empty array (`[]`) blocks all connections (both public and private) to the Managed Database.
3467
+
3441
3468
* **Note**: Updates to the `allow_list` may take a short period of time to complete, making this command inappropriate for rapid successive updates to this property.
3442
3469
All Managed Databases include automatic patch updates, which apply security patches and updates to the underlying operating system of the Managed MongoDB Database. The maintenance window for these updates is configured with the Managed Database's `updates` property.
3470
+
3443
3471
* If your database cluster is configured with a single node, you will experience downtime during this maintenance window when any updates occur. It's recommended that you adjust this window to match a time that will be the least disruptive for your application and users. You may also want to consider upgrading to a high availability plan to avoid any downtime due to maintenance.
3472
+
3444
3473
* **The database software is not updated automatically.** To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.
3474
+
3445
3475
**Note**: New MongoDB Databases cannot currently be created.
3446
3476
security:
3447
3477
- personalAccessToken: []
@@ -3526,9 +3556,13 @@ paths:
3526
3556
- $ref: '#/components/parameters/pageSize'
3527
3557
description: |
3528
3558
Display all backups for an accessible Managed MongoDB Database.
3559
+
3529
3560
The Database must not be provisioning to perform this command.
3561
+
3530
3562
Database `auto` type backups are created every 24 hours at 0:00 UTC. Each `auto` backup is retained for 7 days.
3563
+
3531
3564
Database `snapshot` type backups are created by accessing the **Managed MongoDB Database Backup Snapshot Create** ([POST /databases/mongodb/instances/{instanceId}/backups](/docs/api/databases/#managed-mongodb-database-backup-snapshot-create)) command.
3565
+
3532
3566
**Note**: New MongoDB Databases cannot currently be created.
3533
3567
security:
3534
3568
- personalAccessToken: []
@@ -3570,9 +3604,13 @@ paths:
3570
3604
x-linode-grant: read_write
3571
3605
description: |
3572
3606
Creates a snapshot backup of a Managed MongoDB Database.
3607
+
3573
3608
Requires `read_write` access to the Database.
3609
+
3574
3610
Backups generated by this command have the type `snapshot`. Snapshot backups may take several minutes to complete, after which they will be accessible to view or restore.
3611
+
3575
3612
The Database must have an `active` status to perform this command.
3613
+
3576
3614
**Note**: New MongoDB Databases cannot currently be created.
3577
3615
security:
3578
3616
- personalAccessToken: []
@@ -3657,7 +3695,9 @@ paths:
3657
3695
x-linode-grant: read_only
3658
3696
description: |
3659
3697
Display information for a single backup for an accessible Managed MongoDB Database.
3698
+
3660
3699
The Database must not be provisioning to perform this command.
3700
+
3661
3701
**Note**: New MongoDB Databases cannot currently be created.
3662
3702
security:
3663
3703
- personalAccessToken: []
@@ -3692,8 +3732,11 @@ paths:
3692
3732
x-linode-grant: unrestricted only
3693
3733
description: |
3694
3734
Delete a single backup for an accessible Managed MongoDB Database.
3735
+
3695
3736
Requires `read_write` access to the Database.
3737
+
3696
3738
The Database must not be provisioning to perform this command.
3739
+
3697
3740
**Note**: New MongoDB Databases cannot currently be created.
3698
3741
security:
3699
3742
- personalAccessToken: []
@@ -3744,10 +3787,15 @@ paths:
3744
3787
x-linode-grant: read_write
3745
3788
description: |
3746
3789
Restore a backup to a Managed MongoDB Database on your Account.
3790
+
3747
3791
Requires `read_write` access to the Database.
3792
+
3748
3793
The Database must have an `active` status to perform this command.
3794
+
3749
3795
**Note**: Restoring from a backup will erase all existing data on the database instance and replace it with backup data.
3796
+
3750
3797
**Note**: Currently, restoring a backup after resetting Managed Database credentials results in a failed cluster. Please contact Customer Support if this occurs.
3798
+
3751
3799
**Note**: New MongoDB Databases cannot currently be created.
3752
3800
security:
3753
3801
- personalAccessToken: []
@@ -3791,7 +3839,9 @@ paths:
3791
3839
x-linode-grant: read_only
3792
3840
description: |
3793
3841
Display the root username and password for an accessible Managed MongoDB Database.
3842
+
3794
3843
The Database must have an `active` status to perform this command.
3844
+
3795
3845
**Note**: New MongoDB Databases cannot currently be created.
3796
3846
security:
3797
3847
- personalAccessToken: []
@@ -3835,10 +3885,15 @@ paths:
3835
3885
x-linode-grant: read_write
3836
3886
description: |
3837
3887
Reset the root password for a Managed MongoDB Database.
3888
+
3838
3889
Requires `read_write` access to the Database.
3890
+
3839
3891
A new root password is randomly generated and accessible with the **Managed MongoDB Database Credentials View** ([GET /databases/mongodb/instances/{instanceId}/credentials](/docs/api/databases/#managed-mongodb-database-credentials-view)) command.
3892
+
3840
3893
Only unrestricted Users can access this command, and have access regardless of the acting token's OAuth scopes.
3894
+
3841
3895
**Note**: Note that it may take several seconds for credentials to reset.
3896
+
3842
3897
**Note**: New MongoDB Databases cannot currently be created.
3843
3898
security:
3844
3899
- personalAccessToken: []
@@ -3882,7 +3937,9 @@ paths:
3882
3937
x-linode-grant: read_only
3883
3938
description: |
3884
3939
Display the SSL CA certificate for an accessible Managed MongoDB Database.
3940
+
3885
3941
The Database must have an `active` status to perform this command.
3942
+
3886
3943
**Note**: New MongoDB Databases cannot currently be created.
3887
3944
security:
3888
3945
- personalAccessToken: []
@@ -3927,10 +3984,15 @@ paths:
3927
3984
description: |
3928
3985
Apply security patches and updates to the underlying operating system of the Managed MongoDB Database. This function runs during regular maintenance windows, which are configurable with the **Managed MongoDB Database Update** ([PUT /databases/mongodb/instances/{instanceId}](/docs/api/databases/#managed-mongodb-database-update)) command.
3929
3986
Requires `read_write` access to the Database.
3987
+
3930
3988
The Database must have an `active` status to perform this command.
3931
-
**Note**
3989
+
3990
+
**Note**:
3991
+
3932
3992
* If your database cluster is configured with a single node, you will experience downtime during this maintenance. Consider upgrading to a high availability plan to avoid any downtime due to maintenance.
3993
+
3933
3994
* **The database software is not updated automatically.** To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.
3995
+
3934
3996
**Note**: New MongoDB Databases cannot currently be created.
3935
3997
security:
3936
3998
- personalAccessToken: []
@@ -20645,18 +20707,17 @@ components:
20645
20707
type: string
20646
20708
format: ip
20647
20709
description: >
20648
-
The IP addresses representing the master DNS for this Domain. At least one value is
20649
-
required for `type` slave Domains.
20710
+
The IP addresses representing the master DNS for this Domain. At least one value is required for `type` slave Domains. The total combined length of all data within this array cannot exceed 1000 characters.
20650
20711
example: []
20651
20712
axfr_ips:
20652
20713
type: array
20653
20714
items:
20654
20715
type: string
20655
20716
format: ip
20656
-
description: >
20657
-
The list of IPs that may perform a zone transfer for this Domain.
20658
-
This is potentially dangerous, and should be set to an empty list
20659
-
unless you intend to use it.
20717
+
description: |
20718
+
The list of IPs that may perform a zone transfer for this Domain. The total combined length of all data within this array cannot exceed 1000 characters.
20719
+
20720
+
**Note**: This is potentially dangerous, and should be set to an empty list unless you intend to use it.
20660
20721
example: []
20661
20722
expire_sec:
20662
20723
type: integer
@@ -24237,6 +24298,7 @@ components:
24237
24298
type: integer
24238
24299
minimum: 1
24239
24300
maximum: 65535
24301
+
default: 80
24240
24302
description: >
24241
24303
The port this Config is for. These values must be unique across configs
24242
24304
on a single NodeBalancer (you can't have two configs for port 80, for
@@ -24252,6 +24314,7 @@ components:
24252
24314
- http
24253
24315
- https
24254
24316
- tcp
24317
+
default: http
24255
24318
description: >
24256
24319
The protocol this port is configured to serve.
24257
24320
@@ -24266,6 +24329,7 @@ components:
24266
24329
- roundrobin
24267
24330
- leastconn
24268
24331
- source
24332
+
default: roundrobin
24269
24333
description: >
24270
24334
What algorithm this NodeBalancer should use for routing traffic to backends.
24271
24335
example: roundrobin
@@ -24276,6 +24340,7 @@ components:
24276
24340
- none
24277
24341
- table
24278
24342
- http_cookie
24343
+
default: none
24279
24344
description: >
24280
24345
Controls how session stickiness is handled on this port.
24281
24346
@@ -24295,6 +24360,7 @@ components:
24295
24360
- connection
24296
24361
- http
24297
24362
- http_body
24363
+
default: none
24298
24364
description: >
24299
24365
The type of check to perform against backends to ensure they are serving
24300
24366
requests. This is used to determine if backends are up or down.
@@ -24308,20 +24374,27 @@ components:
24308
24374
example: http_body
24309
24375
check_interval:
24310
24376
type: integer
24311
-
description: >
24377
+
description: |
24312
24378
How often, in seconds, to check that backends are up and serving requests.
24379
+
24380
+
Must be greater than `check_timeout`.
24313
24381
example: 90
24382
+
default: 31
24314
24383
check_timeout:
24315
24384
type: integer
24316
24385
minimum: 1
24317
24386
maximum: 30
24318
-
description: >
24387
+
default: 30
24388
+
description: |
24319
24389
How long, in seconds, to wait for a check attempt before considering it failed.
24390
+
24391
+
Must be less than `check_interval`.
24320
24392
example: 10
24321
24393
check_attempts:
24322
24394
type: integer
24323
24395
minimum: 1
24324
24396
maximum: 30
24397
+
default: 3
24325
24398
description: >
24326
24399
How many times to attempt a check before considering a backend to be down.
24327
24400
example: 3
@@ -24341,6 +24414,7 @@ components:
24341
24414
example: it works
24342
24415
check_passive:
24343
24416
type: boolean
24417
+
default: true
24344
24418
description: >
24345
24419
If true, any response from this backend with a `5xx` status code will be
24346
24420
enough for it to be considered unhealthy and taken out of rotation.
@@ -24372,6 +24446,7 @@ components:
24372
24446
enum:
24373
24447
- recommended
24374
24448
- legacy
24449
+
default: recommended
24375
24450
description: >
24376
24451
What ciphers to use for SSL connections served by this NodeBalancer.
0 commit comments