File tree Expand file tree Collapse file tree 1 file changed +87
-0
lines changed
services/server-backup/v1 Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Original file line number Diff line number Diff line change 99
99
],
100
100
"type" : " object"
101
101
},
102
+ "BackupPolicy" : {
103
+ "properties" : {
104
+ "backupProperties" : {
105
+ "properties" : {
106
+ "name" : {
107
+ "example" : " Daily Backup" ,
108
+ "type" : " string"
109
+ },
110
+ "retentionPeriod" : {
111
+ "example" : 3 ,
112
+ "type" : " integer"
113
+ }
114
+ },
115
+ "type" : " object"
116
+ },
117
+ "default" : {
118
+ "example" : true ,
119
+ "type" : " boolean"
120
+ },
121
+ "description" : {
122
+ "example" : " Default Daily Backup Schedule" ,
123
+ "type" : " string"
124
+ },
125
+ "enabled" : {
126
+ "example" : true ,
127
+ "type" : " boolean"
128
+ },
129
+ "id" : {
130
+ "example" : " a01c372f-5c15-418d-b2fb-b1f93ea2ffc8" ,
131
+ "type" : " string"
132
+ },
133
+ "name" : {
134
+ "example" : " Default Backup Schedule" ,
135
+ "type" : " string"
136
+ },
137
+ "rrule" : {
138
+ "example" : " DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1" ,
139
+ "type" : " string"
140
+ }
141
+ }
142
+ },
102
143
"BackupProperties" : {
103
144
"properties" : {
104
145
"name" : {
235
276
},
236
277
"type" : " object"
237
278
},
279
+ "GetBackupPoliciesResponse" : {
280
+ "properties" : {
281
+ "items" : {
282
+ "items" : {
283
+ "$ref" : " #/components/schemas/BackupPolicy"
284
+ },
285
+ "type" : " array"
286
+ }
287
+ },
288
+ "type" : " object"
289
+ },
238
290
"GetBackupSchedulesResponse" : {
239
291
"properties" : {
240
292
"items" : {
330
382
},
331
383
"openapi" : " 3.0.0" ,
332
384
"paths" : {
385
+ "/v1/projects/{projectId}/backup-policies" : {
386
+ "get" : {
387
+ "operationId" : " ListBackupPolicies" ,
388
+ "parameters" : [
389
+ {
390
+ "description" : " project id" ,
391
+ "in" : " path" ,
392
+ "name" : " projectId" ,
393
+ "required" : true ,
394
+ "schema" : {
395
+ "type" : " string"
396
+ }
397
+ }
398
+ ],
399
+ "responses" : {
400
+ "200" : {
401
+ "content" : {
402
+ "application/json" : {
403
+ "schema" : {
404
+ "$ref" : " #/components/schemas/GetBackupPoliciesResponse"
405
+ }
406
+ }
407
+ },
408
+ "description" : " backup policy list response"
409
+ },
410
+ "400" : {
411
+ "description" : " Bad Request"
412
+ },
413
+ "404" : {
414
+ "description" : " Project Not Found"
415
+ }
416
+ },
417
+ "summary" : " get list of backup policies"
418
+ }
419
+ },
333
420
"/v1/projects/{projectId}/servers/{serverId}" : {
334
421
"delete" : {
335
422
"deprecated" : true ,
You can’t perform that action at this time.
0 commit comments