BastionHostResource.DeleteBastionShareableLinkAsync Method

Definition

Deletes the Bastion Shareable Links for all the VMs specified in the request.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks.
  • Operation Id. : BastionHosts_DeleteBastionShareableLink.
  • Default Api Version. : 2025-07-01.
  • Resource. : BastionHostResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteBastionShareableLinkAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.BastionShareableLinkListContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteBastionShareableLinkAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.BastionShareableLinkListContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.DeleteBastionShareableLinkAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.BastionShareableLinkListContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function DeleteBastionShareableLinkAsync (waitUntil As WaitUntil, content As BastionShareableLinkListContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

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.

content
BastionShareableLinkListContent

Post request for Create/Delete/Get Bastion Shareable Link endpoints.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to