NetworkExtensions.GetPublicIPAddresses Method

Definition

Overloads

GetPublicIPAddresses(ResourceGroupResource)

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

GetPublicIPAddresses(SubscriptionResource, CancellationToken)

Gets all the public IP addresses in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses
  • Operation Id: PublicIPAddresses_ListAll
  • Default Api Version: 2024-03-01
  • Resource: PublicIPAddressResource

GetPublicIPAddresses(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PublicIPAddressResources and their operations over a PublicIPAddressResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPublicIPAddresses(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all the public IP addresses in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to