Skip to content

describe_storage_virtual_machine_peers

describe_storage_virtual_machine_peers(
    *,
    config_overrides: Optional[FSxClientConfig] = None,
    storage_virtual_machine_peer_ids: Optional[StorageVirtualMachinePeerIds] = None,
    filters: Optional[StorageVirtualMachinePeerFilters] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeStorageVirtualMachinePeersResponse

Returns the description of specific Amazon FSx for NetApp ONTAP storage virtual machine (SVM) peers, if a StorageVirtualMachinePeerIds value is provided. Otherwise, this operation returns all SVM peers owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.

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

  • storage_virtual_machine_peer_ids (Optional[StorageVirtualMachinePeerIds], default: None ) –

    The IDs of the SVM peers that you want to retrieve. If you also specify Filters, only SVM peers 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 StorageVirtualMachinePeerNotFound error occurs.

  • filters (Optional[StorageVirtualMachinePeerFilters], default: None ) –

    The filters structure. The supported names are file-system-id or storage-virtual-machine-id.

Raises:

Source code in docs_src/capo_fsx/_services/f_sx.py
def describe_storage_virtual_machine_peers(
    self,
    *,
    config_overrides: Optional[FSxClientConfig] = None,
    storage_virtual_machine_peer_ids: Optional[
        "capo_fsx.types.storage_virtual_machine_peer_ids.StorageVirtualMachinePeerIds"
    ] = None,
    filters: Optional[
        "capo_fsx.types.storage_virtual_machine_peer_filters.StorageVirtualMachinePeerFilters"
    ] = None,
    max_results: Optional["capo_fsx.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_fsx.types.next_token.NextToken"] = None,
) -> "capo_fsx.types.describe_storage_virtual_machine_peers_response.DescribeStorageVirtualMachinePeersResponse":
    """<p>Returns the description of specific Amazon FSx for NetApp ONTAP storage virtual machine (SVM) peers, if a <code>StorageVirtualMachinePeerIds</code> value is provided. Otherwise, this operation returns all SVM peers owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.</p> <p>When retrieving all SVM peers, you can optionally specify the <code>MaxResults</code> parameter to limit the number of SVM peers in a response. If more SVM peers remain, Amazon FSx returns a <code>NextToken</code> value in the response. In this case, send a later request with the <code>NextToken</code> request parameter set to the value of <code>NextToken</code> from the last response.</p>

    Args:
        storage_virtual_machine_peer_ids: <p>The IDs of the SVM peers that you want to retrieve. If you also specify <code>Filters</code>, only SVM peers 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 <code>StorageVirtualMachinePeerNotFound</code> error occurs.</p>
        filters: <p>The filters structure. The supported names are <code>file-system-id</code> or <code>storage-virtual-machine-id</code>.</p>

    Raises:
        capo_fsx.errors.bad_request.BadRequest: <p>A generic error indicating a failure with a client request.</p>
        capo_fsx.errors.file_system_not_found.FileSystemNotFound: <p>No Amazon FSx file systems were found based upon supplied parameters.</p>
        capo_fsx.errors.internal_server_error.InternalServerError: <p>A generic error indicating a server-side failure.</p>
        capo_fsx.errors.storage_virtual_machine_not_found.StorageVirtualMachineNotFound: <p>No FSx for ONTAP SVMs were found based upon the supplied parameters.</p>
        capo_fsx.errors.storage_virtual_machine_peer_not_found.StorageVirtualMachinePeerNotFound: <p>No Amazon FSx storage virtual machine (SVM) peers were found based on the supplied parameters.</p>
        capo_fsx.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_fsx.types.describe_storage_virtual_machine_peers_request.DescribeStorageVirtualMachinePeersRequest]",
    ) -> OperationResponse[
        "capo_fsx.types.describe_storage_virtual_machine_peers_response.DescribeStorageVirtualMachinePeersResponse"
    ]:
        import capo_fsx._operations.aws_simba_api_service_v20180301.describe_storage_virtual_machine_peers

        output, http_response = (
            capo_fsx._operations.aws_simba_api_service_v20180301.describe_storage_virtual_machine_peers.describe_storage_virtual_machine_peers(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeStorageVirtualMachinePeers")
    )
    input_: capo_fsx.types.describe_storage_virtual_machine_peers_request.DescribeStorageVirtualMachinePeersRequest = {}
    if storage_virtual_machine_peer_ids is not None:
        input_["storage_virtual_machine_peer_ids"] = (
            storage_virtual_machine_peer_ids
        )
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output