-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.yml
More file actions
309 lines (307 loc) · 8.86 KB
/
common.yml
File metadata and controls
309 lines (307 loc) · 8.86 KB
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
parameters:
authorization:
name: Authorization
in: header
description: The Token from the LoginResponse.
required: true
schema:
type: string
example: "Bearer <base64 token>"
id:
name: id
in: path
description: ID of the object.
required: true
schema:
type: string
format: uuid
example: 12699e27-b584-464a-81ee-5b4784b6d425
query:
name: query
in: query
description: Query string to filter the result list. It's used for various fields depending on the object type.
schema:
type: string
range:
name: range
in: query
description: >-
'Range string to limit the result list. Format: -. 3-10 means he items between the (including) 3rd and the 10th
will be returned. Defaults to all objects.'
schema:
type: string
example: 0-10
orderBy:
name: orderBy
in: query
description: The field name to sort the result list. Supported fields vary from object to object. Defaults to certain field depending on the object type.
schema:
type: string
example: name
descending:
name: descending
in: query
description: >-
Whether the sorting is applied descending or ascending. Defaults to certain field depending on the object type.
schema:
type: string
filterBy:
name: filterBy
in: query
description: >-
Filters the result list by the given field and value. Supported fields vary from object to object.
The filters can be combined with each other as well as the generic query field.
The given value is checked for inclusion.
The representation of the dynamic query parameters is not correct at the moment. See the example for getting a better idea.
schema:
type: object
additionalProperties:
type: string
style: form
explode: true
allowEmptyValue: true
example: 'name=us-east&tags=aws'
distinguishedName:
name: distinguished-name
in: path
description: >-
Distinguished name of the user&devices which will be affected by the operation.
Format: 'CN=\<device ID\>,CN=\<username\>,OU=\<provider name\>'
required: true
schema:
type: string
example: 'CN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap'
definitions:
Error:
type: object
description: Generic HTTP error.
properties:
id:
type: string
description: Machine readable error code.
message:
type: string
description: Human readable error details.
ValidationError:
type: object
description: Http 422 error for object validation.
properties:
id:
type: string
description: Machine readable error code.
message:
type: string
description: Human readable error details.
errors:
type: array
description: List of fields with validation errors.
items:
type: object
properties:
field:
type: string
description: Name of the field that failed validation.
example: name
message:
type: string
description: Failure reason.
example: may not be null
BaseEntity:
type: object
required:
- id
- name
properties:
id:
type: string
format: uuid
description: ID of the object.
example: 4c07bc67-57ea-42dd-b702-c2d6c45419fc
name:
type: string
description: Name of the object.
example: object
notes:
type: string
description: Notes for the object. Used for documentation purposes.
example: This object has been created for test purposes.
created:
type: string
format: date-time
description: Create date.
readOnly: true
updated:
type: string
format: date-time
description: Last update date.
readOnly: true
tags:
type: array
description: Array of tags.
items:
type: string
example:
- developer
- api-created
ResultList:
type: object
properties:
query:
type: string
description: The query applied to the list.
range:
type: string
description: >-
'The range applied to the list. Format: -/. 3-5/8 means, out of 8 count (query affects the total), the items
between (including) the 3rd and the 5th are returned.'
example: 0-30/54
orderBy:
type: string
description: The field name used to sort the list.
example: name
descending:
type: boolean
description: Whether the sorting is applied descending or ascending.
filterBy:
type: array
description: The filters applied to the list.
items:
$ref: '#/definitions/FilterBy'
FilterBy:
type: object
properties:
name:
type: string
description: The field name the filter is applied to.
example: name
value:
type: string
description: The value used for comparison.
example: AWS
DeviceAndUser:
type: object
properties:
distinguishedName:
type: string
description: 'Distinguished name of a user&device combination. Format: "CN=,CN=,OU="'
example: CN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap
deviceId:
type: string
format: uuid
description: The device ID, same as the one in the Distinguished Name.
example: 4c07bc67-57ea-42dd-b702-c2d6c45419fc
username:
type: string
description: The username, same as the one in the Distinguished Name.
example: user
providerName:
type: string
description: The provider name of the user, same as the one in the Distinguished Name.
example: ldap
User:
properties:
userDistinguishedName:
type: string
description: 'Distinguished name of a user. Format: "CN=,OU="'
example: 'CN=user,OU=ldap'
username:
type: string
description: The username, same as the one in the user Distinguished Name.
example: user
providerName:
type: string
description: The provider name of the user, same as the one in the user Distinguished Name.
example: ldap
P12:
properties:
p12:
type: string
format: byte
description: P12 binary in Base64 format.
password:
type: string
description: Password for the p12 file.
default: ''
responses:
ChangeData:
description: Appliance change information.
content:
application/json:
schema:
type: object
description: Appliance Change information
required:
- id
- status
properties:
id:
type: string
description: Id for this change
result:
type: string
description: Result of the requested change
status:
type: string
description: Status of the requested change
details:
type: string
description: Description of the requested change
ChangeId:
description: Appliance accepted the request and it's enabling/disabling maintenance mode.
content:
appliance/json:
schema:
type: object
description: Appliance change id for the result of the maintenance mode
properties:
id:
type: string
description: Id for this change
JsonError:
description: JSON error. Check the JSON format.
content:
application/json:
schema:
$ref: '#/definitions/Error'
PaymentError:
description: Insufficient license.
content:
application/json:
schema:
$ref: '#/definitions/Error'
TokenError:
description: Token error. Login again.
content:
application/json:
schema:
$ref: '#/definitions/Error'
PermissionError:
description: Insufficient permissions to access this resource.
content:
application/json:
schema:
$ref: '#/definitions/Error'
NotFoundError:
description: The requested resource can not be found.
content:
application/json:
schema:
$ref: '#/definitions/Error'
ConflictError:
description: The submitted resource conflicts with another.
content:
application/json:
schema:
$ref: '#/definitions/Error'
ValidationError:
description: Request validation error. Check "errors" array for details.
content:
application/json:
schema:
$ref: '#/definitions/ValidationError'
UnexpectedError:
description: Unexpected server side error.
content:
application/json:
schema:
$ref: '#/definitions/Error'