Compartilhar via


ExpressRoutePortsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:express_route_ports> attribute.

Inheritance
builtins.object
ExpressRoutePortsOperations

Constructor

ExpressRoutePortsOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates the specified ExpressRoutePort resource.

begin_delete

Deletes the specified ExpressRoutePort resource.

generate_loa

Generate a letter of authorization for the requested ExpressRoutePort resource.

get

Retrieves the requested ExpressRoutePort resource.

list

List all the ExpressRoutePort resources in the specified subscription.

list_by_resource_group

List all the ExpressRoutePort resources in the specified resource group.

update_tags

Update ExpressRoutePort tags.

begin_create_or_update

Creates or updates the specified ExpressRoutePort resource.

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

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 ExpressRoutePort resource. Required.

parameters
Required

Parameters supplied to the create ExpressRoutePort operation. Is either a ExpressRoutePort type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified ExpressRoutePort resource.

begin_delete(resource_group_name: str, express_route_port_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 ExpressRoutePort resource. Required.

Returns

Type Description

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

Exceptions

Type Description

generate_loa

Generate a letter of authorization for the requested ExpressRoutePort resource.

generate_loa(resource_group_name: str, express_route_port_name: str, request: _models.GenerateExpressRoutePortsLOARequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.GenerateExpressRoutePortsLOAResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

request
Required

Request parameters supplied to generate a letter of authorization. Is either a GenerateExpressRoutePortsLOARequest type or a IO[bytes] type. Required.

Returns

Type Description

GenerateExpressRoutePortsLOAResult or the result of cls(response)

Exceptions

Type Description

get

Retrieves the requested ExpressRoutePort resource.

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

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

Returns

Type Description

ExpressRoutePort or the result of cls(response)

Exceptions

Type Description

list

List all the ExpressRoutePort resources in the specified subscription.

list(**kwargs: Any) -> Iterable[ExpressRoutePort]

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

List all the ExpressRoutePort resources in the specified resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[ExpressRoutePort]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

update_tags

Update ExpressRoutePort tags.

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

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 ExpressRoutePort resource. Required.

parameters
Required

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

Returns

Type Description

ExpressRoutePort 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'>