Sdílet prostřednictvím


ManagementGroupNetworkManagerConnectionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:management_group_network_manager_connections> attribute.

Inheritance
builtins.object
ManagementGroupNetworkManagerConnectionsOperations

Constructor

ManagementGroupNetworkManagerConnectionsOperations(*args, **kwargs)

Methods

create_or_update

Create a network manager connection on this management group.

delete

Delete specified pending connection created by this management group.

get

Get a specified connection created by this management group.

list

List all network manager connections created by this management group.

create_or_update

Create a network manager connection on this management group.

create_or_update(management_group_id: str, network_manager_connection_name: str, parameters: _models.NetworkManagerConnection, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NetworkManagerConnection

Parameters

Name Description
management_group_id
Required
str

The management group Id which uniquely identify the Microsoft Azure management group. Required.

network_manager_connection_name
Required
str

Name for the network manager connection. Required.

parameters
Required

Network manager connection to be created/updated. Is either a NetworkManagerConnection type or a IO[bytes] type. Required.

Returns

Type Description

NetworkManagerConnection or the result of cls(response)

Exceptions

Type Description

delete

Delete specified pending connection created by this management group.

delete(management_group_id: str, network_manager_connection_name: str, **kwargs: Any) -> None

Parameters

Name Description
management_group_id
Required
str

The management group Id which uniquely identify the Microsoft Azure management group. Required.

network_manager_connection_name
Required
str

Name for the network manager connection. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get a specified connection created by this management group.

get(management_group_id: str, network_manager_connection_name: str, **kwargs: Any) -> NetworkManagerConnection

Parameters

Name Description
management_group_id
Required
str

The management group Id which uniquely identify the Microsoft Azure management group. Required.

network_manager_connection_name
Required
str

Name for the network manager connection. Required.

Returns

Type Description

NetworkManagerConnection or the result of cls(response)

Exceptions

Type Description

list

List all network manager connections created by this management group.

list(management_group_id: str, *, top: int | None = None, skip_token: str | None = None, **kwargs: Any) -> Iterable[NetworkManagerConnection]

Parameters

Name Description
management_group_id
Required
str

The management group Id which uniquely identify the Microsoft Azure management group. Required.

Keyword-Only Parameters

Name Description
top
int

An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None.

skip_token
str

SkipToken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None.

Returns

Type Description

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