DescribeSnapmirrorRelationships - Amazon FSx
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

DescribeSnapmirrorRelationships

Returns the description of specific Amazon FSx for NetApp ONTAP SnapMirror relationships, if a SnapmirrorRelationshipIds value is provided. Otherwise, this operation returns all SnapMirror relationships owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all SnapMirror relationships, you can optionally specify the MaxResults parameter to limit the number of SnapMirror relationships in a response. If more SnapMirror relationships 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.

Request Syntax

{ "Filters": [ { "Name": "string", "Values": [ "string" ] } ], "MaxResults": number, "NextToken": "string", "SnapmirrorRelationshipIds": [ "string" ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Filters

The filters structure. The supported names are file-system-id or destination-volume-id.

Type: Array of SnapmirrorRelationshipFilter objects

Array Members: Maximum number of 1 item.

Required: No

MaxResults

The maximum number of resources to return in the response. This value must be an integer greater than zero.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 2147483647.

Required: No

NextToken

(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous NextToken value left off.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$

Required: No

SnapmirrorRelationshipIds

The IDs of the SnapMirror relationships that you want to retrieve. If you also specify Filters, only SnapMirror relationships that match both the IDs and the filters are returned. If any IDs aren't found, or if a filter excludes any of them, a SnapmirrorRelationshipNotFound error occurs.

Type: Array of strings

Array Members: Maximum number of 50 items.

Pattern: ^(snapmirror-[0-9a-f]{17})$

Required: No

Response Syntax

{ "NextToken": "string", "SnapmirrorRelationships": [ { "Destination": { "Path": "string", "VolumeId": "string" }, "ExportedSnapshot": { "SnapshotId": "string", "SnapshotName": "string" }, "FileSystemId": "string", "Healthy": boolean, "LagTimeInMinutes": number, "Lifecycle": "string", "LifecycleTransitionReason": { "Message": "string", "OntapError": { "Code": "string", "Message": "string" } }, "ResourceARN": "string", "SnapmirrorPolicy": { "PolicyId": "string", "PolicyName": "string" }, "SnapmirrorRelationshipId": "string", "Source": { "Path": "string" }, "State": "string", "Tags": [ { "Key": "string", "Value": "string" } ], "ThrottleInKbps": number, "TransferSchedule": "string", "TransferState": { "BytesTransferred": number, "Duration": "string", "EndTime": number, "State": "string", "Type": "string" }, "UnhealthyReason": "string", "UUID": "string" } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

NextToken

(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous NextToken value left off.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$

SnapmirrorRelationships

Describes each SnapMirror relationship returned by the DescribeSnapmirrorRelationships operation.

Type: Array of SnapmirrorRelationship objects

Array Members: Maximum number of 50 items.

Errors

For information about the errors that are common to all actions, see Common Error Types.

BadRequest

A generic error indicating a failure with a client request.

Message

A detailed error message.

HTTP Status Code: 400

InternalServerError

A generic error indicating a server-side failure.

Message

A detailed error message.

HTTP Status Code: 500

SnapmirrorRelationshipNotFound

No Amazon FSx SnapMirror relationships were found based on the supplied parameters.

Message

A detailed error message.

HTTP Status Code: 400

VolumeNotFound

No Amazon FSx volumes were found based upon the supplied parameters.

Message

A detailed error message.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: