Dela via


VirtualNetworkGatewayConnectionResource.ResetSharedKey Method

Definition

The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset
  • Operation Id: VirtualNetworkGatewayConnections_ResetSharedKey
  • Default Api Version: 2024-03-01
  • Resource: VirtualNetworkGatewayConnectionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionResetSharedKey> ResetSharedKey (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.ConnectionResetSharedKey connectionResetSharedKey, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetSharedKey : Azure.WaitUntil * Azure.ResourceManager.Network.Models.ConnectionResetSharedKey * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionResetSharedKey>
override this.ResetSharedKey : Azure.WaitUntil * Azure.ResourceManager.Network.Models.ConnectionResetSharedKey * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionResetSharedKey>
Public Overridable Function ResetSharedKey (waitUntil As WaitUntil, connectionResetSharedKey As ConnectionResetSharedKey, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ConnectionResetSharedKey)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

connectionResetSharedKey
ConnectionResetSharedKey

Parameters supplied to the begin reset virtual network gateway connection shared key operation through network resource provider.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

connectionResetSharedKey is null.

Applies to