MockableHciVmResourceGroupResource.GetHciVmPublicIPAddress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The operation to get a virtual network.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/publicIPAddresses/{publicIPAddressName}.
- Operation Id. : PublicIPAddresses_Get.
- Default Api Version. : 2025-09-01-preview.
public virtual Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmPublicIPAddressResource> GetHciVmPublicIPAddress(string publicIPAddressName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciVmPublicIPAddress : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmPublicIPAddressResource>
override this.GetHciVmPublicIPAddress : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmPublicIPAddressResource>
Public Overridable Function GetHciVmPublicIPAddress (publicIPAddressName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HciVmPublicIPAddressResource)
Parameters
- publicIPAddressName
- String
Name of the public IP.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
publicIPAddressName is null.
publicIPAddressName is an empty string, and was expected to be non-empty.