Interface PacketCapturesClient
public interface PacketCapturesClient
An instance of this class provides access to all the operations defined in PacketCapturesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.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.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.beginDelete(String resourceGroupName, String networkWatcherName, String packetCaptureName) Deletes the specified packet capture session.beginDelete(String resourceGroupName, String networkWatcherName, String packetCaptureName, com.azure.core.util.Context context) Deletes the specified packet capture session.beginDeleteAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Deletes the specified packet capture session.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.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.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.Stops a specified packet capture session.beginStop(String resourceGroupName, String networkWatcherName, String packetCaptureName, com.azure.core.util.Context context) Stops a specified packet capture session.beginStopAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Stops a specified packet capture session.create(String resourceGroupName, String networkWatcherName, String packetCaptureName, PacketCaptureInner parameters) Create and start a packet capture on the specified VM.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.createAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName, PacketCaptureInner parameters) Create and start a packet capture on the specified VM.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.voidDeletes the specified packet capture session.voiddelete(String resourceGroupName, String networkWatcherName, String packetCaptureName, com.azure.core.util.Context context) Deletes the specified packet capture session.deleteAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Deletes the specified packet capture session.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Deletes the specified packet capture session.Gets a packet capture session by name.Gets a packet capture session by name.Query the status of a running packet capture session.getStatus(String resourceGroupName, String networkWatcherName, String packetCaptureName, com.azure.core.util.Context context) Query the status of a running packet capture session.getStatusAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Query the status of a running packet capture session.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.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.Mono<com.azure.core.http.rest.Response<PacketCaptureResultInner>> getWithResponseAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Gets a packet capture session by name.com.azure.core.http.rest.PagedIterable<PacketCaptureResultInner> Lists all packet capture sessions within the specified resource group.com.azure.core.http.rest.PagedIterable<PacketCaptureResultInner> Lists all packet capture sessions within the specified resource group.com.azure.core.http.rest.PagedFlux<PacketCaptureResultInner> Lists all packet capture sessions within the specified resource group.voidStops a specified packet capture session.voidstop(String resourceGroupName, String networkWatcherName, String packetCaptureName, com.azure.core.util.Context context) Stops a specified packet capture session.Stops a specified packet capture session.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String networkWatcherName, String packetCaptureName) Stops a specified packet capture session.
-
Method Details
-
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Responseon successful completion ofMono. - 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.
-
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.
-
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.
-
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Monothat 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Monothat 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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.
-