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

ExpressRoutePortAuthorizationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:express_route_port_authorizations> attribute.

Inheritance
builtins.object
ExpressRoutePortAuthorizationsOperations

Constructor

ExpressRoutePortAuthorizationsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates an authorization in the specified express route port.

begin_delete

Deletes the specified authorization from the specified express route port.

get

Gets the specified authorization from the specified express route port.

list

Gets all authorizations in an express route port.

begin_create_or_update

Creates or updates an authorization in the specified express route port.

begin_create_or_update(resource_group_name: str, express_route_port_name: str, authorization_name: str, authorization_parameters: _models.ExpressRoutePortAuthorization, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ExpressRoutePortAuthorization]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of the express route port. Required.

authorization_name
Required
str

The name of the authorization. Required.

authorization_parameters
Required

Parameters supplied to the create or update express route port authorization operation. Is either a ExpressRoutePortAuthorization type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified authorization from the specified express route port.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of the express route port. Required.

authorization_name
Required
str

The name of the authorization. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets the specified authorization from the specified express route port.

get(resource_group_name: str, express_route_port_name: str, authorization_name: str, **kwargs: Any) -> ExpressRoutePortAuthorization

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of the express route port. Required.

authorization_name
Required
str

The name of the authorization. Required.

Returns

Type Description

ExpressRoutePortAuthorization or the result of cls(response)

Exceptions

Type Description

list

Gets all authorizations in an express route port.

list(resource_group_name: str, express_route_port_name: str, **kwargs: Any) -> Iterable[ExpressRoutePortAuthorization]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of the express route port. Required.

Returns

Type Description

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