Interface PacketCapturesClient


  • public interface PacketCapturesClient
    An instance of this class provides access to all the operations defined in PacketCapturesClient.
    • Method Detail

      • createWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync​(String resourceGroupName,
                                                                                          String networkWatcherName,
                                                                                          String packetCaptureName,
                                                                                          PacketCaptureInner parameters)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        Returns:
        information about packet capture session along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreateAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<PacketCaptureResultInner>,​PacketCaptureResultInner> beginCreateAsync​(String resourceGroupName,
                                                                                                                                                                       String networkWatcherName,
                                                                                                                                                                       String packetCaptureName,
                                                                                                                                                                       PacketCaptureInner parameters)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        Returns:
        the PollerFlux for polling of information about packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PacketCaptureResultInner>,​PacketCaptureResultInner> beginCreate​(String resourceGroupName,
                                                                                                                                                                  String networkWatcherName,
                                                                                                                                                                  String packetCaptureName,
                                                                                                                                                                  PacketCaptureInner parameters)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        Returns:
        the SyncPoller for polling of information about packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginCreate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PacketCaptureResultInner>,​PacketCaptureResultInner> beginCreate​(String resourceGroupName,
                                                                                                                                                                  String networkWatcherName,
                                                                                                                                                                  String packetCaptureName,
                                                                                                                                                                  PacketCaptureInner parameters,
                                                                                                                                                                  com.azure.core.util.Context context)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of information about packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • createAsync

        Mono<PacketCaptureResultInner> createAsync​(String resourceGroupName,
                                                   String networkWatcherName,
                                                   String packetCaptureName,
                                                   PacketCaptureInner parameters)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        Returns:
        information about packet capture session on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • create

        PacketCaptureResultInner create​(String resourceGroupName,
                                        String networkWatcherName,
                                        String packetCaptureName,
                                        PacketCaptureInner parameters)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        Returns:
        information about packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • create

        PacketCaptureResultInner create​(String resourceGroupName,
                                        String networkWatcherName,
                                        String packetCaptureName,
                                        PacketCaptureInner parameters,
                                        com.azure.core.util.Context context)
        Create and start a packet capture on the specified VM.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        parameters - Parameters that define the create packet capture operation.
        context - The context to associate with this operation.
        Returns:
        information about packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<PacketCaptureResultInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                               String networkWatcherName,
                                                                                               String packetCaptureName)
        Gets a packet capture session by name.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        a packet capture session by name along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<PacketCaptureResultInner> getAsync​(String resourceGroupName,
                                                String networkWatcherName,
                                                String packetCaptureName)
        Gets a packet capture session by name.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        a packet capture session by name on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        PacketCaptureResultInner get​(String resourceGroupName,
                                     String networkWatcherName,
                                     String packetCaptureName)
        Gets a packet capture session by name.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        a packet capture session by name.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<PacketCaptureResultInner> getWithResponse​(String resourceGroupName,
                                                                                    String networkWatcherName,
                                                                                    String packetCaptureName,
                                                                                    com.azure.core.util.Context context)
        Gets a packet capture session by name.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        context - The context to associate with this operation.
        Returns:
        a packet capture session by name along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String networkWatcherName,
                                                                                          String packetCaptureName)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String networkWatcherName,
                                                                                                                               String packetCaptureName)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String networkWatcherName,
                                                                                                                          String packetCaptureName)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String networkWatcherName,
                                                                                                                          String packetCaptureName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String networkWatcherName,
                               String packetCaptureName)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String networkWatcherName,
                    String packetCaptureName)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String networkWatcherName,
                    String packetCaptureName,
                    com.azure.core.util.Context context)
        Deletes the specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> stopWithResponseAsync​(String resourceGroupName,
                                                                                        String networkWatcherName,
                                                                                        String packetCaptureName)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStopAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginStopAsync​(String resourceGroupName,
                                                                                                                             String networkWatcherName,
                                                                                                                             String packetCaptureName)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStop

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginStop​(String resourceGroupName,
                                                                                                                        String networkWatcherName,
                                                                                                                        String packetCaptureName)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginStop

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginStop​(String resourceGroupName,
                                                                                                                        String networkWatcherName,
                                                                                                                        String packetCaptureName,
                                                                                                                        com.azure.core.util.Context context)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stopAsync

        Mono<Void> stopAsync​(String resourceGroupName,
                             String networkWatcherName,
                             String packetCaptureName)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stop

        void stop​(String resourceGroupName,
                  String networkWatcherName,
                  String packetCaptureName)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • stop

        void stop​(String resourceGroupName,
                  String networkWatcherName,
                  String packetCaptureName,
                  com.azure.core.util.Context context)
        Stops a specified packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the network watcher.
        packetCaptureName - The name of the packet capture session.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getStatusWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> getStatusWithResponseAsync​(String resourceGroupName,
                                                                                             String networkWatcherName,
                                                                                             String packetCaptureName)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        Returns:
        status of packet capture session along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGetStatusAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<PacketCaptureQueryStatusResultInner>,​PacketCaptureQueryStatusResultInner> beginGetStatusAsync​(String resourceGroupName,
                                                                                                                                                                                                String networkWatcherName,
                                                                                                                                                                                                String packetCaptureName)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        Returns:
        the PollerFlux for polling of status of packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGetStatus

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PacketCaptureQueryStatusResultInner>,​PacketCaptureQueryStatusResultInner> beginGetStatus​(String resourceGroupName,
                                                                                                                                                                                           String networkWatcherName,
                                                                                                                                                                                           String packetCaptureName)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        Returns:
        the SyncPoller for polling of status of packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGetStatus

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PacketCaptureQueryStatusResultInner>,​PacketCaptureQueryStatusResultInner> beginGetStatus​(String resourceGroupName,
                                                                                                                                                                                           String networkWatcherName,
                                                                                                                                                                                           String packetCaptureName,
                                                                                                                                                                                           com.azure.core.util.Context context)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of status of packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getStatusAsync

        Mono<PacketCaptureQueryStatusResultInner> getStatusAsync​(String resourceGroupName,
                                                                 String networkWatcherName,
                                                                 String packetCaptureName)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        Returns:
        status of packet capture session on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getStatus

        PacketCaptureQueryStatusResultInner getStatus​(String resourceGroupName,
                                                      String networkWatcherName,
                                                      String packetCaptureName)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        Returns:
        status of packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getStatus

        PacketCaptureQueryStatusResultInner getStatus​(String resourceGroupName,
                                                      String networkWatcherName,
                                                      String packetCaptureName,
                                                      com.azure.core.util.Context context)
        Query the status of a running packet capture session.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        packetCaptureName - The name given to the packet capture session.
        context - The context to associate with this operation.
        Returns:
        status of packet capture session.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listAsync

        com.azure.core.http.rest.PagedFlux<PacketCaptureResultInner> listAsync​(String resourceGroupName,
                                                                               String networkWatcherName)
        Lists all packet capture sessions within the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        Returns:
        list of packet capture sessions as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<PacketCaptureResultInner> list​(String resourceGroupName,
                                                                              String networkWatcherName)
        Lists all packet capture sessions within the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        Returns:
        list of packet capture sessions as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<PacketCaptureResultInner> list​(String resourceGroupName,
                                                                              String networkWatcherName,
                                                                              com.azure.core.util.Context context)
        Lists all packet capture sessions within the specified resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        networkWatcherName - The name of the Network Watcher resource.
        context - The context to associate with this operation.
        Returns:
        list of packet capture sessions as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.