你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualHubBgpConnectionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:virtual_hub_bgp_connections> attribute.

Inheritance
builtins.object
VirtualHubBgpConnectionsOperations

Constructor

VirtualHubBgpConnectionsOperations(*args, **kwargs)

Methods

begin_list_advertised_routes

Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer.

begin_list_learned_routes

Retrieves a list of routes the virtual hub bgp connection has learned.

list

Retrieves the details of all VirtualHubBgpConnections.

begin_list_advertised_routes

Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer.

begin_list_advertised_routes(resource_group_name: str, hub_name: str, connection_name: str, **kwargs: Any) -> LROPoller[Dict[str, List[PeerRoute]]]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

hub_name
Required
str

The name of the virtual hub. Required.

connection_name
Required
str

The name of the virtual hub bgp connection. Required.

Returns

Type Description

An instance of LROPoller that returns either dict mapping str to list of PeerRoute or the result of cls(response)

Exceptions

Type Description

begin_list_learned_routes

Retrieves a list of routes the virtual hub bgp connection has learned.

begin_list_learned_routes(resource_group_name: str, hub_name: str, connection_name: str, **kwargs: Any) -> LROPoller[Dict[str, List[PeerRoute]]]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

hub_name
Required
str

The name of the virtual hub. Required.

connection_name
Required
str

The name of the virtual hub bgp connection. Required.

Returns

Type Description

An instance of LROPoller that returns either dict mapping str to list of PeerRoute or the result of cls(response)

Exceptions

Type Description

list

Retrieves the details of all VirtualHubBgpConnections.

list(resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> Iterable[BgpConnection]

Parameters

Name Description
resource_group_name
Required
str

The resource group name of the VirtualHub. Required.

virtual_hub_name
Required
str

The name of the VirtualHub. Required.

Returns

Type Description

An iterator like instance of either BgpConnection 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'>