共用方式為


FlowLogCollection Class

Definition

A class representing a collection of FlowLogResource and their operations. Each FlowLogResource in the collection will belong to the same instance of NetworkWatcherResource. To get a FlowLogCollection instance call the GetFlowLogs method from an instance of NetworkWatcherResource.

public class FlowLogCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Network.FlowLogResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.FlowLogResource>
type FlowLogCollection = class
    inherit ArmCollection
    interface seq<FlowLogResource>
    interface IEnumerable
    interface IAsyncEnumerable<FlowLogResource>
Public Class FlowLogCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of FlowLogResource), IEnumerable(Of FlowLogResource)
Inheritance
FlowLogCollection
Implements

Constructors

FlowLogCollection()

Initializes a new instance of the FlowLogCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, FlowLogData, CancellationToken)

Create or update a flow log for the specified network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
CreateOrUpdateAsync(WaitUntil, String, FlowLogData, CancellationToken)

Create or update a flow log for the specified network security group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
Get(String, CancellationToken)

Gets a flow log resource by name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
GetAll(CancellationToken)

Lists all flow log resources for the specified Network Watcher.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs
  • Operation Id: FlowLogs_List
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
GetAllAsync(CancellationToken)

Lists all flow log resources for the specified Network Watcher.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs
  • Operation Id: FlowLogs_List
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
GetAsync(String, CancellationToken)

Gets a flow log resource by name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}
  • Operation Id: FlowLogs_Get
  • Default Api Version: 2024-03-01
  • Resource: FlowLogResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<FlowLogResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<FlowLogResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to