restore_volume_from_snapshot
async
¶
restore_volume_from_snapshot(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
volume_id: Optional[VolumeId] = None,
snapshot_id: Optional[SnapshotId] = None,
options: Optional[RestoreOpenZFSVolumeOptions] = None,
) -> RestoreVolumeFromSnapshotResponse
Returns an Amazon FSx for OpenZFS volume to the state saved by the specified snapshot.
Parameters:
-
volume_id(Optional[VolumeId], default:None) –The ID of the volume that you are restoring.
-
snapshot_id(Optional[SnapshotId], default:None) –The ID of the source snapshot. Specifies the snapshot that you are restoring from.
-
options(Optional[RestoreOpenZFSVolumeOptions], default:None) –The settings used when restoring the specified volume from snapshot.
-
DELETE_INTERMEDIATE_SNAPSHOTS- Deletes snapshots between the current state and the specified snapshot. If there are intermediate snapshots and this option isn't used,RestoreVolumeFromSnapshotfails. -
DELETE_CLONED_VOLUMES- Deletes any dependent clone volumes created from intermediate snapshots. If there are any dependent clone volumes and this option isn't used,RestoreVolumeFromSnapshotfails.
-
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
InternalServerError–A generic error indicating a server-side failure.
-
VolumeNotFound–No Amazon FSx volumes were found based upon the supplied parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 | |