update_snapshot
async
¶
update_snapshot(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
name: Optional[SnapshotName] = None,
snapshot_id: Optional[SnapshotId] = None,
ontap_configuration: Optional[UpdateOntapSnapshotConfiguration] = None,
) -> UpdateSnapshotResponse
Updates an Amazon FSx for OpenZFS or Amazon FSx for NetApp ONTAP snapshot.
For Amazon FSx for OpenZFS snapshots, you can update only the name. For Amazon FSx for NetApp ONTAP snapshots, you can update the name and the properties in OntapConfiguration.
Parameters:
-
name(Optional[SnapshotName], default:None) –The name of the snapshot to update.
-
snapshot_id(Optional[SnapshotId], default:None) –The ID of the snapshot that you want to update, in the format
fsvolsnap-0123456789abcdef0. -
ontap_configuration(Optional[UpdateOntapSnapshotConfiguration], default:None) –The configuration of the ONTAP snapshot that you are updating.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
SnapshotNotFound–No Amazon FSx snapshots were found based on 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
5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 | |