update_snapmirror_relationship
¶
update_snapmirror_relationship(
*,
config_overrides: Optional[FSxClientConfig] = 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/f_sx.py
5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 | |