summaryrefslogtreecommitdiff
path: root/api-ref/source/parameters.yaml
blob: ef463af8a4e992fd40382aed8712cdd295819f4d (plain)
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
####################
# Header Variables #
####################

x-auth-all-projects:
  description: |
    If enabled this will show results from all projects in Designate
  in: header
  required: false
  type: bool

x-auth-sudo-project-id:
  description: |
    This allows a user to impersonate another project
  in: header
  required: false
  type: string

x-auth-token:
  description: |
    Token used to identify the user from keystone
  in: header
  required: false
  type: string

x-designate-edit-managed-records:
  description: |
    If enabled this will all users to edit records flagged as managed
  in: header
  required: false
  type: bool

x-designate-hard-delete:
  description: |
    If enabled, this will delete the zone resources (i.e. files) on the
    back-end.
  in: header
  required: false
  type: bool

x-openstack-request-id:
  description: |
    ID of the request
  in: header
  required: true
  type: string

zone_export_accepts:
  description: >
    Content-Type that will be accepted by the client.
    This endpoint will send a response with a ``text/dns`` content-type.
    If the client does not include a ``Accepts: text/dns`` header
  in: header
  required: true
  type: string

####################
#  Path Variables  #
####################

blacklist_id:
  description: |
    ID for this blacklist
  in: path
  required: true
  type: uuid

floatingip_id:
  description: |
    ID for the floatingip associated with the project
  in: path
  required: true
  type: uuid

path_pool_id:
  description: |
    ID for this pool
  in: path
  required: true
  type: uuid

path_project_id:
  description: |
    ID for the project
  in: path
  required: true
  type: uuid

path_recordset_id:
  description: |
    ID for the recordset
  in: path
  required: true
  type: uuid

path_service_id:
  description: |
    ID for the service.
  in: path
  required: true
  type: uuid

path_zone_export_id:
  description: |
    ID for this zone export
  in: path
  required: true
  type: uuid

path_zone_id:
  description: |
    ID for the zone
  in: path
  required: true
  type: uuid

path_zone_import_id:
  description: |
    ID for this zone import
  in: path
  required: true
  type: uuid

path_zone_transfer_accept_id:
  description: |
    ID for this zone transfer accept
  in: path
  required: true
  type: uuid

path_zone_transfer_request_id:
  description: |
    ID for this zone transfer request
  in: path
  required: true
  type: uuid

region:
  description: |
    Openstack region
  in: path
  required: true
  type: string

tld_id:
  description: |
    ID for this tld
  in: path
  required: true
  type: uuid

tsigkey_id:
  description: |
    ID for this tsigkey
  in: path
  required: true
  type: uuid


####################
# Query Variables  #
####################

blacklist_pattern_filter:
  description: |
    Filter results to only show blacklists that have a pattern matching the filter
  in: query
  required: false
  type: string

limit:
  description: |
    Requests a page size of items. Returns a number
    of items up to a limit value. Use the ``limit`` parameter to make
    an initial limited request and use the ID of the last-seen item
    from the response as the ``marker`` parameter value in a
    subsequent limited request.
  in: query
  required: false
  type: integer

marker:
  description: |
    The ID of the last-seen item. Use the ``limit``
    parameter to make an initial limited request and use the ID of the
    last-seen item from the response as the ``marker`` parameter value
    in a subsequent limited request.
  in: query
  required: false
  type: string

recordset_data_filter:
  description: |
    Filter results to only show recordsets that have a record with data matching the filter
  in: query
  required: false
  type: string

recordset_description_filter:
  description: |
    Filter results to only show recordsets that have a description matching the filter
  in: query
  required: false
  type: string

recordset_name_filter:
  description: |
    Filter results to only show recordsets that have a name matching the filter
  in: query
  required: false
  type: string

recordset_status_filter:
  description: |
    Filter results to only show recordsets that have a status matching the filter
  in: query
  required: false
  type: string

recordset_ttl_filter:
  description: |
    Filter results to only show recordsets that have a ttl matching the filter
  in: query
  required: false
  type: string

recordset_type_filter:
  description: |
    Filter results to only show recordsets that have a type matching the filter
  in: query
  required: false
  type: string

sort_dir:
  description: |
    Sorts the response by the requested sort
    direction. A valid value is ``asc`` (ascending) or ``desc``
    (descending). Default is ``asc``. You can specify multiple pairs
    of sort key and sort direction query parameters. If you omit the
    sort direction in a pair, the API uses the natural sorting
    direction of the server attribute that is provided as the
    ``sort_key``.
  in: query
  required: false
  type: string

