VirtualNetworkGatewayConnectionResource.SetSharedKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Put VirtualNetworkGatewayConnectionSharedKey operation sets 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
- Operation Id: VirtualNetworkGatewayConnections_SetSharedKey
- Default Api Version: 2024-03-01
- Resource: VirtualNetworkGatewayConnectionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionSharedKey> SetSharedKey (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.ConnectionSharedKey connectionSharedKey, System.Threading.CancellationToken cancellationToken = default);
abstract member SetSharedKey : Azure.WaitUntil * Azure.ResourceManager.Network.Models.ConnectionSharedKey * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionSharedKey>
override this.SetSharedKey : Azure.WaitUntil * Azure.ResourceManager.Network.Models.ConnectionSharedKey * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.ConnectionSharedKey>
Public Overridable Function SetSharedKey (waitUntil As WaitUntil, connectionSharedKey As ConnectionSharedKey, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ConnectionSharedKey)
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.
- connectionSharedKey
- ConnectionSharedKey
Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
connectionSharedKey
is null.
Applies to
Azure SDK for .NET