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
4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 | |