VpnSitesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:vpn_sites> attribute.

Constructor

VpnSitesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite.

begin_delete

Deletes a VpnSite.

get

Retrieves the details of a VPN site.

list

Lists all the VpnSites in a subscription.

list_by_resource_group

Lists all the vpnSites in a resource group.

update_tags

Updates VpnSite tags.

begin_create_or_update

Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite.

begin_create_or_update(resource_group_name: str, vpn_site_name: str, vpn_site_parameters: _models.VpnSite, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VpnSite]

Parameters

Name Description
resource_group_name
Required
str

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

vpn_site_name
Required
str

The name of the VpnSite being retrieved. Required.

vpn_site_parameters
Required
VpnSite or <xref:JSON> or IO[bytes]

Parameters supplied to create or update VpnSite. Is one of the following types: VpnSite, JSON, IO[bytes] Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a VpnSite.

begin_delete(resource_group_name: str, vpn_site_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.

vpn_site_name
Required
str

The name of the VpnSite being retrieved. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

Retrieves the details of a VPN site.

get(resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> VpnSite

Parameters

Name Description
resource_group_name
Required
str

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

vpn_site_name
Required
str

The name of the VpnSite being retrieved. Required.

Returns

Type Description

VpnSite. The VpnSite is compatible with MutableMapping

Exceptions

Type Description

list

Lists all the VpnSites in a subscription.

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

Returns

Type Description

An iterator like instance of VpnSite

Exceptions

Type Description

list_by_resource_group

Lists all the vpnSites in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[VpnSite]

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 VpnSite

Exceptions

Type Description

update_tags

Updates VpnSite tags.

update_tags(resource_group_name: str, vpn_site_name: str, vpn_site_parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.VpnSite

Parameters

Name Description
resource_group_name
Required
str

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

vpn_site_name
Required
str

The name of the VpnSite being retrieved. Required.

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

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

Returns

Type Description

VpnSite. The VpnSite is compatible with MutableMapping

Exceptions

Type Description