describe_snapshot_policies
async
¶
describe_snapshot_policies(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
snapshot_policy_ids: Optional[SnapshotPolicyIds] = None,
filters: Optional[SnapshotPolicyFilters] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeSnapshotPoliciesResponse
Returns the description of specific Amazon FSx for NetApp ONTAP snapshot policies, if a SnapshotPolicyIds value is provided. Otherwise, this operation returns all snapshot policies owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.
When retrieving all snapshot policies, you can optionally specify the MaxResults parameter to limit the number of snapshot policies in a response. If more snapshot 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:
-
snapshot_policy_ids(Optional[SnapshotPolicyIds], default:None) –The IDs of the snapshot policies that you want to retrieve. If you also specify
Filters, only snapshot 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, aSnapshotPolicyNotFounderror occurs. -
filters(Optional[SnapshotPolicyFilters], 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.
-
SnapshotPolicyNotFound–No Amazon FSx snapshot 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
3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 | |