FloatingIp

class FloatingIp : KotlinCustomResource

Deprecated: DigitalOcean Floating IPs have been renamed reserved IPs. This resource will be removed in a future release. Please use digitalocean.ReservedIp instead. Provides a DigitalOcean Floating IP to represent a publicly-accessible static IP addresses that can be mapped to one of your Droplets. NOTE: Floating IPs can be assigned to a Droplet either directly on the digitalocean.FloatingIp resource by setting a droplet_id or using the digitalocean.FloatingIpAssignment resource, but the two cannot be used together.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.Droplet;
import com.pulumi.digitalocean.DropletArgs;
import com.pulumi.digitalocean.FloatingIp;
import com.pulumi.digitalocean.FloatingIpArgs;
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 foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder()
.size("s-1vcpu-1gb")
.image("ubuntu-18-04-x64")
.region("sgp1")
.ipv6(true)
.privateNetworking(true)
.build());
var foobarFloatingIp = new FloatingIp("foobarFloatingIp", FloatingIpArgs.builder()
.dropletId(foobarDroplet.id())
.region(foobarDroplet.region())
.build());
}
}

Import

Floating IPs can be imported using the ip, e.g.

$ pulumi import digitalocean:index/floatingIp:FloatingIp myip 192.168.0.1

Properties

Link copied to clipboard
val dropletId: Output<Int>?

The ID of Droplet that the Floating IP will be assigned to.

Link copied to clipboard
val floatingIpUrn: Output<String>

The uniform resource name of the floating ip

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddress: Output<String>

The IP Address of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: Output<String>

The region that the Floating IP is reserved to.

Link copied to clipboard
val urn: Output<String>