sort_key:
  description: |
    Sorts the response by the this attribute value.
    Default is ``id``. You can specify multiple pairs of sort key and
    sort direction query parameters. If you omit the sort direction in
    a pair, the API uses the natural sorting direction of the server
    attribute that is provided as the ``sort_key``.
  in: query
  required: false
  type: string

tld_name_filter:
  description: |
    Filter results to only show tlds that have a name matching the filter
  in: query
  required: false
  type: string

tsigkey_algorithm_filter:
  description: |
    Filter results to only show tsigkeys that have an algorithm matching the filter
  in: query
  required: false
  type: string

tsigkey_name_filter:
  description: |
    Filter results to only show tsigkeys that have a name matching the filter
  in: query
  required: false
  type: string

tsigkey_scope_filter:
  description: |
    Filter results to only show tsigkeys that have a scope matching the filter
  in: query
  required: false
  type: string

zone_description_filter:
  description: |
    Filter results to only show zones that have a description matching the filter
  in: query
  required: false
  type: string

zone_email_filter:
  description: |
    Filter results to only show zones that have an email matching the filter
  in: query
  required: false
  type: string

zone_export_message_filter:
  description: |
    Filter results to only show ``zone_exports`` that have a ``message`` matching the filter
  in: query
  required: false
  type: string

zone_export_status_filter:
  description: |
    Filter results to only show ``zone_exports`` that have a ``status`` matching the filter
  in: query
  required: false
  type: string

zone_export_zone_id_filter:
  description: |
    Filter results to only show ``zone_exports`` that have a ``zone_id`` matching the filter
  in: query
  required: false
  type: uuid

zone_import_message_filter:
  description: |
    Filter results to only show zone_imports that have a ``message`` matching the filter
  in: query
  required: false
  type: string

zone_import_status_filter:
  description: |
    Filter results to only show zone_imports that have a ``status`` matching the filter
  in: query
  required: false
  type: string

zone_import_zone_id_filter:
  description: |
    Filter results to only show zone_imports that have a ``zone_id`` matching the filter
  in: query
  required: false
  type: uuid

zone_name_filter:
  description: |
    Filter results to only show zones that have a name matching the filter
  in: query
  required: false
  type: string

zone_status_filter:
  description: |
    Filter results to only show zones that have a status matching the filter
  in: query
  required: false
  type: string

zone_transfer_accept_status_filter:
  description: |
    Filter results to only show ``zone_transfer_accepts`` that have a ``status`` matching the filter
  in: query
  required: false
  type: string

zone_transfer_request_status_filter:
  description: |
    Filter results to only show ``zone_transfer_requests`` that have a ``status`` matching the filter
  in: query
  required: false
  type: string

zone_ttl_filter:
  description: |
    Filter results to only show zones that have a ttl matching the filter
  in: query
  required: false
  type: integer

zone_type_filter:
  description: |
    Filter results to only show zones that have a type matching the filter
  in: query
  required: false
  type: string


####################
#  Body Variables  #
####################

action:
  description: |
    current action in progress on the resource
  in: body
  required: true
  type: enum

api_links:
  description: |
    Links to the resources in question.
  in: body
  required: true
  type: array

api_version_id:
  description: |
    A common name for the version.
  in: body
  required: true
  type: string

api_version_status:
  description: |
    The status of this API version. This can be one of:

    - ``CURRENT``: This is the preferred version of the API to use.
    - ``SUPPORTED``: This is an older, but still supported version of the API.
    - ``DEPRECATED``: A deprecated version of the API that is slated for
      removal.
    - ``EXPERIMENTAL``: This version is under development or contains features
      that are otherwise subject to change or removal.
  in: body
  required: true
  type: string

blacklist_description:
  description: |
    Description for this blacklist
  in: body
  required: false
  type: string

blacklist_pattern:
  description: |
    Pattern for this blacklist
  in: body
  required: true
  type: string

capabilities:
  description: |
    Capabilities for the service.
  in: body
  required: true
  type: dict

created_at:
  description: |
    Date / Time when resource was created.
  in: body
  required: true
  type: datestamp

description:
  description: |
    Description for the resource. Only shown in API / Horizon
  in: body
  required: true
  type: string

floatingip_address:
  description: |
    The floatingip address for this PTR record.
  in: body
  required: true
  type: string

