File tree Expand file tree Collapse file tree 1 file changed +48
-2
lines changed Expand file tree Collapse file tree 1 file changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,28 @@ paths:
48
48
application/json :
49
49
schema :
50
50
$ref : ' #/components/schemas/Region'
51
+ /linode/instances :
52
+ get :
53
+ description : |
54
+ Manage Linodes on your account.
55
+ operationId : getLinodeInstaces
56
+ security :
57
+ - personalAccessToken : []
58
+ - oauth :
59
+ - ' linodes:view'
60
+ responses :
61
+ ' 200 ' :
62
+ description : Return a list of all Linodes on your account.
63
+ content :
64
+ application/json :
65
+ schema :
66
+ allOf :
67
+ - $ref : ' #/components/schemas/PaginationEnvelope'
68
+ properties :
69
+ data :
70
+ type : array
71
+ items :
72
+ $ref : ' #/components/schemas/Linode'
51
73
components :
52
74
securitySchemes :
53
75
personalAccessToken :
@@ -57,8 +79,9 @@ components:
57
79
oauth :
58
80
type : oauth2
59
81
flows :
60
- implicit :
61
- authorizationUrl : ' https://login.linode.com/oauth/authoirze'
82
+ authorizationCode :
83
+ authorizationUrl : ' https://login.linode.com/oauth/authorize'
84
+ tokenUrl : ' https://login.linode.com/oauth/token'
62
85
scopes :
63
86
' linodes:view ' : GET endpoints for Linodes
64
87
schemas :
@@ -86,3 +109,26 @@ components:
86
109
type : string
87
110
country :
88
111
type : string
112
+ Linode :
113
+ required :
114
+ - id
115
+ - label
116
+ - group
117
+ properties :
118
+ id :
119
+ type : integer
120
+ description : This Linode's ID.
121
+ label :
122
+ type : string
123
+ description : This Linode's unique label.
124
+ group :
125
+ type : string
126
+ description : |
127
+ The group thie Linode is in. This is for display purposes only.
128
+ status :
129
+ type : string
130
+ description : |
131
+ A breif description of this Linode's current state.
132
+ enum :
133
+ - running
134
+ - offline
You can’t perform that action at this time.
0 commit comments