create_snapmirror_relationship
¶
create_snapmirror_relationship(
*,
config_overrides: Optional[FSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
source: Optional[CreateSnapmirrorSource] = None,
destination: Optional[CreateSnapmirrorDestination] = None,
policy_id: Optional[SnapmirrorPolicyId] = None,
transfer_schedule: Optional[SnapmirrorTransferScheduleName] = None,
throttle_in_kbps: Optional[ThrottleInKbps] = None,
tags: Optional[Tags] = None,
) -> CreateSnapmirrorRelationshipResponse
Creates a SnapMirror relationship that replicates data from a source volume to a destination volume on an Amazon FSx for NetApp ONTAP file system.
The CreateSnapmirrorRelationship operation returns while the SnapMirror relationship's lifecycle state is still CREATING. You can check the SnapMirror relationship creation status by calling the DescribeSnapmirrorRelationships operation.
Parameters:
-
source(Optional[CreateSnapmirrorSource], default:None) –Specifies the source endpoint of the SnapMirror relationship.
-
destination(Optional[CreateSnapmirrorDestination], default:None) –Specifies the destination endpoint of the SnapMirror relationship.
-
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.
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.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
UnsupportedOperation–The requested operation is not supported for this resource or API.
-
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/f_sx.py
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 | |