fptr_description:
  description: |
    Description for this PTR record
  in: body
  required: true
  type: string

fptr_id:
  description: |
    ID for PTR record in the format of <region>:<floatingip_id>
  in: body
  required: true
  type: string

fptr_ttl:
  description: |
    Time to live for this PTR record
  in: body
  required: true
  type: uuid

fptrd_name:
  description: |
    Domain name for this PTR record
  in: body
  required: true
  type: string

heartbeated_at:
  description: |
    The timestamp when the last heartbeat was received.
  in: body
  required: true
  type: datestamp

hostname:
  description: |
    The hostname of the host with the service instance.
  in: body
  required: true
  type: string

id:
  description: |
    ID for the resource
  in: body
  required: true
  type: uuid

links:
  description: |
    Links to the resource, and other related resources.
    When a response has been broken into pages, we will include
    a ``next`` link that should be followed to retrieve all results
  in: body
  required: true
  type: object

max_page_limit:
  description: |
    The max amount of items allowed per page
  in: body
  required: true
  type: integer

max_recordset_name_length:
  description: |
    The max length of a recordset name
  in: body
  required: true
  type: integer

max_recordset_records:
  description: |
    The max amount of records contained in a recordset
  in: body
  required: true
  type: integer

max_zone_name_length:
  description: |
    The max length of a zone name
  in: body
  required: true
  type: integer

max_zone_records:
  description: |
    The max amount of records in a zone
  in: body
  required: true
  type: integer

max_zone_recordsets:
  description: |
    The max amount of recordsets per zone
  in: body
  required: true
  type: integer

max_zones:
  description: |
    The max amount of zones for this project
  in: body
  required: true
  type: integer

metadata:
  description: |
    Returns the ``total_count`` of resources matching this filter
  in: body
  required: true
  type: object

min_ttl:
  description: |
    The lowest ttl allowed on this system
  in: body
  required: true
  type: integer

pool_attributes:
  description: >
    Key:Value pairs of information about this pool. This information can be used by the scheduler to place zones on the correct pools
  in: body
  required: true
  type: object

pool_id:
  description: |
    ID for this pool
  in: body
  required: true
  type: uuid

pool_name:
  description: |
    Name for this pool
  in: body
  required: true
  type: string

pool_ns_records:
  description: |
    Name Servers for this pool. Any zones hosted by this pool should be delegated to these DNS servers
  in: body
  required: true
  type: string

project_id:
  description: |
    ID for the project that owns the resource
  in: body
  required: true
  type: uuid

recordset_description:
  description: |
    Description for this recordset
  in: body
  required: false
  type: string

recordset_name:
  description: |
    DNS Name for the recordset
  in: body
  required: true
  type: hostname

recordset_records:
  description: |
    A list of data for this recordset. Each item will be a separate record in Designate
    These items should conform to the DNS spec for the record type - e.g. A records
    must be IPv4 addresses, CNAME records must be a hostname.
  in: body
  required: true
  type: string

recordset_ttl:
  description: |
    TTL (Time to Live) for the recordset.
  in: body
  required: false
  type: integer

recordset_type:
  description: |
    They RRTYPE of the recordset.
  in: body
  required: true
  type: string

recordset_zone_id:
  description: |
    ID for the zone that contains this recordset
  in: body
  required: true
  type: uuid

recordset_zone_name:
  description: |
    The name of the zone that contains this recordset
  in: body
  required: true
  type: string

resource_id:
  description: |
    resource id for this tsigkey which can be either zone or pool id
  in: body
  required: true
  type: string

service_name:
  description: |
    The name of the Designate service instance.
  in: body
  required: true
  type: string

service_statuses:
  description: |
    A list of ``service_statuses`` objects.
  in: body
  required: true
  type: array

stats:
  description: |
    Statistics for the service.
  in: body
  required: true
  type: dict

status:
  description: |
    The status of the resource.
  in: body
  required: true
  type: enum

tld_description:
  description: |
    Description for this tld
  in: body
  required: false
  type: string

tld_name:
  description: |
    Name for this tld
  in: body
  required: true
  type: string

tsigkey_algorithm:
  description: |
    The encryption algorithm for this tsigkey
  in: body
  required: true
  type: string

tsigkey_name:
  description: |
    Name for this tsigkey
  in: body
  required: true
  type: string

tsigkey_scope:
  description: |
    scope for this tsigkey which can be either ZONE or POOL scope
  in: body
  required: true
  type: string

