GetPublicIPs
Use this data source to access information about a set of existing Public IP Addresses.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetPublicIPs.InvokeAsync(new Azure.Network.GetPublicIPsArgs
{
Attached = false,
ResourceGroupName = "pip-test",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := false
_, err := network.GetPublicIPs(ctx, &network.GetPublicIPsArgs{
Attached: &opt0,
ResourceGroupName: "pip-test",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.get_public_i_ps(attached=False,
resource_group_name="pip-test")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.network.getPublicIPs({
attached: false,
resourceGroupName: "pip-test",
}, { async: true }));Using GetPublicIPs
function getPublicIPs(args: GetPublicIPsArgs, opts?: InvokeOptions): Promise<GetPublicIPsResult>function get_public_i_ps(allocation_type=None, attached=None, name_prefix=None, resource_group_name=None, opts=None)func GetPublicIPs(ctx *Context, args *GetPublicIPsArgs, opts ...InvokeOption) (*GetPublicIPsResult, error)public static class GetPublicIPs {
public static Task<GetPublicIPsResult> InvokeAsync(GetPublicIPsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Resource
Group stringName Specifies the name of the resource group.
- Allocation
Type string The Allocation Type for the Public IP Address. Possible values include
StaticorDynamic.- Attached bool
Filter to include IP Addresses which are attached to a device, such as a VM/LB (
true) or unattached (false).- Name
Prefix string A prefix match used for the IP Addresses
namefield, case sensitive.
- Resource
Group stringName Specifies the name of the resource group.
- Allocation
Type string The Allocation Type for the Public IP Address. Possible values include
StaticorDynamic.- Attached bool
Filter to include IP Addresses which are attached to a device, such as a VM/LB (
true) or unattached (false).- Name
Prefix string A prefix match used for the IP Addresses
namefield, case sensitive.
- resource
Group stringName Specifies the name of the resource group.
- allocation
Type string The Allocation Type for the Public IP Address. Possible values include
StaticorDynamic.- attached boolean
Filter to include IP Addresses which are attached to a device, such as a VM/LB (
true) or unattached (false).- name
Prefix string A prefix match used for the IP Addresses
namefield, case sensitive.
- resource_
group_ strname Specifies the name of the resource group.
- allocation_
type str The Allocation Type for the Public IP Address. Possible values include
StaticorDynamic.- attached bool
Filter to include IP Addresses which are attached to a device, such as a VM/LB (
true) or unattached (false).- name_
prefix str A prefix match used for the IP Addresses
namefield, case sensitive.
GetPublicIPs Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Public
Ips List<GetPublic IPs Public Ip> A List of
public_ipsblocks as defined below filtered by the criteria above.- Resource
Group stringName - Allocation
Type string - Attached bool
- Name
Prefix string
- Id string
The provider-assigned unique ID for this managed resource.
- Public
Ips []GetPublic IPs Public Ip A List of
public_ipsblocks as defined below filtered by the criteria above.- Resource
Group stringName - Allocation
Type string - Attached bool
- Name
Prefix string
- id string
The provider-assigned unique ID for this managed resource.
- public
Ips GetPublic IPs Public Ip[] A List of
public_ipsblocks as defined below filtered by the criteria above.- resource
Group stringName - allocation
Type string - attached boolean
- name
Prefix string
- id str
The provider-assigned unique ID for this managed resource.
- public_
ips List[GetPublic IPs Public Ip] A List of
public_ipsblocks as defined below filtered by the criteria above.- resource_
group_ strname - allocation_
type str - attached bool
- name_
prefix str
Supporting Types
GetPublicIPsPublicIp
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- domain_
name_ strlabel The Domain Name Label of the Public IP Address
- fqdn str
The FQDN of the Public IP Address
- id str
The ID of the Public IP Address
- ip_
address str - name str
The Name of the Public IP Address
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.