Skip to content

Commit fcebdf3

Browse files
OAS Update
1 parent 4ace074 commit fcebdf3

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

services/server-backup/v1/server-backup.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,47 @@
9999
],
100100
"type": "object"
101101
},
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+
},
102143
"BackupProperties": {
103144
"properties": {
104145
"name": {
@@ -235,6 +276,17 @@
235276
},
236277
"type": "object"
237278
},
279+
"GetBackupPoliciesResponse": {
280+
"properties": {
281+
"items": {
282+
"items": {
283+
"$ref": "#/components/schemas/BackupPolicy"
284+
},
285+
"type": "array"
286+
}
287+
},
288+
"type": "object"
289+
},
238290
"GetBackupSchedulesResponse": {
239291
"properties": {
240292
"items": {
@@ -330,6 +382,41 @@
330382
},
331383
"openapi": "3.0.0",
332384
"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+
},
333420
"/v1/projects/{projectId}/servers/{serverId}": {
334421
"delete": {
335422
"deprecated": true,

0 commit comments

Comments
 (0)