tsigkey_secret:
  description: |
    The actual key to be used
  in: body
  required: true
  type: string

updated_at:
  description: |
    Date / Time when resource last updated.
  in: body
  required: true
  type: datestamp

version:
  description: |
    Version of the resource
  in: body
  required: true
  type: integer

zone_attributes:
  description: |
    Key:Value pairs of information about this zone, and the pool the user
    would like to place the zone in. This information can be used by the
    scheduler to place zones on the correct pool.
  in: body
  required: false
  type: dict

zone_description:
  description: |
    Description for this zone
  in: body
  required: false
  type: string

zone_email:
  description: |
    e-mail for the zone. Used in SOA records for the zone
  in: body
  required: true
  type: string

zone_email_update:
  description: |
    e-mail for the zone. Used in SOA records for the zone
  in: body
  required: false
  type: string

zone_export_id:
  description: |
    ID for this zone export
  in: body
  required: true
  type: uuid

zone_export_location:
  description: >
    Where the exported zone is published to.
    There are currently one placement option available - designate.

    This will be shown by ``designate://<url>``.

    As more drivers are added, this will expand to include swift - this will be
    indicated by location being set to ``swift://<region>/<container>/<file>``

    This is also allowed be a webserver if the operator implements a different
    data store, and will be indicted by ``http://<url>``

    When a zone export is complete, the location will be updated, and
    the exported zone file will be available at the location specified.

  in: body
  required: false
  type: string

zone_export_message:
  description: |
    Message about the current status of the export
  in: body
  required: false
  type: uuid

zone_export_status:
  description: |
    Current status of the zone export
  in: body
  required: true
  type: string

zone_export_zone_id:
  description: |
    ID for the zone that is being exported
  in: body
  required: false
  type: uuid

zone_import_id:
  description: |
    ID for this zone import
  in: body
  required: true
  type: uuid

zone_import_message:
  description: |
    Message about the current status of the import
  in: body
  required: false
  type: uuid

zone_import_status:
  description: |
    Current status of the zone import
  in: body
  required: true
  type: uuid

zone_import_zone_id:
  description: |
    ID for the zone that was created by this import
  in: body
  required: false
  type: uuid

zone_masters:
  description: |
    Mandatory for secondary zones. The servers to slave from to get DNS information
  in: body
  required: false
  type: enum

zone_name:
  description: |
    DNS Name for the zone
  in: body
  required: true
  type: domainname

zone_nameserver_hostname:
  description: |
    The hostname of the nameserver that the zone should be delegated to
  in: body
  required: true
  type: hostname

zone_nameserver_priority:
  description: |
    The priority of the nameserver. This is used to determine the order of the
    the nameserver listings, and which server is used in the SOA record for the
    zone.
  in: body
  required: true
  type: integer

zone_pool_id:
  description: |
    ID for the pool hosting this zone
  in: body
  required: true
  type: uuid

zone_serial:
  description: |
    current serial number for the zone
  in: body
  required: true
  type: integer

zone_transfer_accept_id:
  description: |
    ID for this zone transfer accept
  in: body
  required: true
  type: uuid

zone_transfer_accept_status:
  description: |
    Current status of the zone transfer request
  in: body
  required: true
  type: string

zone_transfer_request_id:
  description: |
    ID for this zone transfer request
  in: body
  required: true
  type: uuid

zone_transfer_request_key:
  description: >
    Key that is used as part of the zone transfer accept process. This is only
    shown to the creator, and must be communicated out of band.
  in: body
  required: true
  type: string

zone_transfer_request_status:
  description: |
    Current status of the zone transfer request
  in: body
  required: true
  type: string

zone_transfer_request_target_project_id:
  description: >
    A project ID that the request will be limited to.
    No other project will be allowed to accept this request.
  in: body
  required: false
  type: string

zone_transfer_request_zone_id:
  description: |
    ID for the zone that is being exported
  in: body
  required: true
  type: uuid

zone_transfer_request_zone_name:
  description: |
    the name of the zone that is being exported
  in: body
  required: true
  type: string

zone_transfered_at:
  description: |
    For secondary zones. The last time an update was retrieved from the master servers
  in: body
  required: true
  type: enum

zone_ttl:
  description: |
    TTL (Time to Live) for the zone.
  in: body
  required: false
  type: integer

zone_type:
  description: |
    Type of zone. PRIMARY is controlled by Designate, SECONDARY zones are slaved from another DNS Server. Defaults to PRIMARY
  in: body
  required: false
  type: enum