VirtualMachineScaleSetVmNetworkResource.GetPublicIPAddressDataAsync Method

Definition

Get the specified public IP address in a virtual machine scale set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}
  • Operation Id: VirtualMachineScaleSets_GetPublicIPAddress
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.PublicIPAddressData>> GetPublicIPAddressDataAsync (string networkInterfaceName, string ipConfigurationName, string publicIPAddressName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPublicIPAddressDataAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.PublicIPAddressData>>
override this.GetPublicIPAddressDataAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.PublicIPAddressData>>
Public Overridable Function GetPublicIPAddressDataAsync (networkInterfaceName As String, ipConfigurationName As String, publicIPAddressName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PublicIPAddressData))

Parameters

networkInterfaceName
String

The name of the network interface.

ipConfigurationName
String

The name of the IP configuration.

publicIPAddressName
String

The name of the public IP Address.

expand
String

Expands referenced resources.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

networkInterfaceName, ipConfigurationName or publicIPAddressName is an empty string, and was expected to be non-empty.

networkInterfaceName, ipConfigurationName or publicIPAddressName is null.

Applies to