PublicIpArgs

data class PublicIpArgs(val allocationMethod: Output<String>? = null, val ddosProtectionMode: Output<String>? = null, val ddosProtectionPlanId: Output<String>? = null, val domainNameLabel: Output<String>? = null, val edgeZone: Output<String>? = null, val idleTimeoutInMinutes: Output<Int>? = null, val ipTags: Output<Map<String, String>>? = null, val ipVersion: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val publicIpPrefixId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val reverseFqdn: Output<String>? = null, val sku: Output<String>? = null, val skuTier: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<PublicIpArgs>

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 the lifecycle argument create_before_destroy = true. Otherwise, it can fail to disassociate on destruction.

Example Usage

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

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

Constructors

Link copied to clipboard
fun PublicIpArgs(allocationMethod: Output<String>? = null, ddosProtectionMode: Output<String>? = null, ddosProtectionPlanId: Output<String>? = null, domainNameLabel: Output<String>? = null, edgeZone: Output<String>? = null, idleTimeoutInMinutes: Output<Int>? = null, ipTags: Output<Map<String, String>>? = null, ipVersion: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, publicIpPrefixId: Output<String>? = null, resourceGroupName: Output<String>? = null, reverseFqdn: Output<String>? = null, sku: Output<String>? = null, skuTier: Output<String>? = null, tags: Output<Map<String, String>>? = null, zones: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PublicIpArgs

Properties

Link copied to clipboard
val allocationMethod: Output<String>? = null

Defines the allocation method for this IP address. Possible values are Static or Dynamic.

Link copied to clipboard
val ddosProtectionMode: Output<String>? = null

The DDoS protection mode of the public IP. Possible values are Disabled, Enabled, and VirtualNetworkInherited. Defaults to VirtualNetworkInherited.

Link copied to clipboard
val ddosProtectionPlanId: Output<String>? = null

The ID of DDoS protection plan associated with the public IP.

Link copied to clipboard
val domainNameLabel: Output<String>? = null

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.

Link copied to clipboard
val edgeZone: Output<String>? = null

Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.

Link copied to clipboard
val idleTimeoutInMinutes: Output<Int>? = null

Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.

Link copied to clipboard
val ipTags: Output<Map<String, String>>? = null

A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.

Link copied to clipboard
val ipVersion: Output<String>? = null

The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Public IP. Changing this forces a new Public IP to be created.

Link copied to clipboard
val publicIpPrefixId: Output<String>? = null

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.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.

Link copied to clipboard
val reverseFqdn: Output<String>? = null

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.

Link copied to clipboard
val sku: Output<String>? = null

The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic. Changing this forces a new resource to be created.

Link copied to clipboard
val skuTier: Output<String>? = null

The SKU Tier that should be used for the Public IP. Possible values are Regional and Global. Defaults to Regional. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val zones: Output<List<String>>? = null

A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.