ExpressRoutePortsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:express_route_ports> attribute.

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. The name is case insensitive. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

parameters
Required
ExpressRoutePort or <xref:JSON> or IO[bytes]

Parameters supplied to the create ExpressRoutePort operation. Is one of the following types: ExpressRoutePort, JSON, IO[bytes] Required.

Returns

Type Description

An instance of LROPoller that returns ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping

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. The name is case insensitive. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

Returns

Type Description

An instance of LROPoller that returns None

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. The name is case insensitive. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

request
Required

Request parameters supplied to generate a letter of authorization. Is one of the following types: GenerateExpressRoutePortsLOARequest, JSON, IO[bytes] Required.

Returns

Type Description

GenerateExpressRoutePortsLOAResult. The GenerateExpressRoutePortsLOAResult is compatible with MutableMapping

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. The name is case insensitive. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

Returns

Type Description

ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping

Exceptions

Type Description

list

List all the ExpressRoutePort resources in the specified subscription.

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

Returns

Type Description

An iterator like instance of ExpressRoutePort

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) -> ItemPaged[ExpressRoutePort]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

Returns

Type Description

An iterator like instance of ExpressRoutePort

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. The name is case insensitive. Required.

express_route_port_name
Required
str

The name of ExpressRoutePort. Required.

parameters
Required
TagsObject or <xref:JSON> or IO[bytes]

Parameters supplied to update ExpressRoutePort resource tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required.

Returns

Type Description

ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping

Exceptions

Type Description