update_snapmirror_relationship
async
¶
update_snapmirror_relationship(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
snapmirror_relationship_id: Optional[SnapmirrorRelationshipId] = None,
policy_id: Optional[SnapmirrorPolicyId] = None,
transfer_schedule: Optional[SnapmirrorTransferScheduleName] = None,
throttle_in_kbps: Optional[ThrottleInKbps] = None,
state: Optional[UpdatableSnapmirrorRelationshipState] = None,
) -> UpdateSnapmirrorRelationshipResponse
Updates an Amazon FSx for NetApp ONTAP SnapMirror relationship.
Parameters:
-
snapmirror_relationship_id(Optional[SnapmirrorRelationshipId], default:None) –The ID of the SnapMirror relationship that you want to update.
-
policy_id(Optional[SnapmirrorPolicyId], default:None) –Specifies the ID of the SnapMirror policy that the SnapMirror relationship uses.
-
transfer_schedule(Optional[SnapmirrorTransferScheduleName], default:None) –Specifies the name of the ONTAP schedule that determines when SnapMirror transfers data for the relationship. This schedule overrides the transfer schedule of the SnapMirror policy.
-
throttle_in_kbps(Optional[ThrottleInKbps], default:None) –Specifies the maximum bandwidth, in kilobytes per second (KBps), that SnapMirror uses to transfer data for the relationship. A value of
0means that the bandwidth is unlimited. This value overrides the throttle of the SnapMirror policy. -
state(Optional[UpdatableSnapmirrorRelationshipState], default:None) –Specifies the state to set for the SnapMirror relationship:
-
SNAPMIRRORED– Resumes a paused SnapMirror relationship, or resynchronizes a broken-off SnapMirror relationship. -
PAUSED– Pauses SnapMirror transfers for the relationship. -
BROKEN_OFF– Breaks off the SnapMirror relationship, which makes the destination volume writable.
Setting
StatetoSNAPMIRROREDon a relationship that isBROKEN_OFFmight resynchronize the relationship. A resync overwrites the destination volume with data from the source volume, and discards any data written to the destination volume that isn't present on the source volume. Use caution when you resynchronize a relationship. -
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.
-
SnapmirrorRelationshipNotFound–No Amazon FSx SnapMirror relationships 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
5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 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 | |