|
1 | 1 | { |
2 | 2 | "components": { |
3 | 3 | "responses": { |
4 | | - "BadRequest": { |
| 4 | + "Conflict": { |
5 | 5 | "content": { |
6 | 6 | "application/json": { |
7 | 7 | "schema": { |
8 | | - "$ref": "#/components/schemas/Error" |
| 8 | + "$ref": "#/components/schemas/cluster_Error" |
9 | 9 | } |
10 | 10 | } |
11 | 11 | }, |
12 | | - "description": "Bad Request" |
| 12 | + "description": "Conflict" |
13 | 13 | }, |
14 | | - "Conflict": { |
| 14 | + "Forbidden": { |
15 | 15 | "content": { |
16 | 16 | "application/json": { |
17 | 17 | "schema": { |
18 | | - "$ref": "#/components/schemas/Error" |
| 18 | + "$ref": "#/components/schemas/cluster_Error" |
19 | 19 | } |
20 | 20 | } |
21 | 21 | }, |
22 | | - "description": "Conflict" |
| 22 | + "description": "Forbidden" |
23 | 23 | }, |
24 | | - "Forbidden": { |
| 24 | + "NotAcceptable": { |
25 | 25 | "content": { |
26 | 26 | "application/json": { |
27 | 27 | "schema": { |
28 | | - "$ref": "#/components/schemas/Error" |
| 28 | + "$ref": "#/components/schemas/cluster_Error" |
29 | 29 | } |
30 | 30 | } |
31 | 31 | }, |
32 | | - "description": "Forbidden" |
| 32 | + "description": "Not Acceptable" |
33 | 33 | }, |
34 | | - "InternalServerError": { |
| 34 | + "NotFound": { |
35 | 35 | "content": { |
36 | 36 | "application/json": { |
37 | 37 | "schema": { |
38 | | - "$ref": "#/components/schemas/Error" |
| 38 | + "$ref": "#/components/schemas/cluster_Error" |
39 | 39 | } |
40 | 40 | } |
41 | 41 | }, |
42 | | - "description": "Internal Server Error" |
| 42 | + "description": "Not Found" |
43 | 43 | }, |
44 | | - "NotAcceptable": { |
| 44 | + "ServiceUnavailable": { |
45 | 45 | "content": { |
46 | 46 | "application/json": { |
47 | 47 | "schema": { |
48 | | - "$ref": "#/components/schemas/Error" |
| 48 | + "$ref": "#/components/schemas/cluster_Error" |
49 | 49 | } |
50 | 50 | } |
51 | 51 | }, |
52 | | - "description": "Not Acceptable" |
| 52 | + "description": "Service Unavailable" |
53 | 53 | }, |
54 | | - "NotFound": { |
| 54 | + "cluster_BadRequest": { |
55 | 55 | "content": { |
56 | 56 | "application/json": { |
57 | 57 | "schema": { |
58 | | - "$ref": "#/components/schemas/Error" |
| 58 | + "$ref": "#/components/schemas/cluster_Error" |
59 | 59 | } |
60 | 60 | } |
61 | 61 | }, |
62 | | - "description": "Not Found" |
| 62 | + "description": "Bad Request" |
63 | 63 | }, |
64 | | - "ServiceUnavailable": { |
| 64 | + "cluster_InternalServerError": { |
65 | 65 | "content": { |
66 | 66 | "application/json": { |
67 | 67 | "schema": { |
68 | | - "$ref": "#/components/schemas/Error" |
| 68 | + "$ref": "#/components/schemas/cluster_Error" |
69 | 69 | } |
70 | 70 | } |
71 | 71 | }, |
72 | | - "description": "Service Unavailable" |
| 72 | + "description": "Internal Server Error" |
73 | 73 | } |
74 | 74 | }, |
75 | 75 | "schemas": { |
|
441 | 441 | ], |
442 | 442 | "type": "object" |
443 | 443 | }, |
444 | | - "Error": { |
445 | | - "properties": { |
446 | | - "description": { |
447 | | - "description": "Human-readable error description", |
448 | | - "type": "string" |
449 | | - }, |
450 | | - "error_code": { |
451 | | - "description": "Semantic error code (e.g., password_not_complex)", |
452 | | - "type": "string" |
453 | | - }, |
454 | | - "status_code": { |
455 | | - "type": "integer", |
456 | | - "x-go-json-ignore": true |
457 | | - } |
458 | | - }, |
459 | | - "required": [ |
460 | | - "error_code", |
461 | | - "description", |
462 | | - "status_code" |
463 | | - ] |
464 | | - }, |
465 | 444 | "HighAvailability": { |
466 | 445 | "properties": { |
467 | 446 | "status": { |
|
671 | 650 | ], |
672 | 651 | "type": "object" |
673 | 652 | }, |
| 653 | + "OcspConfig": { |
| 654 | + "description": "OCSP configuration", |
| 655 | + "properties": { |
| 656 | + "ocsp_functionality": { |
| 657 | + "description": "Whether to enable/disable OCSP for the cluster.", |
| 658 | + "type": "boolean" |
| 659 | + }, |
| 660 | + "query_frequency": { |
| 661 | + "description": "Determines the interval (in seconds) in which the control plane will poll the OCSP responder for a new status for the server certificate.", |
| 662 | + "type": "integer" |
| 663 | + }, |
| 664 | + "recovery_frequency": { |
| 665 | + "description": "Determines the interval (in seconds) in which the control plane will poll the OCSP responder for a new status for the server certificate when the current staple is invalid.", |
| 666 | + "type": "integer" |
| 667 | + }, |
| 668 | + "recovery_max_tries": { |
| 669 | + "description": "Determines the maximum number for the OCSP recovery attempts. After max number of tries passed, the control plane will revert back to the regular frequency.", |
| 670 | + "type": "integer" |
| 671 | + }, |
| 672 | + "responder_url": { |
| 673 | + "description": "The OCSP server url embedded in the proxy certificate (if available)", |
| 674 | + "type": "string" |
| 675 | + }, |
| 676 | + "response_timeout": { |
| 677 | + "description": "Determines the time interval (in seconds) for which the request waits for a response from the OCSP responder.", |
| 678 | + "type": "integer" |
| 679 | + } |
| 680 | + }, |
| 681 | + "required": [ |
| 682 | + "ocsp_functionality", |
| 683 | + "responder_url", |
| 684 | + "query_frequency", |
| 685 | + "response_timeout", |
| 686 | + "recovery_frequency", |
| 687 | + "recovery_max_tries" |
| 688 | + ], |
| 689 | + "type": "object" |
| 690 | + }, |
674 | 691 | "PasswordHashMethod": { |
675 | 692 | "description": "Used when password is passed pre-hashed", |
676 | 693 | "enum": [ |
|
1207 | 1224 | }, |
1208 | 1225 | "type": "object" |
1209 | 1226 | }, |
| 1227 | + "cluster_Error": { |
| 1228 | + "properties": { |
| 1229 | + "description": { |
| 1230 | + "description": "Human-readable error description", |
| 1231 | + "type": "string" |
| 1232 | + }, |
| 1233 | + "error_code": { |
| 1234 | + "description": "Semantic error code", |
| 1235 | + "type": "string" |
| 1236 | + }, |
| 1237 | + "status_code": { |
| 1238 | + "type": "integer", |
| 1239 | + "x-go-json-ignore": true |
| 1240 | + } |
| 1241 | + }, |
| 1242 | + "required": [ |
| 1243 | + "error_code", |
| 1244 | + "description", |
| 1245 | + "status_code" |
| 1246 | + ] |
| 1247 | + }, |
1210 | 1248 | "database_detailed_status": { |
1211 | 1249 | "default": "unknown", |
1212 | 1250 | "description": "The database detailed status", |
|
1327 | 1365 | "description": "List of database proxy certificates" |
1328 | 1366 | }, |
1329 | 1367 | "400": { |
1330 | | - "$ref": "#/components/responses/BadRequest" |
| 1368 | + "$ref": "#/components/responses/cluster_BadRequest" |
1331 | 1369 | }, |
1332 | 1370 | "500": { |
1333 | | - "$ref": "#/components/responses/InternalServerError" |
| 1371 | + "$ref": "#/components/responses/cluster_InternalServerError" |
1334 | 1372 | } |
1335 | 1373 | }, |
1336 | 1374 | "security": [ |
|
1481 | 1519 | "description": "The updated database proxy certificate" |
1482 | 1520 | }, |
1483 | 1521 | "400": { |
1484 | | - "$ref": "#/components/responses/BadRequest" |
| 1522 | + "$ref": "#/components/responses/cluster_BadRequest" |
1485 | 1523 | }, |
1486 | 1524 | "404": { |
1487 | 1525 | "$ref": "#/components/responses/NotFound" |
|
1490 | 1528 | "$ref": "#/components/responses/NotAcceptable" |
1491 | 1529 | }, |
1492 | 1530 | "500": { |
1493 | | - "$ref": "#/components/responses/InternalServerError" |
| 1531 | + "$ref": "#/components/responses/cluster_InternalServerError" |
1494 | 1532 | } |
1495 | 1533 | }, |
1496 | 1534 | "security": [ |
|
1698 | 1736 | "description": "Password hashing algorithm changed successfully" |
1699 | 1737 | }, |
1700 | 1738 | "400": { |
1701 | | - "$ref": "#/components/responses/BadRequest" |
| 1739 | + "$ref": "#/components/responses/cluster_BadRequest" |
1702 | 1740 | }, |
1703 | 1741 | "403": { |
1704 | 1742 | "$ref": "#/components/responses/Forbidden" |
|
1722 | 1760 | "x-stability-level": "stable" |
1723 | 1761 | } |
1724 | 1762 | }, |
| 1763 | + "/v1/ocsp": { |
| 1764 | + "get": { |
| 1765 | + "description": "Get the OCSP configuration for the cluster", |
| 1766 | + "operationId": "cluster_get_ocsp_config", |
| 1767 | + "responses": { |
| 1768 | + "200": { |
| 1769 | + "content": { |
| 1770 | + "application/json": { |
| 1771 | + "schema": { |
| 1772 | + "$ref": "#/components/schemas/OcspConfig" |
| 1773 | + } |
| 1774 | + } |
| 1775 | + }, |
| 1776 | + "description": "OCSP configuration" |
| 1777 | + }, |
| 1778 | + "500": { |
| 1779 | + "$ref": "#/components/responses/cluster_InternalServerError" |
| 1780 | + } |
| 1781 | + }, |
| 1782 | + "security": [ |
| 1783 | + { |
| 1784 | + "Auth": [ |
| 1785 | + "view_ocsp_config" |
| 1786 | + ] |
| 1787 | + } |
| 1788 | + ], |
| 1789 | + "summary": "Get OCSP configuration", |
| 1790 | + "tags": [ |
| 1791 | + "Cluster" |
| 1792 | + ], |
| 1793 | + "x-publish-docs": true, |
| 1794 | + "x-stability-level": "stable" |
| 1795 | + } |
| 1796 | + }, |
1725 | 1797 | "/v1/redis_acls": { |
1726 | 1798 | "get": { |
1727 | 1799 | "description": "Get all Redis ACLs in the cluster", |
|
1796 | 1868 | "description": "Redis ACL created successfully" |
1797 | 1869 | }, |
1798 | 1870 | "400": { |
1799 | | - "$ref": "#/components/responses/BadRequest" |
| 1871 | + "$ref": "#/components/responses/cluster_BadRequest" |
1800 | 1872 | }, |
1801 | 1873 | "403": { |
1802 | 1874 | "$ref": "#/components/responses/Forbidden" |
|
1847 | 1919 | "description": "Redis ACL validated successfully" |
1848 | 1920 | }, |
1849 | 1921 | "400": { |
1850 | | - "$ref": "#/components/responses/BadRequest" |
| 1922 | + "$ref": "#/components/responses/cluster_BadRequest" |
1851 | 1923 | }, |
1852 | 1924 | "403": { |
1853 | 1925 | "$ref": "#/components/responses/Forbidden" |
|
2029 | 2101 | "description": "Redis ACL updated successfully" |
2030 | 2102 | }, |
2031 | 2103 | "400": { |
2032 | | - "$ref": "#/components/responses/BadRequest" |
| 2104 | + "$ref": "#/components/responses/cluster_BadRequest" |
2033 | 2105 | }, |
2034 | 2106 | "403": { |
2035 | 2107 | "$ref": "#/components/responses/Forbidden" |
|
2134 | 2206 | "description": "Role created successfully." |
2135 | 2207 | }, |
2136 | 2208 | "400": { |
2137 | | - "$ref": "#/components/responses/BadRequest" |
| 2209 | + "$ref": "#/components/responses/cluster_BadRequest" |
2138 | 2210 | }, |
2139 | 2211 | "403": { |
2140 | 2212 | "$ref": "#/components/responses/Forbidden" |
|
2143 | 2215 | "content": { |
2144 | 2216 | "application/json": { |
2145 | 2217 | "schema": { |
2146 | | - "$ref": "#/components/schemas/Error" |
| 2218 | + "$ref": "#/components/schemas/cluster_Error" |
2147 | 2219 | } |
2148 | 2220 | } |
2149 | 2221 | }, |
|
2336 | 2408 | "description": "Role updated successfully." |
2337 | 2409 | }, |
2338 | 2410 | "400": { |
2339 | | - "$ref": "#/components/responses/BadRequest" |
| 2411 | + "$ref": "#/components/responses/cluster_BadRequest" |
2340 | 2412 | }, |
2341 | 2413 | "403": { |
2342 | 2414 | "$ref": "#/components/responses/Forbidden" |
|
2440 | 2512 | "description": "User created successfully" |
2441 | 2513 | }, |
2442 | 2514 | "400": { |
2443 | | - "$ref": "#/components/responses/BadRequest" |
| 2515 | + "$ref": "#/components/responses/cluster_BadRequest" |
2444 | 2516 | }, |
2445 | 2517 | "403": { |
2446 | 2518 | "$ref": "#/components/responses/Forbidden" |
|
2449 | 2521 | "content": { |
2450 | 2522 | "application/json": { |
2451 | 2523 | "schema": { |
2452 | | - "$ref": "#/components/schemas/Error" |
| 2524 | + "$ref": "#/components/schemas/cluster_Error" |
2453 | 2525 | } |
2454 | 2526 | } |
2455 | 2527 | }, |
|
2508 | 2580 | "description": "Password deleted successfully" |
2509 | 2581 | }, |
2510 | 2582 | "400": { |
2511 | | - "$ref": "#/components/responses/BadRequest" |
| 2583 | + "$ref": "#/components/responses/cluster_BadRequest" |
2512 | 2584 | }, |
2513 | 2585 | "403": { |
2514 | 2586 | "$ref": "#/components/responses/Forbidden" |
|
2573 | 2645 | "description": "Password added successfully" |
2574 | 2646 | }, |
2575 | 2647 | "400": { |
2576 | | - "$ref": "#/components/responses/BadRequest" |
| 2648 | + "$ref": "#/components/responses/cluster_BadRequest" |
2577 | 2649 | }, |
2578 | 2650 | "403": { |
2579 | 2651 | "$ref": "#/components/responses/Forbidden" |
|
2638 | 2710 | "description": "Password reset successfully" |
2639 | 2711 | }, |
2640 | 2712 | "400": { |
2641 | | - "$ref": "#/components/responses/BadRequest" |
| 2713 | + "$ref": "#/components/responses/cluster_BadRequest" |
2642 | 2714 | }, |
2643 | 2715 | "403": { |
2644 | 2716 | "$ref": "#/components/responses/Forbidden" |
|
2971 | 3043 | "description": "User updated successfully" |
2972 | 3044 | }, |
2973 | 3045 | "400": { |
2974 | | - "$ref": "#/components/responses/BadRequest" |
| 3046 | + "$ref": "#/components/responses/cluster_BadRequest" |
2975 | 3047 | }, |
2976 | 3048 | "403": { |
2977 | 3049 | "$ref": "#/components/responses/Forbidden" |
|
0 commit comments