-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnac1.2_swagger_custom.yml
273 lines (270 loc) · 6.79 KB
/
dnac1.2_swagger_custom.yml
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
paths:
/api/v2/ippool:
post:
summary: Adds an IP pool to DNAC
description: Creates an IP Pool.
parameters:
- name: "ippool"
in: "body"
description: "IP pool object"
required: true
schema:
$ref: "#/definitions/Ippool"
responses:
200:
description: Create an IP Pool
schema:
type: object
get:
summary: Fetches a list of configured IP Pools
description: Fetches all IP Pools.
responses:
200:
description: Fetches all IP Pools.
schema:
type: object
/api/v2/ippool/{poolId}:
delete:
summary: Deletes an IP pool to DNAC
description: Deletes an IP Pool.
parameters:
- in: path
name: poolId
required: true
type: string
description: UID of IP Pool to delete
responses:
204:
description: IP Pool deleted
schema:
type: object
/api/v1/group:
get:
summary: Returns the Site groups
description: Returns the Site groups.
parameters:
- description: groupName (Optional)
in: query
name: groupName
required: false
type: string
- description: groupType (Optional)
in: query
name: groupType
required: false
type: string
- description: field (Optional)
in: query
name: field
required: false
type: string
responses:
'200':
description: The request was successful. The result is contained in the
response body.
schema:
$ref: '#/definitions/response'
/api/v1/group{groupId}:
delete:
summary: Deletes a group from DNAC
description: Deletes a group from DNAC
parameters:
- in: path
name: groupId
required: true
type: string
description: UID of group to delete
responses:
204:
description: Group deleted
schema:
type: object
/api/v1/group/count:
get:
summary: Returns the Site groups
description: Returns the Site groups.
parameters:
- description: groupName (Optional)
in: query
name: groupType
required: false
type: string
responses:
'200':
description: The request was successful. The result is contained in the
response body.
schema:
$ref: '#/definitions/response'
/api/system/v1/maglev/backup/remote/settings:
put:
summary: Updates Backup Server details
description: Updates the remote backup server details
parameters:
- name: "BackupRemote"
in: "body"
description: "Bacup Remote Detais"
required: true
schema:
$ref: "#/definitions/BackupRemote"
responses:
200:
description: Success
schema:
type: object
get:
summary: Configured Backup Destination
description: Fetches the configured backup destination
responses:
200:
description: Success
schema:
$ref: "#/definitions/BackupRemote"
/api/system/v1/maglev/backup:
post:
summary: Creates a new Backup Point
description: Initiates a new backup job
parameters:
- name: "Backup"
in: "body"
description: "Description of Backup point"
required: true
schema:
$ref: "#/definitions/Backup"
responses:
200:
description: Success
schema:
type: object
get:
summary: Configured Backup Destination
description: Fetches the configured backup destination
responses:
200:
description: Success
schema:
$ref: '#/definitions/BackupDetailResponse'
/api/system/v1/maglev/backup/progress:
get:
summary: Backup Progress
description: Fetches the backup progress
responses:
200:
description: Success
schema:
type: object
/api/system/v1/maglev/backup/history:
get:
summary: Backup History
description: Fetches the backup history
responses:
200:
description: Success
schema:
type: object
/api/system/v1/maglev/restore/{BackupId}:
post:
summary: Initiate Restore
description: Initiate Restore of given BackupId
parameters:
- in: path
name: BackupId
required: true
type: string
description: UUID of Backup to restore
responses:
200:
description: Returns a version and response Id
schema:
type: object
/api/system/v1/maglev/backup/{BackupId}:
delete:
summary: Delete a restore point
description: Delete the restore point with given BackupId
parameters:
- in: path
name: BackupId
required: true
type: string
description: UUID of Backup to restore
responses:
200:
description: Returns a version and response Id
schema:
type: object
definitions:
Ippool:
type: object
required:
- ipPoolName
- ipPoolCidr
- gateways
properties:
ipPoolName:
type: string
ipPoolCidr:
type: string
gateways:
type: array
items:
type: string
minItems: 1
dhcpServerIps:
type: string
dnsServerIps:
type: string
overlapping:
type: string
response:
type: object
BackupRemote:
properties:
response:
items:
type: object
required:
- remote_server_ip
- remote_server_dir
- remote_server_port
- remote_server_passphrase
- remote_server_username
- remote_server_password
properties:
remote_server_ip:
type: string
remote_server_dir:
type: string
remote_server_port:
type: string
remote_server_passphrase:
type: string
remote_server_username:
type: string
remote_server_password:
type: string
type: array
version:
type: string
type: object
Backup:
properties:
response:
items:
required:
- description
properties:
description:
type: string
type: object
type: array
version:
type: string
type: object
BackupDetailResponse:
properties:
response:
items:
type: object
type: array
version:
type: string
type: object