describe_snapmirror_policies
async
¶
describe_snapmirror_policies(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
snapmirror_policy_ids: Optional[SnapmirrorPolicyIds] = None,
filters: Optional[SnapmirrorPolicyFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeSnapmirrorPoliciesResponse
Returns the description of specific Amazon FSx for NetApp ONTAP SnapMirror policies, if a SnapmirrorPolicyIds value is provided. Otherwise, this operation returns all SnapMirror policies owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.
When retrieving all SnapMirror policies, you can optionally specify the MaxResults parameter to limit the number of SnapMirror policies in a response. If more SnapMirror policies remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.
Parameters:
-
snapmirror_policy_ids(Optional[SnapmirrorPolicyIds], default:None) –The IDs of the SnapMirror policies that you want to retrieve. If you also specify
Filters, only SnapMirror policies that match both the IDs and the filters are returned. If any IDs aren't found, or if a filter excludes any of them, aSnapmirrorPolicyNotFounderror occurs. -
filters(Optional[SnapmirrorPolicyFilters], default:None) –The filters structure. The supported names are
file-system-idorstorage-virtual-machine-id.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
InternalServerError–A generic error indicating a server-side failure.
-
SnapmirrorPolicyNotFound–No Amazon FSx SnapMirror policies 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
3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 | |