-
-
Notifications
You must be signed in to change notification settings - Fork 559
/
swagger.yaml
1568 lines (1568 loc) 路 65.9 KB
/
swagger.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
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
schemes:
- https
host: api.backupify.com
basePath: /
info:
description: 'The Backupify API allows you to integrate the leading SaaS backup solution into your software, making it easy to give your customers the data protection they need. '
title: Backupify
version: 1.0.0
x-logo:
url: 'https://www.backupify.com/sites/all/themes/backupify/images/Datto_BFY_RGB_2.png'
x-origin:
format: swagger
url: 'https://api.backupify.com/docs/json/api.json'
version: '1.2'
x-providerName: backupify.com
tags:
- description: 'Backup index, retrieval, and creation'
name: backups
- description: BackupDefinition index and retrieval
name: backup_definitions
- description: 'BackupDefinition Variable index, creation, retrieval, and modification'
name: backup_definition_variables
- description: 'BackupInstance creation, retrieval, backup, and export'
name: backup_instances
- description: BackupInstance Endpoints index and retrieval
name: backup_instance_endpoints
- description: 'BackupInstance Variable index, creation, retrieval, and modification'
name: backup_instance_variables
- description: 'Customer index, creation, retrieval, and modification'
name: customers
- description: EndpointRecord index and retrieval
name: endpoint_records
- description: 'Export index, retrieval, and creation'
name: exports
- description: OAuth2 Access Token retrieval
name: tokens
- description: Simple utilities for testing various API functions
name: utilities
- description: Vendor retrieival
name: vendors
- description: Log viewer
name: logs
paths:
/oauth/token:
post:
description: 'All actions and visibility is limited in scope to items that are descendents of the authenticated vendor and the backup_definitions owned thereby. At this time, all Access Tokens are scoped with full write capabilities.'
parameters:
- description: API Client ID
in: formData
name: client_id
required: true
type: string
- description: API Client secret
in: formData
name: client_secret
required: true
type: string
- description: "String identifying the grant type to be used for token retrieval. MUST be 'client_credentials' to retrieve Access Token using client_id and client_secret."
enum:
- client_credentials
in: formData
name: grant_type
required: true
type: string
- description: A space separated list of operational scopes available to the returned token.
enum:
- write
in: formData
name: scope
required: true
type: string
responses:
'200':
description: Successful Access Token retrieval
schema:
$ref: '#/definitions/token'
'400':
description: 'Invalid Scope - The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.'
summary: Retrieve an Access Token authenticated using the provided client_id and client_secret.
tags:
- tokens
/v1/authenticate_customer:
get:
description: Requires Access Token granted for a customer
parameters:
- description: Bearer Access Token granted for customer
in: header
name: Authorization
required: true
type: string
responses:
'200':
description: Success - The customer access token successfully authenticated. The response body is empty JSON object.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
summary: A simple method to test authentication of a customer access token.
tags:
- utilities
/v1/authenticate_vendor:
get:
description: Requires Access Token granted from client_credentials
parameters:
- description: Bearer Access Token granted from client_credentials for vendor
in: header
name: Authorization
required: true
type: string
responses:
'200':
description: Success - The vendor access token successfully authenticated.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
summary: A simple method to test authentication of a vendor access token. The response body is empty JSON object.
tags:
- utilities
/v1/backup_definitions:
get:
description: 'This will retrieve a list of backup_defintions from all vendors. To view backup_defintions for a particular vendor, see the vendors API. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: Limit backup_definitions returned to those owned by the specified vendor_id
in: query
name: vendor_id
type: integer
responses:
'200':
description: Success - The index of backup_defintions was retrieved successfully. The response body is a list of all backup_definitions.
schema:
items:
$ref: '#/definitions/backup_definition'
type: array
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The specified vendor could not be found
summary: Retrieve an index of all backup_definitions
tags:
- backup_definitions
post:
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: Name for the backup_definition
in: formData
name: 'backup_definition[name]'
required: true
type: string
- description: Description of the backup_definition
in: formData
name: 'backup_definition[description]'
required: true
type: string
- description: Boolean flag indicating whether the backup definition is published and available for use
in: formData
name: 'backup_definition[published]'
required: true
type: boolean
responses:
'200':
description: Success - The backup_defintion was successfully created. The response body is the new backup_definition.
schema:
$ref: '#/definitions/backup_definition'
'400':
description: Bad request - Likely the result of a validation failure or the omission of a required parameter. See response body for specific details.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
summary: Create a new backup_definition
tags:
- backup_definitions
'/v1/backup_definitions/{backup_definition_id}':
get:
description: Only backup_definitions you have permission to view will be returned
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve
format: int64
in: path
name: backup_definition_id
required: true
type: integer
responses:
'200':
description: Success - The backup_definition was successfully retrieved. Response body is the backup_definition.
schema:
$ref: '#/definitions/backup_definition'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_definition could not be found
summary: Retrieve a backup_definition by backup_definition_id
tags:
- backup_definitions
put:
description: Only backup_definitions you have permission to change can be modified
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve
format: int64
in: path
name: backup_definition_id
required: true
type: integer
- description: Name for the backup_definition
in: formData
name: 'backup_definition[name]'
type: string
- description: Description of the backup_definition
in: formData
name: 'backup_definition[description]'
type: string
- description: Boolean flag indicating whether the backup definition is published and available for use
in: formData
name: 'backup_definition[published]'
type: boolean
responses:
'200':
description: Success - The backup_definition was successfully updated. Response body is the updated backup_definition.
schema:
$ref: '#/definitions/backup_definition'
'400':
description: Bad request - Likely the result of a validation failure. See response body for error specifics.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_definition could not be found
summary: Update the specified backup_definition
tags:
- backup_definitions
'/v1/backup_definitions/{backup_definition_id}/variables':
get:
description: 'You can only retrieve variables for backup_definitions you have access to. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve variables for
format: int64
in: path
name: backup_definition_id
required: true
type: integer
responses:
'200':
description: Success - The list of variables for the specified backup_definition was successfully retrieved. The response is a list of backup_definition_variables.
schema:
items:
$ref: '#/definitions/backup_definition_variable'
type: array
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_definition could not be found
summary: Retrieve a list of variables for the specified backup_definition
tags:
- backup_definition_variables
post:
description: It is only possible to create variables for backup_definitions you have permission to manage.
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to create a variable for
format: int64
in: path
name: backup_definition_id
required: true
type: integer
- description: The symbolic name or identifier to access the defined variable by
in: formData
name: 'variable[key]'
required: true
type: string
- description: A human-friendly name for the variable
in: formData
name: 'variable[name]'
required: true
type: string
- description: Description offering additional information or detail about the variable
in: formData
name: 'variable[description]'
type: string
- description: Flag indicating whether this variable is optional or if a value is required
in: formData
name: 'variable[optional]'
type: boolean
- description: A default value that can be used when no instance specific value is provided
in: formData
name: 'variable[default_value]'
type: string
responses:
'200':
description: Success - The request completed successfully and the variable was created. The response is backup_definition_variable created.
schema:
$ref: '#/definitions/backup_definition_variable'
'400':
description: Bad request - See the response body for more infomation on the error. May indicate that a variable is already defined for the provided key or a required parameter has been omitted.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_definition could not be found
summary: Create a new variable for the specified key for the specified backup_definition
tags:
- backup_definition_variables
'/v1/backup_definitions/{backup_definition_id}/variables/{key}':
get:
description: You can only retrieve variables for backup_definitions you have access to
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve a variable for
format: int64
in: path
name: backup_definition_id
required: true
type: integer
- description: 'The key, symbolic name, or identifier of the variable to retrieve'
in: path
name: key
required: true
type: string
responses:
'200':
description: Success - The specified variable for the specified backup_definition was successfully retrieved. The response is the requested backup_definition_variable.
schema:
$ref: '#/definitions/backup_definition_variable'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action.
'404':
description: Not found - Either the requested backup_definition or variable key could not be found. See error message for specific details.
summary: Retrieve a specific variable by key for the specified backup_definition
tags:
- backup_definition_variables
put:
description: "You can only update variables for backup_definitions you have access to. Additionally, it is not possible to update a variable's key. Requests including a modified key name will result in an error."
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve a variable for
format: int64
in: path
name: backup_definition_id
required: true
type: integer
- description: 'The key, symbolic name, or identifier of the variable to update'
in: path
name: key
required: true
type: string
- description: The human-friendly name to use for the variable
in: formData
name: name
required: true
type: string
- description: Description offering additional information or detail about the variable
in: formData
name: 'variable[description]'
type: string
- description: Flag indicating whether this variable is optional or if a value is required
in: formData
name: 'variable[optional]'
type: boolean
- description: A default value that can be used when no instance specific value is provided
in: formData
name: 'variable[default_value]'
type: string
responses:
'200':
description: Success - The specified variable for the specified backup_definition was successfully updated. The response is the updated backup_definition_variable.
schema:
$ref: '#/definitions/backup_definition_variable'
'400':
description: Bad request - See response body for additional information on the specific error. May be caused by trying to alter the key of a variable.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action.
'404':
description: Not found - Either the requested backup_definition or variable could not be found. See error message for specific details.
summary: Update a specific variable by key for the specified backup_definition
tags:
- backup_definition_variables
/v1/backup_instances:
get:
description: 'It is only possible to retrieve backup_instances for customers you are authorized to access. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to retrieve backup_instances for
format: int64
in: query
name: backup_definition_id
required: true
type: integer
responses:
'200':
description: Success - The backup_instances related to the backup_definition specified were successfully retrieved. The response body is a list of the backup_instances.
schema:
items:
$ref: '#/definitions/backup_instance'
type: array
'400':
description: 'Bad request - See the response body for more infomation on the error. May be caused by the omission of a required parameter, such as backup_definition_id'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - Unable to retrieve backup_instances because the requested backup_definition could not be found
summary: Retrieves a list of backup_instances associated with the specified backup_definition
tags:
- backup_instances
post:
description: It is only possible to create backup_instances for customers you are authorized to modify
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_definition to create a backup_instance for
format: int64
in: formData
name: 'backup_instance[backup_definition_id]'
required: true
type: integer
- description: ID of the customer to create the backup_instance for
format: int64
in: formData
name: 'backup_instance[customer_id]'
required: true
type: integer
- description: Frequency with which scheduled backups are performed
enum:
- 'off'
- daily
in: formData
name: 'backup_instance[backup_frequency]'
required: true
type: string
responses:
'200':
description: Success - The backup_instance was successfully created. Response body is the backup_instance.
schema:
$ref: '#/definitions/backup_instance'
'400':
description: Bad request - See the response body for more infomation on the error. May be caused by the omission of a required parameter.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
summary: Create a new backup_instance from the specified backup_definition for the specified customer
tags:
- backup_instances
'/v1/backup_instances/{backup_instance_id}':
get:
description: Only backup_instances you have permission to view will be returned
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - The backup_instance was successfully retrieved. Response body is the backup_instance.
schema:
$ref: '#/definitions/backup_instance'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: Retrieve a backup_instance by backup_instance_id
tags:
- backup_instances
put:
description: Only backup_instances you have permission to change can be modified
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: Frequency with which scheduled backups will be performed
enum:
- 'off'
- daily
in: formData
name: 'backup_instance[backup_frequency]'
required: true
type: string
responses:
'200':
description: Success - The backup_instance was successfully altered. Response body is the updated backup_instance.
schema:
$ref: '#/definitions/backup_instance'
'400':
description: Bad request - See response body for error specifics. Likely caused by attempting to update a read-only attribute or the omission of a required parameter.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action.
'404':
description: Not found - The requested backup_instance could not be found
summary: Modify the specified backup_instance
tags:
- backup_instances
'/v1/backup_instances/{backup_instance_id}/backups':
get:
description: 'Only backups belonging to backup_instances you have permission to manage can be retrieved. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to backup
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - The list of backups for the specified backup_instance were successfully retrieved. The response body is the list of backups.
schema:
items:
$ref: '#/definitions/backup'
type: array
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: 'Retrieve a list of all backups for the specified backup_instance. '
tags:
- backups
post:
description: Only backup_instances you have permission to manage can be backed up
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to backup
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - A backup has been enqueued for the backup_instance. Response body is the backup that has been enqueued.
schema:
$ref: '#/definitions/backup'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: Perform an immediate backup of the specified backup_instance
tags:
- backups
'/v1/backup_instances/{backup_instance_id}/backups/active':
get:
description: Only backups belonging to backup_instances you have permission to access can be retrieved
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance the requested backup belongs to
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - The specified active backup for the specified backup_instance was successfully retrieved. The response body is the requested backup.
schema:
$ref: '#/definitions/backup'
'204':
description: No Content - The specified backup_instance was found but there is not currently a backup in progress. The response body contains no content.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found. See error message for specific details.
summary: Retrieve the active backup for the specified backup_instance if one exists
tags:
- backups
'/v1/backup_instances/{backup_instance_id}/backups/{backup_id}':
get:
description: Only backups belonging to backup_instances you have permission to access can be retrieved
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance the requested backup belongs to
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: ID of the backup to retrieve
format: int64
in: path
name: backup_id
required: true
type: integer
responses:
'200':
description: Success - The specified backup for the specified backup_instance was successfully retrieved. The response body is the requested backup.
schema:
$ref: '#/definitions/backup'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - Either the requested backup_instance or backup could not be found. See error message for specific details.
summary: Retrieve the specified backup for the specified backup_instance
tags:
- backups
'/v1/backup_instances/{backup_instance_id}/endpoints':
get:
description: 'You can only retrieve endpoints for backup_instances you have access to. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an endpoint for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - The list of endpoints for the specified backup_instance was successfully retrieved. The response contains the requested backup_instance_endpoints.
schema:
$ref: '#/definitions/backup_instance_endpoint'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found. See response body for specific details.
summary: Retrieve a list of endpoints for the specified backup_instance
tags:
- backup_instance_endpoints
'/v1/backup_instances/{backup_instance_id}/endpoints/{endpoint_name}':
get:
description: You can only retrieve endpoints for backup_instances you have access to
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an endpoint for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: The name of the endpoint to retrieve as defined by the backup_definition of the specified backup_instance
in: path
name: endpoint_name
required: true
type: string
responses:
'200':
description: Success - The specified endpoint for the specified backup_instance was successfully retrieved. The response is the requested backup_instance_endpoint.
schema:
$ref: '#/definitions/backup_instance_endpoint'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - Either the requested backup_instance or endpoint could not be found. See error message for specific details.
summary: Retrieve a specific endpoint by name for the specified backup_instance
tags:
- backup_instance_endpoints
'/v1/backup_instances/{backup_instance_id}/endpoints/{endpoint_name}/records':
get:
description: 'You can only retrieve records for endpoints that belong to backup_instances you have access to. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an endpoint for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: ID of the endpoint to retrieve records for
in: path
name: endpoint_name
required: true
type: string
responses:
'200':
description: Success - The list of records for the specified endpoint and backup_instance was successfully retrieved. The response contains the requested endpoint records.
schema:
$ref: '#/definitions/endpoint_record'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance or endpoint could not be found. See response body for specific details.
summary: Retrieve a list of records stored for the specified endpoint and backup_instance
tags:
- endpoint_records
'/v1/backup_instances/{backup_instance_id}/endpoints/{endpoint_name}/records/{record_id}':
get:
description: You can only retrieve records for endpoints of backup_instances you have access to
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an endpoint for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: The name of the endpoint to retrieve the record from
in: path
name: endpoint_name
required: true
type: string
- description: The id of the endpoint record to retrieve
in: path
name: record_id
required: true
type: string
responses:
'200':
description: Success - The specified record for the specified endpoint was successfully retrieved. The response is the requested endpoint record.
schema:
$ref: '#/definitions/endpoint_record'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: 'Not found - Either the requested backup_instance, endpoint, or endpoint record could not be found. See error message for specific details.'
summary: Retrieve a specific record by id for the specified endpoint and backup_instance
tags:
- endpoint_records
'/v1/backup_instances/{backup_instance_id}/endpoints/{endpoint_name}/records/{record_id}/blob':
get:
description: You can only retrieve blobs for endpoints of backup_instances you have access to
parameters:
- description: Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Access-Token
required: true
type: string
- description: ID of the backup_instance to retrieve an endpoint for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: The name of the endpoint to retrieve the record from
in: path
name: endpoint_name
required: true
type: string
- description: The id of the endpoint record the blob belongs to
in: path
name: record_id
required: true
type: string
responses:
'200':
description: Success - The specified blob was successfully retrieved. The response is a binary stream of the blob.
schema:
$ref: '#/definitions/blob'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: 'Not found - Either the requested backup_instance, endpoint, endpoint record, or blob could not be found. See error message for specific details.'
summary: Retrieve the blob associated with the specified record for the specified endpoint and backup_instance
tags:
- endpoint_records
'/v1/backup_instances/{backup_instance_id}/exports':
get:
description: 'You can only retrieve exports for backup_instances you have access to. Records are returned in ascending order (by id), with a default of 20 per page. Links to the next, previous, first, and last pages can be found in the response headers.'
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve exports for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
responses:
'200':
description: Success - The list of exports for the specified backup_instance were successfully retrieved. The response is a list of exports.
schema:
$ref: '#/definitions/export'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: Retrieve a list of exports for the specified backup_instance
tags:
- exports
post:
description: Only backup_instances you have permission to manage can be exported
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to export
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- default: false
description: 'Flag to force a full export, as opposed to re-authorizing an old export if the data is the same.'
in: formData
name: 'export_run[force_full]'
type: boolean
- description: 'ID of a specific backup_run to export. Note: backup_run.ended_at will overwrite any value passed into for export_datetime'
format: int64
in: formData
name: 'export_run[backup_run_id]'
type: integer
- description: 'Date (format: YYYY-MM-DD) from which to export. Data will be exported from the last backup_run on the date specified, or the most recent backup_run if no date is not given.'
in: formData
name: 'export_run[export_datetime]'
type: string
- description: 'Comma separated list of export format options. Valid options: blobs, csv, json'
in: formData
name: 'export_run[export_formats]'
type: string
- description: Comma separated list of blob content-types to export
in: formData
name: 'export_run[content_types]'
type: string
- default: true
description: Flag to send a confirmation email w/export link upon completion.
in: formData
name: 'export_run[send_confirmation]'
type: boolean
responses:
'200':
description: Success - An export has been enqueued for the requested backup_instance. The response is the export enqueued.
schema:
$ref: '#/definitions/export'
'400':
description: Bad request - See the response body for more information on the error. May be caused by requesting an export on a backup_instance that has no successful backups.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: Perform an export of the most recent backup of the specified backup_instance
tags:
- exports
'/v1/backup_instances/{backup_instance_id}/exports/{export_id}':
get:
description: You can only retrieve exports for backup_instances you have access to
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an export for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: ID of the export to retrieve
format: int64
in: path
name: export_id
required: true
type: integer
responses:
'200':
description: Success - The specified export for the specified backup_instance was successfully retrieved. The response is the requested export.
schema:
$ref: '#/definitions/export'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - Either the requested backup_instance or export could not be found. See error message for specific details.
summary: Retrieve a specific export for the specified backup_instance
tags:
- exports
'/v1/backup_instances/{backup_instance_id}/exports/{export_id}/reauth':
post:
description: "You can only re-authorize an export when there's already a valid exported_data_url"
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to retrieve an export for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: ID of the export to retrieve
format: int64
in: path
name: export_id
required: true
type: integer
responses:
'200':
description: Success - The specified export for the specified backup_instance was successfully retrieved. The response is the requested export.
schema:
$ref: '#/definitions/export_reauth'
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - Either the requested backup_instance or export could not be found. See error message for specific details.
summary: Retrieve an updated exported_data_url for a specific export for the specified backup_instance
tags:
- exports
'/v1/backup_instances/{backup_instance_id}/logs':
get:
parameters:
- description: Bearer Access Token granted from client credentials authorizing vendor to perform action
in: header
name: Authorization
required: true
type: string
- description: ID of the backup_instance to pull logs for
format: int64
in: path
name: backup_instance_id
required: true
type: integer
- description: 'Date (format: YYYY-MM-DD) for which to fetch logs (default: today).'
in: query
name: date
type: string
responses:
'200':
description: Success - The logs were successfully retrieved and are contained in the response body.
'400':
description: Bad request - See the response body for more information on the error.
'401':
description: Unauthorized - The Access Token provided is either invalid or does not have rights to perform the requested action
'404':
description: Not found - The requested backup_instance could not be found
summary: Returns the logs for a given backup instance
tags:
- logs
'/v1/backup_instances/{backup_instance_id}/logs/{scroll_id}':