Skip to content

Commit 20ebb06

Browse files
committed
Started on GET linode/instances/{linodeId}
1 parent 1f0b19f commit 20ebb06

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

swagger.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,28 @@ paths:
7070
type: array
7171
items:
7272
$ref: '#/components/schemas/Linode'
73+
'/linode/instances/{linodeId}':
74+
parameters:
75+
- name: linodeId
76+
in: path
77+
description: ID of the Linode to look up
78+
required: true
79+
schema:
80+
type: integer
81+
get:
82+
description: Get a Linode
83+
operationId: getLinodeInstance
84+
security:
85+
- personalAccessToken: []
86+
- oauth:
87+
- 'linodes:view'
88+
responses:
89+
'200':
90+
description: Returns a single Linode
91+
content:
92+
application/json:
93+
schema:
94+
$ref: '#/components/schemas/Linode'
7395
components:
7496
securitySchemes:
7597
personalAccessToken:
@@ -128,7 +150,13 @@ components:
128150
status:
129151
type: string
130152
description: |
131-
A breif description of this Linode's current state.
153+
A brief description of this Linode's current state.
132154
enum:
133155
- running
134156
- offline
157+
hypervisor:
158+
type: string
159+
description: The hypervisor this Linode is running under.
160+
enum:
161+
- kvm
162+
- xen

0 commit comments

Comments
 (0)