update_snapshot
¶
update_snapshot(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 | |