|
422 | 422 | ], |
423 | 423 | "type": "object" |
424 | 424 | }, |
| 425 | + "GetDatabase": { |
| 426 | + "properties": { |
| 427 | + "id": { |
| 428 | + "$ref": "#/components/schemas/database.id" |
| 429 | + }, |
| 430 | + "name": { |
| 431 | + "$ref": "#/components/schemas/database.name" |
| 432 | + }, |
| 433 | + "owner": { |
| 434 | + "$ref": "#/components/schemas/database.owner" |
| 435 | + } |
| 436 | + }, |
| 437 | + "required": [ |
| 438 | + "id", |
| 439 | + "name", |
| 440 | + "owner" |
| 441 | + ], |
| 442 | + "type": "object" |
| 443 | + }, |
| 444 | + "GetDatabaseResponse": { |
| 445 | + "properties": { |
| 446 | + "database": { |
| 447 | + "$ref": "#/components/schemas/GetDatabase" |
| 448 | + } |
| 449 | + }, |
| 450 | + "type": "object" |
| 451 | + }, |
425 | 452 | "GetFlavorsResponse": { |
426 | 453 | "properties": { |
427 | 454 | "flavors": { |
|
1998 | 2025 | } |
1999 | 2026 | } |
2000 | 2027 | }, |
2001 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2028 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2002 | 2029 | }, |
2003 | 2030 | "403": { |
2004 | 2031 | "content": { |
|
2132 | 2159 | } |
2133 | 2160 | } |
2134 | 2161 | }, |
2135 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2162 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2136 | 2163 | }, |
2137 | 2164 | "403": { |
2138 | 2165 | "content": { |
|
2251 | 2278 | } |
2252 | 2279 | } |
2253 | 2280 | }, |
2254 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2281 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2255 | 2282 | }, |
2256 | 2283 | "403": { |
2257 | 2284 | "content": { |
|
2375 | 2402 | } |
2376 | 2403 | } |
2377 | 2404 | }, |
2378 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2405 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2379 | 2406 | }, |
2380 | 2407 | "403": { |
2381 | 2408 | "content": { |
|
2501 | 2528 | } |
2502 | 2529 | } |
2503 | 2530 | }, |
2504 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2531 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2505 | 2532 | }, |
2506 | 2533 | "403": { |
2507 | 2534 | "content": { |
|
2616 | 2643 | } |
2617 | 2644 | } |
2618 | 2645 | }, |
2619 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2646 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2620 | 2647 | }, |
2621 | 2648 | "403": { |
2622 | 2649 | "content": { |
|
2756 | 2783 | } |
2757 | 2784 | } |
2758 | 2785 | }, |
2759 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2786 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2760 | 2787 | }, |
2761 | 2788 | "403": { |
2762 | 2789 | "content": { |
|
2903 | 2930 | } |
2904 | 2931 | } |
2905 | 2932 | }, |
2906 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 2933 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
2907 | 2934 | }, |
2908 | 2935 | "403": { |
2909 | 2936 | "content": { |
|
3041 | 3068 | } |
3042 | 3069 | } |
3043 | 3070 | }, |
3044 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3071 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3045 | 3072 | }, |
3046 | 3073 | "403": { |
3047 | 3074 | "content": { |
|
3182 | 3209 | } |
3183 | 3210 | } |
3184 | 3211 | }, |
3185 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3212 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3186 | 3213 | }, |
3187 | 3214 | "403": { |
3188 | 3215 | "content": { |
|
3320 | 3347 | } |
3321 | 3348 | } |
3322 | 3349 | }, |
3323 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3350 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3324 | 3351 | }, |
3325 | 3352 | "403": { |
3326 | 3353 | "content": { |
|
3458 | 3485 | } |
3459 | 3486 | } |
3460 | 3487 | }, |
3461 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3488 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3462 | 3489 | }, |
3463 | 3490 | "403": { |
3464 | 3491 | "content": { |
|
3595 | 3622 | } |
3596 | 3623 | } |
3597 | 3624 | }, |
3598 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3625 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3599 | 3626 | }, |
3600 | 3627 | "403": { |
3601 | 3628 | "content": { |
|
3717 | 3744 | } |
3718 | 3745 | } |
3719 | 3746 | }, |
3720 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3747 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3721 | 3748 | }, |
3722 | 3749 | "403": { |
3723 | 3750 | "content": { |
|
3851 | 3878 | } |
3852 | 3879 | } |
3853 | 3880 | }, |
3854 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 3881 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3855 | 3882 | }, |
3856 | 3883 | "403": { |
3857 | 3884 | "content": { |
|
3909 | 3936 | "resource-type": "project" |
3910 | 3937 | } |
3911 | 3938 | }, |
| 3939 | + "get": { |
| 3940 | + "description": "Get information about a specific database in an instance.", |
| 3941 | + "operationId": "getDatabaseRequest", |
| 3942 | + "parameters": [ |
| 3943 | + { |
| 3944 | + "$ref": "#/components/parameters/project" |
| 3945 | + }, |
| 3946 | + { |
| 3947 | + "$ref": "#/components/parameters/region" |
| 3948 | + }, |
| 3949 | + { |
| 3950 | + "$ref": "#/components/parameters/instance" |
| 3951 | + }, |
| 3952 | + { |
| 3953 | + "$ref": "#/components/parameters/database" |
| 3954 | + } |
| 3955 | + ], |
| 3956 | + "responses": { |
| 3957 | + "200": { |
| 3958 | + "content": { |
| 3959 | + "application/json": { |
| 3960 | + "schema": { |
| 3961 | + "$ref": "#/components/schemas/GetDatabaseResponse" |
| 3962 | + } |
| 3963 | + } |
| 3964 | + }, |
| 3965 | + "description": "OK: The response contains the properties of the database." |
| 3966 | + }, |
| 3967 | + "400": { |
| 3968 | + "content": { |
| 3969 | + "application/json": { |
| 3970 | + "examples": { |
| 3971 | + "badRequestError": { |
| 3972 | + "$ref": "#/components/examples/badRequestError" |
| 3973 | + } |
| 3974 | + }, |
| 3975 | + "schema": { |
| 3976 | + "$ref": "#/components/schemas/Error" |
| 3977 | + } |
| 3978 | + } |
| 3979 | + }, |
| 3980 | + "description": "Bad Request" |
| 3981 | + }, |
| 3982 | + "401": { |
| 3983 | + "content": { |
| 3984 | + "application/json": { |
| 3985 | + "examples": { |
| 3986 | + "unauthorizedError": { |
| 3987 | + "$ref": "#/components/examples/unauthorizedError" |
| 3988 | + } |
| 3989 | + }, |
| 3990 | + "schema": { |
| 3991 | + "$ref": "#/components/schemas/Error" |
| 3992 | + } |
| 3993 | + } |
| 3994 | + }, |
| 3995 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
| 3996 | + }, |
| 3997 | + "403": { |
| 3998 | + "content": { |
| 3999 | + "application/json": { |
| 4000 | + "examples": { |
| 4001 | + "forbiddenError": { |
| 4002 | + "$ref": "#/components/examples/forbiddenError" |
| 4003 | + } |
| 4004 | + }, |
| 4005 | + "schema": { |
| 4006 | + "$ref": "#/components/schemas/Error" |
| 4007 | + } |
| 4008 | + } |
| 4009 | + }, |
| 4010 | + "description": "Forbidden: No access for the requested resource." |
| 4011 | + }, |
| 4012 | + "404": { |
| 4013 | + "content": { |
| 4014 | + "application/json": { |
| 4015 | + "examples": { |
| 4016 | + "notFoundError": { |
| 4017 | + "$ref": "#/components/examples/notFoundError" |
| 4018 | + } |
| 4019 | + }, |
| 4020 | + "schema": { |
| 4021 | + "$ref": "#/components/schemas/Error" |
| 4022 | + } |
| 4023 | + } |
| 4024 | + }, |
| 4025 | + "description": "Not found: The requested resource was not found." |
| 4026 | + }, |
| 4027 | + "500": { |
| 4028 | + "content": { |
| 4029 | + "application/json": { |
| 4030 | + "examples": { |
| 4031 | + "internalServerError": { |
| 4032 | + "$ref": "#/components/examples/internalServerError" |
| 4033 | + } |
| 4034 | + }, |
| 4035 | + "schema": { |
| 4036 | + "$ref": "#/components/schemas/Error" |
| 4037 | + } |
| 4038 | + } |
| 4039 | + }, |
| 4040 | + "description": "Internal Server Error: An internal occurred while processing the request. Please contact the support or try again later." |
| 4041 | + } |
| 4042 | + }, |
| 4043 | + "summary": "Get Specific Database", |
| 4044 | + "x-stackit-authorization": { |
| 4045 | + "actions": [ |
| 4046 | + "postgres-flex.database.get" |
| 4047 | + ], |
| 4048 | + "resource-id": "projectId", |
| 4049 | + "resource-id-type": "dynamic", |
| 4050 | + "resource-type": "project" |
| 4051 | + } |
| 4052 | + }, |
3912 | 4053 | "patch": { |
3913 | 4054 | "description": "Update a database partially in an instance.", |
3914 | 4055 | "operationId": "updateDatabasePartiallyRequest", |
|
3976 | 4117 | } |
3977 | 4118 | } |
3978 | 4119 | }, |
3979 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4120 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3980 | 4121 | }, |
3981 | 4122 | "403": { |
3982 | 4123 | "content": { |
|
4111 | 4252 | } |
4112 | 4253 | } |
4113 | 4254 | }, |
4114 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4255 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4115 | 4256 | }, |
4116 | 4257 | "403": { |
4117 | 4258 | "content": { |
|
4245 | 4386 | } |
4246 | 4387 | } |
4247 | 4388 | }, |
4248 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4389 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4249 | 4390 | }, |
4250 | 4391 | "403": { |
4251 | 4392 | "content": { |
|
4383 | 4524 | } |
4384 | 4525 | } |
4385 | 4526 | }, |
4386 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4527 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4387 | 4528 | }, |
4388 | 4529 | "403": { |
4389 | 4530 | "content": { |
|
4505 | 4646 | } |
4506 | 4647 | } |
4507 | 4648 | }, |
4508 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4649 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4509 | 4650 | }, |
4510 | 4651 | "403": { |
4511 | 4652 | "content": { |
|
4627 | 4768 | } |
4628 | 4769 | } |
4629 | 4770 | }, |
4630 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4771 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4631 | 4772 | }, |
4632 | 4773 | "403": { |
4633 | 4774 | "content": { |
|
4746 | 4887 | } |
4747 | 4888 | } |
4748 | 4889 | }, |
4749 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 4890 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4750 | 4891 | }, |
4751 | 4892 | "403": { |
4752 | 4893 | "content": { |
|
4860 | 5001 | } |
4861 | 5002 | } |
4862 | 5003 | }, |
4863 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 5004 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4864 | 5005 | }, |
4865 | 5006 | "403": { |
4866 | 5007 | "content": { |
|
4977 | 5118 | } |
4978 | 5119 | } |
4979 | 5120 | }, |
4980 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 5121 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
4981 | 5122 | }, |
4982 | 5123 | "403": { |
4983 | 5124 | "content": { |
|
5105 | 5246 | } |
5106 | 5247 | } |
5107 | 5248 | }, |
5108 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 5249 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
5109 | 5250 | }, |
5110 | 5251 | "403": { |
5111 | 5252 | "content": { |
|
5231 | 5372 | } |
5232 | 5373 | } |
5233 | 5374 | }, |
5234 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 5375 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
5235 | 5376 | }, |
5236 | 5377 | "403": { |
5237 | 5378 | "content": { |
|
5351 | 5492 | } |
5352 | 5493 | } |
5353 | 5494 | }, |
5354 | | - "description": "User is not allowed to perform this operation or credentials are not correct" |
| 5495 | + "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
5355 | 5496 | }, |
5356 | 5497 | "403": { |
5357 | 5498 | "content": { |
|
0 commit comments