Skip to content

Commit e217c05

Browse files
DorthuGitHub Enterprise
authored andcommitted
Merge branch 'development' into bugfix/add-missing-default-to-user-defined-field
2 parents 68c6139 + 111a218 commit e217c05

File tree

2 files changed

+52
-17
lines changed

2 files changed

+52
-17
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</style>
1919
</head>
2020
<body>
21-
<redoc spec-url="/openapi.yaml" expand-responses="200" hide-download-button path-in-middle-panel required-props-first></redoc>
21+
<redoc spec-url="/openapi.yaml" expand-responses="200" hide-download-button path-in-middle-panel required-props-first no-auto-auth></redoc>
2222
<script src="/redoc.standalone.js"> </script>
2323
</body>
2424
</html>

openapi.yaml

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ info:
2828
[View our Changelog](/changelog) to see release
2929
notes on all changes made to our API.
3030
31-
# Access
31+
# Access and Authentication
3232
3333
Some endpoints are publicly accessible without requiring authentication.
3434
All endpoints affecting your Account, however, require either a Personal
@@ -44,6 +44,12 @@ info:
4444
All scopes for the OAuth security model (defined below) apply to this
4545
security model as well.
4646
47+
### Authentication
48+
49+
| Security Scheme Type: | HTTP |
50+
|-----------------------|------|
51+
| **HTTP Authorization Scheme** | bearer |
52+
4753
## OAuth
4854
4955
The OAuth workflow is a three-step process to authenticate a User before an
@@ -91,10 +97,11 @@ info:
9197
Authorization: Bearer 03d084436a6c91fbafd5c4b20c82e5056a2e9ce1635920c30dc8d81dc7a6665c
9298
```
9399
94-
## Authentication Schema
100+
### Authentication
95101
96-
See our [Authentication Schema](/#section/Authentication) for
97-
information on scopes and authorization/token URLs.
102+
| Security Scheme Type: | Oauth2 |
103+
|-----------------------|--------|
104+
| **AuthorizationCode Oauth Flow** | **Authorization URL:** https://login.linode.com/oauth/authorize<br />**Token URL:** https://login.linode.com/oauth/token<br />**Scopes:**<br /><ul><li>`account:read_only` - Allows access to GET information about your Account.</li><li>`account:read_write` - Allows access to all endpoints related to your Account.</li><li>`domains:read_only` - Allows access to GET Domains on your Account.</li><li>`domains:read_write` - Allows access to all Domain endpoints.</li><li>`events:read_only` - Allows access to GET your Events.</li><li>`events:read_write` - Allows access to all endpoints related to your Events.</li><li>`images:read_only` - Allows access to GET your Images.</li><li>`images:read_write` - Allows access to all endpoints related to your Images.</li><li>`ips:read_only` - Allows access to GET your ips.</li><li>`ips:read_write` - Allows access to all endpoints related to your ips.</li><li>`linodes:read_only` - Allows access to GET Linodes on your Account.</li><li>`linodes:read_write` - Allow access to all endpoints related to your Linodes.</li><li>`longview:read_only` - Allows access to GET your Longview Clients.</li><li>`longview:read_write` - Allows access to all endpoints related to your Longview Clients.</li><li>`nodebalancers:read_only` - Allows access to GET NodeBalancers on your Account.</li><li>`nodebalancers:read_write` - Allows access to all NodeBalancer endpoints.</li><li>`stackscripts:read_only` - Allows access to GET your StackScripts.</li><li>`stackscripts:read_write` - Allows access to all endpoints related to your StackScripts.</li><li>`volumes:read_only` - Allows access to GET your Volumes.</li><li>`volumes:read_write` - Allows access to all endpoints related to your Volumes.</li></ul><br />|
98105
99106
# Requests
100107
@@ -2678,14 +2685,11 @@ paths:
26782685
content:
26792686
application/json:
26802687
schema:
2681-
type: object
26822688
required:
26832689
- type
26842690
- region
2685-
allOf:
2686-
- $ref: '#/components/schemas/LinodeRequest'
2687-
- $ref: '#/components/schemas/LinodeBase'
2688-
- properties:
2691+
type: object
2692+
properties:
26892693
backup_id:
26902694
type: integer
26912695
example: 1234
@@ -2715,13 +2719,13 @@ paths:
27152719
type:
27162720
type: string
27172721
description: >
2718-
The type of Linode to deploy.
2719-
readOnly: false
2722+
The [Linode Type](#operation/getLinodeTypes) of the Linode
2723+
you are creating.
27202724
region:
27212725
type: string
27222726
description: >
2723-
The Region to deploy this Linode in.
2724-
readOnly: false
2727+
The [Region](#operation/getRegions) where the Linode
2728+
will be located.
27252729
responses:
27262730
'200':
27272731
description: >
@@ -5013,7 +5017,12 @@ paths:
50135017
content:
50145018
application/json:
50155019
schema:
5016-
$ref: '#/components/schemas/StackScript'
5020+
required:
5021+
- script
5022+
- label
5023+
- images
5024+
allOf:
5025+
- $ref: '#/components/schemas/StackScript'
50175026
responses:
50185027
'200':
50195028
description: StackScript successfully created.
@@ -7099,6 +7108,25 @@ paths:
70997108
$ref: '#/components/schemas/NodeBalancer/properties/label'
71007109
client_conn_throttle:
71017110
$ref: '#/components/schemas/NodeBalancer/properties/client_conn_throttle'
7111+
configs:
7112+
type: array
7113+
description: >
7114+
The ports to configure this NodeBalancer with on creation.
7115+
Each config must have a unique port and at least one Node.
7116+
items:
7117+
allOf:
7118+
- $ref: '#/components/schemas/NodeBalancerConfig'
7119+
- type: object
7120+
properties:
7121+
nodes:
7122+
type: array
7123+
description: >
7124+
The NodeBalancer Nodes that serve this port. When
7125+
creating a NodeBalancer this way, at least one Node
7126+
is required per configured port.
7127+
items:
7128+
$ref: '#/components/schemas/NodeBalancerNode'
7129+
71027130
responses:
71037131
'200':
71047132
description: NodeBalancer created successfully.
@@ -8399,8 +8427,6 @@ paths:
83998427
content:
84008428
application/json:
84018429
schema:
8402-
required:
8403-
- label
84048430
properties:
84058431
scopes:
84068432
type: string
@@ -10874,6 +10900,7 @@ components:
1087410900
x-linode-cli-display: 1
1087510901
gateway:
1087610902
type: string
10903+
nullable: true
1087710904
format: ip
1087810905
description: >
1087910906
The default gateway for this address.
@@ -11264,6 +11291,7 @@ components:
1126411291
image:
1126511292
x-linode-filterable: true
1126611293
readOnly: true
11294+
nullable: true
1126711295
allOf:
1126811296
- $ref: '#/components/schemas/DiskRequest/properties/image'
1126911297
x-linode-cli-display: 6
@@ -11458,6 +11486,7 @@ components:
1145811486
properties:
1145911487
day:
1146011488
type: string
11489+
nullable: true
1146111490
description: |
1146211491
The day of the week that your Linode's weekly Backup is taken.
1146311492
If not set manually, a day will be chosen for you. Backups
@@ -11479,6 +11508,7 @@ components:
1147911508
- Saturday
1148011509
window:
1148111510
type: string
11511+
nullable: true
1148211512
description: |
1148311513
The window in which your backups will be taken, in UTC. A
1148411514
backups window is a two-hour span of time in which the backup
@@ -13308,6 +13338,7 @@ components:
1330813338
example: keys_only
1330913339
authorized_keys:
1331013340
type: array
13341+
nullable: true
1331113342
items:
1331213343
type: string
1331313344
format: ssh-key
@@ -13507,6 +13538,7 @@ components:
1350713538
closed:
1350813539
x-linode-filterable: true
1350913540
type: string
13541+
nullable: true
1351013542
format: date-time
1351113543
readOnly: true
1351213544
description: >
@@ -13527,6 +13559,7 @@ components:
1352713559
x-linode-cli-display: 5
1352813560
entity:
1352913561
type: object
13562+
nullable: true
1353013563
readOnly: true
1353113564
description: >
1353213565
The entity this Ticket was opened for.
@@ -13609,6 +13642,7 @@ components:
1360913642
example: '2015-06-04T16:07:03'
1361013643
updated_by:
1361113644
type: string
13645+
nullable: true
1361213646
readOnly: true
1361313647
description: >
1361413648
The User who last updated this Ticket.
@@ -13943,6 +13977,7 @@ components:
1394313977
x-linode-cli-display: 5
1394413978
linode_id:
1394513979
type: integer
13980+
nullable: true
1394613981
description: >
1394713982
If a Volume is attached to a specific Linode, the ID of that Linode
1394813983
will be displayed here.

0 commit comments

Comments
 (0)