MockableNetworkResourceGroupResource.GetAutoApprovedPrivateLinkServicesByResourceGroupAsync Method

Definition

Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices.
  • Operation Id. : PrivateLinkServicesOperationGroup_ListAutoApprovedPrivateLinkServicesByResourceGroup.
  • Default Api Version. : 2025-07-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AutoApprovedPrivateLinkService> GetAutoApprovedPrivateLinkServicesByResourceGroupAsync(string location, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutoApprovedPrivateLinkServicesByResourceGroupAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AutoApprovedPrivateLinkService>
override this.GetAutoApprovedPrivateLinkServicesByResourceGroupAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.AutoApprovedPrivateLinkService>
Public Overridable Function GetAutoApprovedPrivateLinkServicesByResourceGroupAsync (location As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AutoApprovedPrivateLinkService)

Parameters

location
String

The location name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of AutoApprovedPrivateLinkService that may take multiple service requests to iterate over.

Exceptions

location is null.

location is an empty string, and was expected to be non-empty.

Applies to