Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.network.PublicIp
Explore with Pulumi AI
Manages a Public IP Address.
Note If this resource is to be associated with a resource that requires disassociation before destruction (such as
azure.network.NetworkInterface
) it is recommended to set thelifecycle
argumentcreate_before_destroy = true
. Otherwise, it can fail to disassociate on destruction.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AllocationMethod = "Static",
Tags =
{
{ "environment", "Production" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewPublicIp(ctx, "examplePublicIp", &network.PublicIpArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AllocationMethod: pulumi.String("Static"),
Tags: pulumi.StringMap{
"environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.allocationMethod("Static")
.tags(Map.of("environment", "Production"))
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_public_ip = azure.network.PublicIp("examplePublicIp",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
allocation_method="Static",
tags={
"environment": "Production",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
allocationMethod: "Static",
tags: {
environment: "Production",
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
examplePublicIp:
type: azure:network:PublicIp
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
allocationMethod: Static
tags:
environment: Production
Create PublicIp Resource
new PublicIp(name: string, args: PublicIpArgs, opts?: CustomResourceOptions);
@overload
def PublicIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocation_method: Optional[str] = None,
ddos_protection_mode: Optional[str] = None,
ddos_protection_plan_id: Optional[str] = None,
domain_name_label: Optional[str] = None,
edge_zone: Optional[str] = None,
idle_timeout_in_minutes: Optional[int] = None,
ip_tags: Optional[Mapping[str, str]] = None,
ip_version: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
public_ip_prefix_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
reverse_fqdn: Optional[str] = None,
sku: Optional[str] = None,
sku_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zones: Optional[Sequence[str]] = None)
@overload
def PublicIp(resource_name: str,
args: PublicIpArgs,
opts: Optional[ResourceOptions] = None)
func NewPublicIp(ctx *Context, name string, args PublicIpArgs, opts ...ResourceOption) (*PublicIp, error)
public PublicIp(string name, PublicIpArgs args, CustomResourceOptions? opts = null)
public PublicIp(String name, PublicIpArgs args)
public PublicIp(String name, PublicIpArgs args, CustomResourceOptions options)
type: azure:network:PublicIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PublicIp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PublicIp resource accepts the following input properties:
- Allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- Resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- Ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- Ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- Domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- Idle
Timeout intIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Dictionary<string, string>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- Ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- Public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- Reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- Sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zones List<string>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- Allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- Resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- Ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- Ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- Domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- Idle
Timeout intIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- map[string]string
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- Ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- Public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- Reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- Sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Zones []string
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method String Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- resource
Group StringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- ddos
Protection StringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection StringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name StringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone String Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- idle
Timeout IntegerIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Map<String,String>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version String The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location String
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name String
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip StringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- reverse
Fqdn String A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier String The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Map<String,String>
A mapping of tags to assign to the resource.
- zones List<String>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- idle
Timeout numberIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- {[key: string]: string}
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- zones string[]
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation_
method str Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- resource_
group_ strname The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- ddos_
protection_ strmode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos_
protection_ strplan_ id The ID of DDoS protection plan associated with the public IP.
- domain_
name_ strlabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge_
zone str Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- idle_
timeout_ intin_ minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Mapping[str, str]
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip_
version str The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location str
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name str
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public_
ip_ strprefix_ id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- reverse_
fqdn str A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku str
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku_
tier str The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Mapping[str, str]
A mapping of tags to assign to the resource.
- zones Sequence[str]
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method String Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- resource
Group StringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- ddos
Protection StringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection StringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name StringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone String Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- idle
Timeout NumberIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Map<String>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version String The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location String
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name String
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip StringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- reverse
Fqdn String A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier String The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Map<String>
A mapping of tags to assign to the resource.
- zones List<String>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicIp resource produces the following output properties:
- Fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string The IP address value that was allocated.
- Fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string The IP address value that was allocated.
- fqdn String
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String The IP address value that was allocated.
- fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- id string
The provider-assigned unique ID for this managed resource.
- ip
Address string The IP address value that was allocated.
- fqdn str
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- id str
The provider-assigned unique ID for this managed resource.
- ip_
address str The IP address value that was allocated.
- fqdn String
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String The IP address value that was allocated.
Look up Existing PublicIp Resource
Get an existing PublicIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PublicIpState, opts?: CustomResourceOptions): PublicIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_method: Optional[str] = None,
ddos_protection_mode: Optional[str] = None,
ddos_protection_plan_id: Optional[str] = None,
domain_name_label: Optional[str] = None,
edge_zone: Optional[str] = None,
fqdn: Optional[str] = None,
idle_timeout_in_minutes: Optional[int] = None,
ip_address: Optional[str] = None,
ip_tags: Optional[Mapping[str, str]] = None,
ip_version: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
public_ip_prefix_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
reverse_fqdn: Optional[str] = None,
sku: Optional[str] = None,
sku_tier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
zones: Optional[Sequence[str]] = None) -> PublicIp
func GetPublicIp(ctx *Context, name string, id IDInput, state *PublicIpState, opts ...ResourceOption) (*PublicIp, error)
public static PublicIp Get(string name, Input<string> id, PublicIpState? state, CustomResourceOptions? opts = null)
public static PublicIp get(String name, Output<String> id, PublicIpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- Ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- Ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- Domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- Fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- Idle
Timeout intIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Ip
Address string The IP address value that was allocated.
- Dictionary<string, string>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- Ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- Public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- Reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- Sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zones List<string>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- Allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- Ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- Ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- Domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- Edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- Fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- Idle
Timeout intIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- Ip
Address string The IP address value that was allocated.
- map[string]string
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- Ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- Public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- Reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- Sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- Sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Zones []string
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method String Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- ddos
Protection StringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection StringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name StringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone String Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- fqdn String
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- idle
Timeout IntegerIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address String The IP address value that was allocated.
- Map<String,String>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version String The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location String
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name String
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip StringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- resource
Group StringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- reverse
Fqdn String A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier String The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Map<String,String>
A mapping of tags to assign to the resource.
- zones List<String>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method string Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- ddos
Protection stringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection stringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name stringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone string Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- fqdn string
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- idle
Timeout numberIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address string The IP address value that was allocated.
- {[key: string]: string}
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version string The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location string
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name string
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip stringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- resource
Group stringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- reverse
Fqdn string A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku string
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier string The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- zones string[]
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation_
method str Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- ddos_
protection_ strmode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos_
protection_ strplan_ id The ID of DDoS protection plan associated with the public IP.
- domain_
name_ strlabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge_
zone str Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- fqdn str
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- idle_
timeout_ intin_ minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip_
address str The IP address value that was allocated.
- Mapping[str, str]
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip_
version str The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location str
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name str
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public_
ip_ strprefix_ id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- reverse_
fqdn str A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku str
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku_
tier str The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Mapping[str, str]
A mapping of tags to assign to the resource.
- zones Sequence[str]
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
- allocation
Method String Defines the allocation method for this IP address. Possible values are
Static
orDynamic
.- ddos
Protection StringMode The DDoS protection mode of the public IP. Possible values are
Disabled
,Enabled
, andVirtualNetworkInherited
. Defaults toVirtualNetworkInherited
.- ddos
Protection StringPlan Id The ID of DDoS protection plan associated with the public IP.
- domain
Name StringLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
- edge
Zone String Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
- fqdn String
Fully qualified domain name of the A DNS record associated with the public IP.
domain_name_label
must be specified to get thefqdn
. This is the concatenation of thedomain_name_label
and the regionalized DNS zone- idle
Timeout NumberIn Minutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
- ip
Address String The IP address value that was allocated.
- Map<String>
A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
- ip
Version String The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.
- location String
Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
- name String
Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
- public
Ip StringPrefix Id If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
- resource
Group StringName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
- reverse
Fqdn String A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
- sku String
The SKU of the Public IP. Accepted values are
Basic
andStandard
. Defaults toBasic
. Changing this forces a new resource to be created.- sku
Tier String The SKU Tier that should be used for the Public IP. Possible values are
Regional
andGlobal
. Defaults toRegional
. Changing this forces a new resource to be created.- Map<String>
A mapping of tags to assign to the resource.
- zones List<String>
A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
Import
Public IPs can be imported using the resource id
, e.g.
$ pulumi import azure:network/publicIp:PublicIp myPublicIp /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/publicIPAddresses/myPublicIpAddress1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.