restore_volume_from_snapshot
¶
restore_volume_from_snapshot(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 | |