P2SVpnGatewaysOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:p2_svpn_gateways> attribute.
- Inheritance
-
builtins.objectP2SVpnGatewaysOperations
Constructor
P2SVpnGatewaysOperations(*args, **kwargs)
Methods
begin_create_or_update |
Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. |
begin_delete |
Deletes a virtual wan p2s vpn gateway. |
begin_disconnect_p2_s_vpn_connections |
Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. |
begin_generate_vpn_profile |
Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. |
begin_get_p2_s_vpn_connection_health |
Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. |
begin_get_p2_s_vpn_connection_health_detailed |
Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. |
begin_reset |
Resets the primary of the p2s vpn gateway in the specified resource group. |
begin_update_tags |
Updates virtual wan p2s vpn gateway tags. |
get |
Retrieves the details of a virtual wan p2s vpn gateway. |
list |
Lists all the P2SVpnGateways in a subscription. |
list_by_resource_group |
Lists all the P2SVpnGateways in a resource group. |
begin_create_or_update
Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway.
begin_create_or_update(resource_group_name: str, gateway_name: str, p2_s_vpn_gateway_parameters: _models.P2SVpnGateway, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.P2SVpnGateway]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
gateway_name
Required
|
The name of the gateway. Required. |
p2_s_vpn_gateway_parameters
Required
|
Parameters supplied to create or Update a virtual wan p2s vpn gateway. Is either a P2SVpnGateway type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes a virtual wan p2s vpn gateway.
begin_delete(resource_group_name: str, gateway_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
gateway_name
Required
|
The name of the gateway. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_disconnect_p2_s_vpn_connections
Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.
begin_disconnect_p2_s_vpn_connections(resource_group_name: str, p2_s_vpn_gateway_name: str, request: _models.P2SVpnConnectionRequest, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
p2_s_vpn_gateway_name
Required
|
The name of the P2S Vpn Gateway. Required. |
request
Required
|
The parameters are supplied to disconnect p2s vpn connections. Is either a P2SVpnConnectionRequest type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_generate_vpn_profile
Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.
begin_generate_vpn_profile(resource_group_name: str, gateway_name: str, parameters: _models.P2SVpnProfileParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.VpnProfileResponse]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gateway_name
Required
|
The name of the P2SVpnGateway. Required. |
parameters
Required
|
Parameters supplied to the generate P2SVpnGateway VPN client package operation. Is either a P2SVpnProfileParameters type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either VpnProfileResponse or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_get_p2_s_vpn_connection_health
Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.
begin_get_p2_s_vpn_connection_health(resource_group_name: str, gateway_name: str, **kwargs: Any) -> LROPoller[P2SVpnGateway]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gateway_name
Required
|
The name of the P2SVpnGateway. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_get_p2_s_vpn_connection_health_detailed
Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.
begin_get_p2_s_vpn_connection_health_detailed(resource_group_name: str, gateway_name: str, request: _models.P2SVpnConnectionHealthRequest, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.P2SVpnConnectionHealth]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
gateway_name
Required
|
The name of the P2SVpnGateway. Required. |
request
Required
|
Request parameters supplied to get p2s vpn connections detailed health. Is either a P2SVpnConnectionHealthRequest type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either P2SVpnConnectionHealth or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_reset
Resets the primary of the p2s vpn gateway in the specified resource group.
begin_reset(resource_group_name: str, gateway_name: str, **kwargs: Any) -> LROPoller[P2SVpnGateway]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
gateway_name
Required
|
The name of the gateway. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update_tags
Updates virtual wan p2s vpn gateway tags.
begin_update_tags(resource_group_name: str, gateway_name: str, p2_s_vpn_gateway_parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.P2SVpnGateway]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
gateway_name
Required
|
The name of the gateway. Required. |
p2_s_vpn_gateway_parameters
Required
|
Parameters supplied to update a virtual wan p2s vpn gateway tags. Is either a TagsObject type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Retrieves the details of a virtual wan p2s vpn gateway.
get(resource_group_name: str, gateway_name: str, **kwargs: Any) -> P2SVpnGateway
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
gateway_name
Required
|
The name of the gateway. Required. |
Returns
Type | Description |
---|---|
P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists all the P2SVpnGateways in a subscription.
list(**kwargs: Any) -> Iterable[P2SVpnGateway]
Returns
Type | Description |
---|---|
An iterator like instance of either P2SVpnGateway or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_resource_group
Lists all the P2SVpnGateways in a resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[P2SVpnGateway]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name of the P2SVpnGateway. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either P2SVpnGateway 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'>
Azure SDK for Python