FlowLogsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:flow_logs> attribute.

Inheritance
builtins.object
FlowLogsOperations

Constructor

FlowLogsOperations(*args, **kwargs)

Methods

begin_create_or_update

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

begin_delete

Deletes the specified flow log resource.

get

Gets a flow log resource by name.

list

Lists all flow log resources for the specified Network Watcher.

update_tags

Update tags of the specified flow log.

begin_create_or_update

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

begin_create_or_update(resource_group_name: str, network_watcher_name: str, flow_log_name: str, parameters: _models.FlowLog, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.FlowLog]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

flow_log_name
Required
str

The name of the flow log. Required.

parameters
Required

Parameters that define the create or update flow log resource. Is either a FlowLog type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either FlowLog or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified flow log resource.

begin_delete(resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

flow_log_name
Required
str

The name of the flow log resource. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets a flow log resource by name.

get(resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any) -> FlowLog

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

flow_log_name
Required
str

The name of the flow log resource. Required.

Returns

Type Description

FlowLog or the result of cls(response)

Exceptions

Type Description

list

Lists all flow log resources for the specified Network Watcher.

list(resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> Iterable[FlowLog]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group containing Network Watcher. Required.

network_watcher_name
Required
str

The name of the Network Watcher resource. Required.

Returns

Type Description

An iterator like instance of either FlowLog or the result of cls(response)

Exceptions

Type Description

update_tags

Update tags of the specified flow log.

update_tags(resource_group_name: str, network_watcher_name: str, flow_log_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FlowLog

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_watcher_name
Required
str

The name of the network watcher. Required.

flow_log_name
Required
str

The name of the flow log. Required.

parameters
Required

Parameters supplied to update flow log tags. Is either a TagsObject type or a IO[bytes] type. Required.

Returns

Type Description

FlowLog or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>