|
1 | 1 | { |
2 | 2 | "components": { |
3 | 3 | "responses": { |
| 4 | + "ConflictError": { |
| 5 | + "content": { |
| 6 | + "application/problem+json": { |
| 7 | + "schema": { |
| 8 | + "$ref": "#/components/schemas/ConflictError" |
| 9 | + } |
| 10 | + } |
| 11 | + }, |
| 12 | + "description": "The request conflicts with the current state of the resource." |
| 13 | + }, |
4 | 14 | "InternalServerError": { |
5 | 15 | "content": { |
6 | 16 | "application/problem+json": { |
|
33 | 43 | } |
34 | 44 | }, |
35 | 45 | "schemas": { |
| 46 | + "ConflictError": { |
| 47 | + "description": "Conflict error response", |
| 48 | + "example": { |
| 49 | + "detail": "resource pool 'test-rp' already exists", |
| 50 | + "error_description": "An error occurred", |
| 51 | + "status_code": 409, |
| 52 | + "type": "storage.stackit.cloud/conflict" |
| 53 | + }, |
| 54 | + "properties": { |
| 55 | + "detail": { |
| 56 | + "description": "Human-readable explanation of the specific problem", |
| 57 | + "example": "resource pool 'test-rp' already exists", |
| 58 | + "type": "string" |
| 59 | + }, |
| 60 | + "error_description": { |
| 61 | + "description": "Human-readable string of the error that occurred", |
| 62 | + "example": "An error occurred", |
| 63 | + "type": "string" |
| 64 | + }, |
| 65 | + "status_code": { |
| 66 | + "description": "The HTTP status code", |
| 67 | + "example": 409, |
| 68 | + "type": "integer" |
| 69 | + }, |
| 70 | + "type": { |
| 71 | + "description": "URI Uniquely identifies the error type. It will be in the format of storage.stackit.cloud/\u003cerror-type\u003e e.g. storage.stackit.cloud/conflict", |
| 72 | + "example": "storage.stackit.cloud/conflict", |
| 73 | + "type": "string" |
| 74 | + } |
| 75 | + }, |
| 76 | + "required": [ |
| 77 | + "detail", |
| 78 | + "error_description", |
| 79 | + "status_code", |
| 80 | + "type" |
| 81 | + ], |
| 82 | + "type": "object" |
| 83 | + }, |
36 | 84 | "CreateResourcePoolPayload": { |
37 | 85 | "properties": { |
38 | 86 | "availabilityZone": { |
|
1275 | 1323 | "401": { |
1276 | 1324 | "$ref": "#/components/responses/UnauthorizedError" |
1277 | 1325 | }, |
| 1326 | + "409": { |
| 1327 | + "$ref": "#/components/responses/ConflictError" |
| 1328 | + }, |
1278 | 1329 | "500": { |
1279 | 1330 | "$ref": "#/components/responses/InternalServerError" |
1280 | 1331 | } |
|
1337 | 1388 | "401": { |
1338 | 1389 | "$ref": "#/components/responses/UnauthorizedError" |
1339 | 1390 | }, |
| 1391 | + "409": { |
| 1392 | + "$ref": "#/components/responses/ConflictError" |
| 1393 | + }, |
1340 | 1394 | "500": { |
1341 | 1395 | "$ref": "#/components/responses/InternalServerError" |
1342 | 1396 | } |
|
1467 | 1521 | "401": { |
1468 | 1522 | "$ref": "#/components/responses/UnauthorizedError" |
1469 | 1523 | }, |
| 1524 | + "409": { |
| 1525 | + "$ref": "#/components/responses/ConflictError" |
| 1526 | + }, |
1470 | 1527 | "500": { |
1471 | 1528 | "$ref": "#/components/responses/InternalServerError" |
1472 | 1529 | } |
|
1599 | 1656 | "401": { |
1600 | 1657 | "$ref": "#/components/responses/UnauthorizedError" |
1601 | 1658 | }, |
| 1659 | + "409": { |
| 1660 | + "$ref": "#/components/responses/ConflictError" |
| 1661 | + }, |
1602 | 1662 | "500": { |
1603 | 1663 | "$ref": "#/components/responses/InternalServerError" |
1604 | 1664 | } |
|
1947 | 2007 | "401": { |
1948 | 2008 | "$ref": "#/components/responses/UnauthorizedError" |
1949 | 2009 | }, |
| 2010 | + "409": { |
| 2011 | + "$ref": "#/components/responses/ConflictError" |
| 2012 | + }, |
1950 | 2013 | "500": { |
1951 | 2014 | "$ref": "#/components/responses/InternalServerError" |
1952 | 2015 | } |
|
2017 | 2080 | "401": { |
2018 | 2081 | "$ref": "#/components/responses/UnauthorizedError" |
2019 | 2082 | }, |
| 2083 | + "409": { |
| 2084 | + "$ref": "#/components/responses/ConflictError" |
| 2085 | + }, |
2020 | 2086 | "500": { |
2021 | 2087 | "$ref": "#/components/responses/InternalServerError" |
2022 | 2088 | } |
|
2279 | 2345 | "401": { |
2280 | 2346 | "$ref": "#/components/responses/UnauthorizedError" |
2281 | 2347 | }, |
| 2348 | + "409": { |
| 2349 | + "$ref": "#/components/responses/ConflictError" |
| 2350 | + }, |
2282 | 2351 | "500": { |
2283 | 2352 | "$ref": "#/components/responses/InternalServerError" |
2284 | 2353 | } |
|
2728 | 2797 | }, |
2729 | 2798 | "description": "OK" |
2730 | 2799 | }, |
| 2800 | + "409": { |
| 2801 | + "$ref": "#/components/responses/ConflictError" |
| 2802 | + }, |
2731 | 2803 | "default": { |
2732 | 2804 | "content": { |
2733 | 2805 | "application/json": { |
|
2822 | 2894 | }, |
2823 | 2895 | "description": "OK" |
2824 | 2896 | }, |
| 2897 | + "409": { |
| 2898 | + "$ref": "#/components/responses/ConflictError" |
| 2899 | + }, |
2825 | 2900 | "default": { |
2826 | 2901 | "content": { |
2827 | 2902 | "application/json": { |
|
0 commit comments