|
855 | 855 | ], |
856 | 856 | "type": "object" |
857 | 857 | }, |
858 | | - "RecoveryResponse": { |
859 | | - "properties": { |
860 | | - "id": { |
861 | | - "$ref": "#/components/schemas/instance.id" |
862 | | - } |
863 | | - }, |
864 | | - "required": [ |
865 | | - "id" |
866 | | - ], |
867 | | - "type": "object" |
868 | | - }, |
869 | 858 | "ResetUserResponse": { |
870 | 859 | "properties": { |
871 | 860 | "connectionString": { |
|
1545 | 1534 | "description": "The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3alpha1#tag/Version) for supported version parameters.", |
1546 | 1535 | "type": "string" |
1547 | 1536 | }, |
1548 | | - "pointInTimeRecoveryRequestPayload": { |
1549 | | - "properties": { |
1550 | | - "performanceClass": { |
1551 | | - "$ref": "#/components/schemas/backup.storage.class" |
1552 | | - }, |
1553 | | - "recoveryTime": { |
1554 | | - "$ref": "#/components/schemas/backup.recoveryTime" |
1555 | | - }, |
1556 | | - "size": { |
1557 | | - "$ref": "#/components/schemas/backup.storage.size" |
1558 | | - } |
1559 | | - }, |
1560 | | - "required": [ |
1561 | | - "recoveryTime", |
1562 | | - "size", |
1563 | | - "performanceClass" |
1564 | | - ], |
1565 | | - "type": "object" |
1566 | | - }, |
1567 | 1537 | "protect.isDeletable": { |
1568 | 1538 | "description": "Protect instance from deletion.", |
1569 | 1539 | "example": true, |
|
2992 | 2962 | } |
2993 | 2963 | } |
2994 | 2964 | }, |
2995 | | - "/v3alpha1/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/recoveries": { |
2996 | | - "post": { |
2997 | | - "description": "Point in Time Recovery", |
2998 | | - "operationId": "pointInTimeRecoveryRequest", |
2999 | | - "parameters": [ |
3000 | | - { |
3001 | | - "$ref": "#/components/parameters/project" |
3002 | | - }, |
3003 | | - { |
3004 | | - "$ref": "#/components/parameters/region" |
3005 | | - }, |
3006 | | - { |
3007 | | - "$ref": "#/components/parameters/instance" |
3008 | | - } |
3009 | | - ], |
3010 | | - "requestBody": { |
3011 | | - "content": { |
3012 | | - "application/json": { |
3013 | | - "schema": { |
3014 | | - "$ref": "#/components/schemas/pointInTimeRecoveryRequestPayload" |
3015 | | - } |
3016 | | - } |
3017 | | - }, |
3018 | | - "description": "The request body with the parameters for recover an instance by a point in time into a new instance." |
3019 | | - }, |
3020 | | - "responses": { |
3021 | | - "202": { |
3022 | | - "content": { |
3023 | | - "application/json": { |
3024 | | - "schema": { |
3025 | | - "$ref": "#/components/schemas/RecoveryResponse" |
3026 | | - } |
3027 | | - } |
3028 | | - }, |
3029 | | - "description": "Accepted: The request was accepted" |
3030 | | - }, |
3031 | | - "400": { |
3032 | | - "content": { |
3033 | | - "application/json": { |
3034 | | - "examples": { |
3035 | | - "badRequestError": { |
3036 | | - "$ref": "#/components/examples/badRequestError" |
3037 | | - } |
3038 | | - }, |
3039 | | - "schema": { |
3040 | | - "$ref": "#/components/schemas/Error" |
3041 | | - } |
3042 | | - } |
3043 | | - }, |
3044 | | - "description": "Bad Request" |
3045 | | - }, |
3046 | | - "401": { |
3047 | | - "content": { |
3048 | | - "application/json": { |
3049 | | - "examples": { |
3050 | | - "unauthorizedError": { |
3051 | | - "$ref": "#/components/examples/unauthorizedError" |
3052 | | - } |
3053 | | - }, |
3054 | | - "schema": { |
3055 | | - "$ref": "#/components/schemas/Error" |
3056 | | - } |
3057 | | - } |
3058 | | - }, |
3059 | | - "description": "Unauthorized: user is not allowed to perform this operation or credentials are not correct" |
3060 | | - }, |
3061 | | - "403": { |
3062 | | - "content": { |
3063 | | - "application/json": { |
3064 | | - "examples": { |
3065 | | - "forbiddenError": { |
3066 | | - "$ref": "#/components/examples/forbiddenError" |
3067 | | - } |
3068 | | - }, |
3069 | | - "schema": { |
3070 | | - "$ref": "#/components/schemas/Error" |
3071 | | - } |
3072 | | - } |
3073 | | - }, |
3074 | | - "description": "Forbidden: No access for the requested resource." |
3075 | | - }, |
3076 | | - "404": { |
3077 | | - "content": { |
3078 | | - "application/json": { |
3079 | | - "examples": { |
3080 | | - "notFoundError": { |
3081 | | - "$ref": "#/components/examples/notFoundError" |
3082 | | - } |
3083 | | - }, |
3084 | | - "schema": { |
3085 | | - "$ref": "#/components/schemas/Error" |
3086 | | - } |
3087 | | - } |
3088 | | - }, |
3089 | | - "description": "Not found: The requested resource was not found." |
3090 | | - }, |
3091 | | - "422": { |
3092 | | - "content": { |
3093 | | - "application/json": { |
3094 | | - "schema": { |
3095 | | - "$ref": "#/components/schemas/ValidationError" |
3096 | | - } |
3097 | | - } |
3098 | | - }, |
3099 | | - "description": "Request failed due to body validation" |
3100 | | - }, |
3101 | | - "500": { |
3102 | | - "content": { |
3103 | | - "application/json": { |
3104 | | - "examples": { |
3105 | | - "internalServerError": { |
3106 | | - "$ref": "#/components/examples/internalServerError" |
3107 | | - } |
3108 | | - }, |
3109 | | - "schema": { |
3110 | | - "$ref": "#/components/schemas/Error" |
3111 | | - } |
3112 | | - } |
3113 | | - }, |
3114 | | - "description": "Internal Server Error: An internal occurred while processing the request. Please contact the support or try again later." |
3115 | | - }, |
3116 | | - "501": { |
3117 | | - "content": { |
3118 | | - "application/json": { |
3119 | | - "examples": { |
3120 | | - "notImplementedError": { |
3121 | | - "$ref": "#/components/examples/notImplementedError" |
3122 | | - } |
3123 | | - }, |
3124 | | - "schema": { |
3125 | | - "$ref": "#/components/schemas/Error" |
3126 | | - } |
3127 | | - } |
3128 | | - }, |
3129 | | - "description": "Endpoint not implemented yet" |
3130 | | - } |
3131 | | - }, |
3132 | | - "summary": "Point in Time Recovery", |
3133 | | - "x-stackit-authorization": { |
3134 | | - "actions": [ |
3135 | | - "postgres-flex.backup.restore" |
3136 | | - ], |
3137 | | - "resource-id": "projectId", |
3138 | | - "resource-id-type": "dynamic", |
3139 | | - "resource-type": "project" |
3140 | | - } |
3141 | | - } |
3142 | | - }, |
3143 | 2965 | "/v3alpha1/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}": { |
3144 | 2966 | "get": { |
3145 | 2967 | "description": "Get information about a specific backup for an instance.", |
|
0 commit comments