|
5 | 5 | "properties": {
|
6 | 6 | "items": {
|
7 | 7 | "example": [
|
8 |
| - "0.0.0.0/0" |
| 8 | + "193.148.160.0/19", |
| 9 | + "45.129.40.0/21" |
9 | 10 | ],
|
10 | 11 | "items": {
|
11 | 12 | "type": "string"
|
|
57 | 58 | "type": "string"
|
58 | 59 | },
|
59 | 60 | "options": {
|
60 |
| - "additionalProperties": { |
61 |
| - "type": "string" |
62 |
| - }, |
63 |
| - "description": "Database specific options", |
64 |
| - "type": "object" |
| 61 | + "$ref": "#/components/schemas/database.DocumentationCreateDatabaseRequestOptions" |
65 | 62 | }
|
66 | 63 | },
|
| 64 | + "required": [ |
| 65 | + "name", |
| 66 | + "options" |
| 67 | + ], |
67 | 68 | "type": "object"
|
68 | 69 | },
|
69 | 70 | "CreateDatabaseResponse": {
|
|
86 | 87 | "type": "object"
|
87 | 88 | },
|
88 | 89 | "backupSchedule": {
|
89 |
| - "description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459", |
| 90 | + "description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59", |
90 | 91 | "example": "6 6 * * *",
|
91 | 92 | "type": "string"
|
92 | 93 | },
|
|
151 | 152 | },
|
152 | 153 | "CreateUserPayload": {
|
153 | 154 | "properties": {
|
154 |
| - "database": { |
| 155 | + "default_database": { |
155 | 156 | "type": "string"
|
156 | 157 | },
|
157 | 158 | "roles": {
|
158 | 159 | "items": {
|
159 |
| - "$ref": "#/components/schemas/Role" |
| 160 | + "type": "string" |
160 | 161 | },
|
161 | 162 | "type": "array"
|
162 | 163 | },
|
|
165 | 166 | }
|
166 | 167 | },
|
167 | 168 | "required": [
|
168 |
| - "database", |
| 169 | + "default_database", |
169 | 170 | "roles"
|
170 | 171 | ],
|
171 | 172 | "type": "object"
|
172 | 173 | },
|
173 | 174 | "CreateUserResponse": {
|
174 | 175 | "properties": {
|
175 | 176 | "item": {
|
176 |
| - "$ref": "#/components/schemas/User" |
| 177 | + "$ref": "#/components/schemas/SingleUser" |
177 | 178 | }
|
178 | 179 | },
|
179 | 180 | "type": "object"
|
|
207 | 208 | "example": false,
|
208 | 209 | "type": "boolean"
|
209 | 210 | },
|
210 |
| - "ownerName": { |
| 211 | + "owner": { |
211 | 212 | "description": "Name of the owner of the database.",
|
212 | 213 | "example": "Peter",
|
213 | 214 | "type": "string"
|
|
256 | 257 | },
|
257 | 258 | "GetDatabaseResponse": {
|
258 | 259 | "properties": {
|
259 |
| - "collation": { |
260 |
| - "example": "SQL_Latin1_General_CP1_CI_AS", |
261 |
| - "type": "string" |
262 |
| - }, |
263 |
| - "createDate": { |
264 |
| - "example": "2003-04-08T09:13:36.39Z", |
265 |
| - "type": "string" |
266 |
| - }, |
267 |
| - "id": { |
268 |
| - "example": "1", |
269 |
| - "type": "string" |
270 |
| - }, |
271 |
| - "name": { |
272 |
| - "example": "Peter_pan", |
273 |
| - "type": "string" |
274 |
| - }, |
275 |
| - "options": { |
276 |
| - "allOf": [ |
277 |
| - { |
278 |
| - "$ref": "#/components/schemas/DatabaseOptions" |
279 |
| - } |
280 |
| - ], |
281 |
| - "description": "Database specific options", |
282 |
| - "type": "object" |
| 260 | + "database": { |
| 261 | + "$ref": "#/components/schemas/SingleDatabase" |
283 | 262 | }
|
284 | 263 | },
|
285 | 264 | "type": "object"
|
|
295 | 274 | "GetUserResponse": {
|
296 | 275 | "properties": {
|
297 | 276 | "item": {
|
298 |
| - "$ref": "#/components/schemas/instance.ResponseUser" |
| 277 | + "$ref": "#/components/schemas/user.ResponseUser" |
299 | 278 | }
|
300 | 279 | },
|
301 | 280 | "type": "object"
|
|
491 | 470 | "type": "object"
|
492 | 471 | },
|
493 | 472 | "backupSchedule": {
|
494 |
| - "description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459", |
| 473 | + "description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59", |
495 | 474 | "example": "6 6 * * *",
|
496 | 475 | "type": "string"
|
497 | 476 | },
|
|
531 | 510 | },
|
532 | 511 | "type": "object"
|
533 | 512 | },
|
534 |
| - "Role": { |
535 |
| - "enum": [ |
536 |
| - "SELECT", |
537 |
| - "INSERT", |
538 |
| - "UPDATE", |
539 |
| - "DELETE", |
540 |
| - "TRUNCATE", |
541 |
| - "TRIGGER", |
542 |
| - "CREATE", |
543 |
| - "CONNECT", |
544 |
| - "TEMPORARY", |
545 |
| - "EXECUTE", |
546 |
| - "USAGE", |
547 |
| - "read", |
548 |
| - "readWrite", |
549 |
| - "readWriteAnyDatabase" |
550 |
| - ], |
551 |
| - "type": "string" |
| 513 | + "SingleDatabase": { |
| 514 | + "properties": { |
| 515 | + "collation": { |
| 516 | + "example": "SQL_Latin1_General_CP1_CI_AS", |
| 517 | + "type": "string" |
| 518 | + }, |
| 519 | + "createDate": { |
| 520 | + "example": "2003-04-08T09:13:36.39Z", |
| 521 | + "type": "string" |
| 522 | + }, |
| 523 | + "id": { |
| 524 | + "example": "1", |
| 525 | + "type": "string" |
| 526 | + }, |
| 527 | + "name": { |
| 528 | + "example": "Peter_pan", |
| 529 | + "type": "string" |
| 530 | + }, |
| 531 | + "options": { |
| 532 | + "allOf": [ |
| 533 | + { |
| 534 | + "$ref": "#/components/schemas/DatabaseOptions" |
| 535 | + } |
| 536 | + ], |
| 537 | + "description": "Database specific options", |
| 538 | + "type": "object" |
| 539 | + } |
| 540 | + }, |
| 541 | + "type": "object" |
| 542 | + }, |
| 543 | + "SingleUser": { |
| 544 | + "properties": { |
| 545 | + "default_database": { |
| 546 | + "type": "string" |
| 547 | + }, |
| 548 | + "host": { |
| 549 | + "type": "string" |
| 550 | + }, |
| 551 | + "id": { |
| 552 | + "type": "string" |
| 553 | + }, |
| 554 | + "password": { |
| 555 | + "type": "string" |
| 556 | + }, |
| 557 | + "port": { |
| 558 | + "type": "integer" |
| 559 | + }, |
| 560 | + "roles": { |
| 561 | + "items": { |
| 562 | + "type": "string" |
| 563 | + }, |
| 564 | + "type": "array" |
| 565 | + }, |
| 566 | + "uri": { |
| 567 | + "type": "string" |
| 568 | + }, |
| 569 | + "username": { |
| 570 | + "type": "string" |
| 571 | + } |
| 572 | + }, |
| 573 | + "type": "object" |
552 | 574 | },
|
553 | 575 | "Storage": {
|
554 | 576 | "properties": {
|
|
588 | 610 | "type": "string"
|
589 | 611 | }
|
590 | 612 | },
|
| 613 | + "required": [ |
| 614 | + "name", |
| 615 | + "restoreDateTime" |
| 616 | + ], |
591 | 617 | "type": "object"
|
592 | 618 | },
|
593 | 619 | "Type": {
|
|
613 | 639 | "type": "object"
|
614 | 640 | },
|
615 | 641 | "backupSchedule": {
|
616 |
| - "description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459", |
| 642 | + "description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59", |
617 | 643 | "example": "6 6 * * *",
|
618 | 644 | "type": "string"
|
619 | 645 | },
|
|
643 | 669 | "type": "string"
|
644 | 670 | }
|
645 | 671 | },
|
| 672 | + "required": [ |
| 673 | + "acl", |
| 674 | + "backupSchedule", |
| 675 | + "flavorId", |
| 676 | + "labels", |
| 677 | + "name", |
| 678 | + "version" |
| 679 | + ], |
646 | 680 | "type": "object"
|
647 | 681 | },
|
648 | 682 | "UpdateInstanceResponse": {
|
|
685 | 719 | },
|
686 | 720 | "type": "object"
|
687 | 721 | },
|
| 722 | + "database.DocumentationCreateDatabaseRequestOptions": { |
| 723 | + "properties": { |
| 724 | + "collation": { |
| 725 | + "description": "Collation of the database", |
| 726 | + "example": "Latin1_General_100_CI_AS_KS_WS", |
| 727 | + "type": "string" |
| 728 | + }, |
| 729 | + "compatibilityLevel": { |
| 730 | + "description": "CompatibilityLevel of the Database.", |
| 731 | + "example": "160", |
| 732 | + "type": "string" |
| 733 | + }, |
| 734 | + "owner": { |
| 735 | + "description": "Name of the owner of the database.", |
| 736 | + "example": "Herbert", |
| 737 | + "type": "string" |
| 738 | + } |
| 739 | + }, |
| 740 | + "required": [ |
| 741 | + "owner" |
| 742 | + ], |
| 743 | + "type": "object" |
| 744 | + }, |
688 | 745 | "instance.DocumentationACL": {
|
689 | 746 | "properties": {
|
690 | 747 | "items": {
|
691 | 748 | "description": "a simple list with IP addresses with CIDR.",
|
692 | 749 | "example": [
|
693 |
| - "0.0.0.0/0" |
| 750 | + "193.148.160.0/19", |
| 751 | + "45.129.40.0/21" |
694 | 752 | ],
|
695 | 753 | "items": {
|
696 | 754 | "type": "string"
|
|
813 | 871 | },
|
814 | 872 | "type": "object"
|
815 | 873 | },
|
816 |
| - "instance.ResponseUser": { |
817 |
| - "properties": { |
818 |
| - "database": { |
819 |
| - "type": "string" |
820 |
| - }, |
821 |
| - "host": { |
822 |
| - "type": "string" |
823 |
| - }, |
824 |
| - "id": { |
825 |
| - "type": "string" |
826 |
| - }, |
827 |
| - "port": { |
828 |
| - "type": "integer" |
829 |
| - }, |
830 |
| - "roles": { |
831 |
| - "items": { |
832 |
| - "type": "string" |
833 |
| - }, |
834 |
| - "type": "array" |
835 |
| - }, |
836 |
| - "username": { |
837 |
| - "type": "string" |
838 |
| - } |
839 |
| - }, |
840 |
| - "type": "object" |
841 |
| - }, |
842 | 874 | "mssql.DatabaseCollation": {
|
843 | 875 | "properties": {
|
844 | 876 | "collation_name": {
|
|
889 | 921 | }
|
890 | 922 | },
|
891 | 923 | "type": "object"
|
| 924 | + }, |
| 925 | + "user.ResponseUser": { |
| 926 | + "properties": { |
| 927 | + "default_database": { |
| 928 | + "type": "string" |
| 929 | + }, |
| 930 | + "host": { |
| 931 | + "type": "string" |
| 932 | + }, |
| 933 | + "id": { |
| 934 | + "type": "string" |
| 935 | + }, |
| 936 | + "port": { |
| 937 | + "type": "integer" |
| 938 | + }, |
| 939 | + "roles": { |
| 940 | + "items": { |
| 941 | + "type": "string" |
| 942 | + }, |
| 943 | + "type": "array" |
| 944 | + }, |
| 945 | + "username": { |
| 946 | + "type": "string" |
| 947 | + } |
| 948 | + }, |
| 949 | + "type": "object" |
892 | 950 | }
|
893 | 951 | }
|
894 | 952 | },
|
|
2361 | 2419 | }
|
2362 | 2420 | }
|
2363 | 2421 | },
|
2364 |
| - "description": "body", |
| 2422 | + "description": "The request body contains a username, a list of roles and database. The possible roles can be fetched from the ListRoles endpoint.", |
2365 | 2423 | "required": true
|
2366 | 2424 | },
|
2367 | 2425 | "responses": {
|
|
0 commit comments