NetworkExtensions.GetCloudServicePublicIPAddressesAsync Method

Definition

Gets information about all public IP addresses on a cloud service level. <item> Mocking. To mock this method, please mock GetCloudServicePublicIPAddressesAsync(String, CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.Network.PublicIPAddressData> GetCloudServicePublicIPAddressesAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServicePublicIPAddressesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.PublicIPAddressData>
<Extension()>
Public Function GetCloudServicePublicIPAddressesAsync (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PublicIPAddressData)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

cloudServiceName
String

The name of the cloud service.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to