BastionHostResource.GetBastionShareableLinkAsync 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.
Return the Bastion Shareable Links for all the VMs specified in the request.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks.
- Operation Id. : BastionHosts_GetBastionShareableLink.
- Default Api Version. : 2025-07-01.
- Resource. : BastionHostResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.Models.BastionShareableLink> GetBastionShareableLinkAsync(Azure.ResourceManager.Network.Models.BastionShareableLinkListContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBastionShareableLinkAsync : Azure.ResourceManager.Network.Models.BastionShareableLinkListContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.BastionShareableLink>
override this.GetBastionShareableLinkAsync : Azure.ResourceManager.Network.Models.BastionShareableLinkListContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.BastionShareableLink>
Public Overridable Function GetBastionShareableLinkAsync (content As BastionShareableLinkListContent, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of BastionShareableLink)
Parameters
- content
- BastionShareableLinkListContent
Post request for Create/Delete/Get Bastion Shareable Link endpoints.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of BastionShareableLink that may take multiple service requests to iterate over.
Exceptions
content is null.