-
Notifications
You must be signed in to change notification settings - Fork 1
/
api-docs.yaml
176 lines (175 loc) · 3.93 KB
/
api-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
openapi: 3.0.1
info:
title: OpenAPI definition
version: v0
servers:
- url: http://localhost:8080
description: Generated server url
paths:
/compute/virtualmachines:
get:
tags:
- cloud-cost-controller
operationId: listAllVirtualMachines
parameters:
- name: page
in: query
description: Zero-based page index (0..N)
required: false
schema:
minimum: 0
type: integer
default: 0
- name: size
in: query
description: The size of the page to be returned
required: false
schema:
minimum: 1
type: integer
default: 20
- name: sort
in: query
description: "Sorting criteria in the format: property(,asc|desc). Default\
\ sort order is ascending. Multiple sort criteria are supported."
required: false
schema:
type: array
items:
type: string
responses:
"200":
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PageVMCompute'
post:
tags:
- cloud-cost-controller
operationId: saveVMComputeDetails
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VMCompute'
required: true
responses:
"200":
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/VMCompute'
/compute/virtualmachines/{id}:
get:
tags:
- cloud-cost-controller
operationId: getVMComputeDetailsById
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: int64
responses:
"200":
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/VMCompute'
components:
schemas:
VMCompute:
type: object
properties:
name:
type: string
cloudVendor:
type: string
id:
type: integer
format: int64
type:
type: string
vcpus:
type: string
memory:
type: string
operatingSystem:
type: string
ip6support:
type: boolean
networkBandwidth:
type: string
family:
type: string
instanceStorage:
type: string
createdDate:
type: integer
format: int64
modifiedDate:
type: integer
format: int64
PageVMCompute:
type: object
properties:
totalPages:
type: integer
format: int32
totalElements:
type: integer
format: int64
numberOfElements:
type: integer
format: int32
pageable:
$ref: '#/components/schemas/PageableObject'
size:
type: integer
format: int32
content:
type: array
items:
$ref: '#/components/schemas/VMCompute'
sort:
$ref: '#/components/schemas/Sort'
first:
type: boolean
last:
type: boolean
number:
type: integer
format: int32
empty:
type: boolean
PageableObject:
type: object
properties:
paged:
type: boolean
unpaged:
type: boolean
pageNumber:
type: integer
format: int32
pageSize:
type: integer
format: int32
offset:
type: integer
format: int64
sort:
$ref: '#/components/schemas/Sort'
Sort:
type: object
properties:
sorted:
type: boolean
unsorted:
type: boolean
empty:
type: boolean