create_restore_testing_plan
async
¶
create_restore_testing_plan(
restore_testing_plan: RestoreTestingPlanForCreate,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
creator_request_id: Optional[str] = None,
tags: Optional[SensitiveStringMap] = None,
) -> CreateRestoreTestingPlanOutput
Creates a restore testing plan.
The first of two steps to create a restore testing plan. After this request is successful, finish the procedure using CreateRestoreTestingSelection.
Parameters:
-
creator_request_id(Optional[str], default:None) –This is a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
-
restore_testing_plan(RestoreTestingPlanForCreate) –A restore testing plan must contain a unique
RestoreTestingPlanNamestring you create and must contain aScheduleExpressioncron. You may optionally include aStartWindowHoursinteger and aCreatorRequestIdstring.The
RestoreTestingPlanNameis a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores. -
tags(Optional[SensitiveStringMap], default:None) –The tags to assign to the restore testing plan.
Raises:
-
AlreadyExistsException–The required resource already exists.
-
ConflictException–Backup can't perform the action that you requested until it finishes performing a previous action. Try again later.
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/async_backup.py
1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 | |