Share via


NetworkExtensions.GetPublicIPPrefixes Method

Definition

Overloads

GetPublicIPPrefixes(ResourceGroupResource)

Gets a collection of PublicIPPrefixResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPublicIPPrefixes() instead.

GetPublicIPPrefixes(SubscriptionResource, CancellationToken)

Gets all the public IP prefixes in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes
  • Operation Id: PublicIPPrefixes_ListAll
  • Default Api Version: 2024-03-01
  • Resource: PublicIPPrefixResource

GetPublicIPPrefixes(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of PublicIPPrefixResources in the ResourceGroupResource. MockingTo mock this method, please mock GetPublicIPPrefixes() instead.

public static Azure.ResourceManager.Network.PublicIPPrefixCollection GetPublicIPPrefixes (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPublicIPPrefixes : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.PublicIPPrefixCollection
<Extension()>
Public Function GetPublicIPPrefixes (resourceGroupResource As ResourceGroupResource) As PublicIPPrefixCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PublicIPPrefixResources and their operations over a PublicIPPrefixResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPublicIPPrefixes(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all the public IP prefixes in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes
  • Operation Id: PublicIPPrefixes_ListAll
  • Default Api Version: 2024-03-01
  • Resource: PublicIPPrefixResource
public static Azure.Pageable<Azure.ResourceManager.Network.PublicIPPrefixResource> GetPublicIPPrefixes (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPublicIPPrefixes : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.PublicIPPrefixResource>
<Extension()>
Public Function GetPublicIPPrefixes (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PublicIPPrefixResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to