1. Packages
  2. Genesis Cloud
  3. API Docs
  4. FloatingIp
Genesis Cloud v0.0.33 published on Thursday, Feb 27, 2025 by Genesiscloud

genesiscloud.FloatingIp

Explore with Pulumi AI

floating IP resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as genesiscloud from "@genesiscloud/pulumi-genesiscloud";

const floatingIp = new genesiscloud.FloatingIp("floatingIp", {
    region: "NORD-NO-KRS-1",
    version: "ipv4",
});
Copy
import pulumi
import pulumi_genesiscloud as genesiscloud

floating_ip = genesiscloud.FloatingIp("floatingIp",
    region="NORD-NO-KRS-1",
    version="ipv4")
Copy
package main

import (
	"github.com/genesiscloud/pulumi-genesiscloud/sdk/go/genesiscloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := genesiscloud.NewFloatingIp(ctx, "floatingIp", &genesiscloud.FloatingIpArgs{
			Region:  pulumi.String("NORD-NO-KRS-1"),
			Version: pulumi.String("ipv4"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Genesiscloud = GenesisCloud.PulumiPackage.Genesiscloud;

return await Deployment.RunAsync(() => 
{
    var floatingIp = new Genesiscloud.FloatingIp("floatingIp", new()
    {
        Region = "NORD-NO-KRS-1",
        Version = "ipv4",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.genesiscloud.FloatingIp;
import com.pulumi.genesiscloud.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 floatingIp = new FloatingIp("floatingIp", FloatingIpArgs.builder()
            .region("NORD-NO-KRS-1")
            .version("ipv4")
            .build());

    }
}
Copy
resources:
  floatingIp:
    type: genesiscloud:FloatingIp
    properties:
      region: NORD-NO-KRS-1
      version: ipv4
Copy

Create FloatingIp Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FloatingIp(name: string, args: FloatingIpArgs, opts?: CustomResourceOptions);
@overload
def FloatingIp(resource_name: str,
               args: FloatingIpArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def FloatingIp(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               region: Optional[str] = None,
               version: Optional[str] = None,
               description: Optional[str] = None,
               name: Optional[str] = None,
               timeouts: Optional[FloatingIpTimeoutsArgs] = None)
func NewFloatingIp(ctx *Context, name string, args FloatingIpArgs, opts ...ResourceOption) (*FloatingIp, error)
public FloatingIp(string name, FloatingIpArgs args, CustomResourceOptions? opts = null)
public FloatingIp(String name, FloatingIpArgs args)
public FloatingIp(String name, FloatingIpArgs args, CustomResourceOptions options)
type: genesiscloud:FloatingIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FloatingIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FloatingIpArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FloatingIpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FloatingIpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FloatingIpArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var floatingIpResource = new Genesiscloud.FloatingIp("floatingIpResource", new()
{
    Region = "string",
    Version = "string",
    Description = "string",
    Name = "string",
    Timeouts = new Genesiscloud.Inputs.FloatingIpTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Read = "string",
        Update = "string",
    },
});
Copy
example, err := genesiscloud.NewFloatingIp(ctx, "floatingIpResource", &genesiscloud.FloatingIpArgs{
	Region:      pulumi.String("string"),
	Version:     pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Timeouts: &genesiscloud.FloatingIpTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
		Read:   pulumi.String("string"),
		Update: pulumi.String("string"),
	},
})
Copy
var floatingIpResource = new FloatingIp("floatingIpResource", FloatingIpArgs.builder()
    .region("string")
    .version("string")
    .description("string")
    .name("string")
    .timeouts(FloatingIpTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .read("string")
        .update("string")
        .build())
    .build());
Copy
floating_ip_resource = genesiscloud.FloatingIp("floatingIpResource",
    region="string",
    version="string",
    description="string",
    name="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "read": "string",
        "update": "string",
    })
Copy
const floatingIpResource = new genesiscloud.FloatingIp("floatingIpResource", {
    region: "string",
    version: "string",
    description: "string",
    name: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        read: "string",
        update: "string",
    },
});
Copy
type: genesiscloud:FloatingIp
properties:
    description: string
    name: string
    region: string
    timeouts:
        create: string
        delete: string
        read: string
        update: string
    version: string
Copy

FloatingIp Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FloatingIp resource accepts the following input properties:

Region This property is required. string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
Version This property is required. string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
Description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
Name string
The human-readable name for the floating IP.
Timeouts GenesisCloud.PulumiPackage.Genesiscloud.Inputs.FloatingIpTimeouts
Region This property is required. string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
Version This property is required. string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
Description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
Name string
The human-readable name for the floating IP.
Timeouts FloatingIpTimeoutsArgs
region This property is required. String
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
version This property is required. String
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
description String
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
name String
The human-readable name for the floating IP.
timeouts FloatingIpTimeouts
region This property is required. string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
version This property is required. string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
name string
The human-readable name for the floating IP.
timeouts FloatingIpTimeouts
region This property is required. str
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
version This property is required. str
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
description str
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
name str
The human-readable name for the floating IP.
timeouts FloatingIpTimeoutsArgs
region This property is required. String
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
version This property is required. String
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
description String
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
name String
The human-readable name for the floating IP.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the FloatingIp resource produces the following output properties:

CreatedAt string
The timestamp when this floating IP was created in RFC 3339.
Id string
The provider-assigned unique ID for this managed resource.
IpAddress string
The IP address of the floating IP.
IsPublic bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
Status string
The floating IP status.
UpdatedAt string
The timestamp when this image was last updated in RFC 3339.
CreatedAt string
The timestamp when this floating IP was created in RFC 3339.
Id string
The provider-assigned unique ID for this managed resource.
IpAddress string
The IP address of the floating IP.
IsPublic bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
Status string
The floating IP status.
UpdatedAt string
The timestamp when this image was last updated in RFC 3339.
createdAt String
The timestamp when this floating IP was created in RFC 3339.
id String
The provider-assigned unique ID for this managed resource.
ipAddress String
The IP address of the floating IP.
isPublic Boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
status String
The floating IP status.
updatedAt String
The timestamp when this image was last updated in RFC 3339.
createdAt string
The timestamp when this floating IP was created in RFC 3339.
id string
The provider-assigned unique ID for this managed resource.
ipAddress string
The IP address of the floating IP.
isPublic boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
status string
The floating IP status.
updatedAt string
The timestamp when this image was last updated in RFC 3339.
created_at str
The timestamp when this floating IP was created in RFC 3339.
id str
The provider-assigned unique ID for this managed resource.
ip_address str
The IP address of the floating IP.
is_public bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
status str
The floating IP status.
updated_at str
The timestamp when this image was last updated in RFC 3339.
createdAt String
The timestamp when this floating IP was created in RFC 3339.
id String
The provider-assigned unique ID for this managed resource.
ipAddress String
The IP address of the floating IP.
isPublic Boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
status String
The floating IP status.
updatedAt String
The timestamp when this image was last updated in RFC 3339.

Look up Existing FloatingIp Resource

Get an existing FloatingIp 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?: FloatingIpState, opts?: CustomResourceOptions): FloatingIp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        ip_address: Optional[str] = None,
        is_public: Optional[bool] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        status: Optional[str] = None,
        timeouts: Optional[FloatingIpTimeoutsArgs] = None,
        updated_at: Optional[str] = None,
        version: Optional[str] = None) -> FloatingIp
func GetFloatingIp(ctx *Context, name string, id IDInput, state *FloatingIpState, opts ...ResourceOption) (*FloatingIp, error)
public static FloatingIp Get(string name, Input<string> id, FloatingIpState? state, CustomResourceOptions? opts = null)
public static FloatingIp get(String name, Output<String> id, FloatingIpState state, CustomResourceOptions options)
resources:  _:    type: genesiscloud:FloatingIp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
CreatedAt string
The timestamp when this floating IP was created in RFC 3339.
Description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
IpAddress string
The IP address of the floating IP.
IsPublic bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
Name string
The human-readable name for the floating IP.
Region string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
Status string
The floating IP status.
Timeouts GenesisCloud.PulumiPackage.Genesiscloud.Inputs.FloatingIpTimeouts
UpdatedAt string
The timestamp when this image was last updated in RFC 3339.
Version string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
CreatedAt string
The timestamp when this floating IP was created in RFC 3339.
Description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
IpAddress string
The IP address of the floating IP.
IsPublic bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
Name string
The human-readable name for the floating IP.
Region string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
Status string
The floating IP status.
Timeouts FloatingIpTimeoutsArgs
UpdatedAt string
The timestamp when this image was last updated in RFC 3339.
Version string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
createdAt String
The timestamp when this floating IP was created in RFC 3339.
description String
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
ipAddress String
The IP address of the floating IP.
isPublic Boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
name String
The human-readable name for the floating IP.
region String
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
status String
The floating IP status.
timeouts FloatingIpTimeouts
updatedAt String
The timestamp when this image was last updated in RFC 3339.
version String
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
createdAt string
The timestamp when this floating IP was created in RFC 3339.
description string
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
ipAddress string
The IP address of the floating IP.
isPublic boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
name string
The human-readable name for the floating IP.
region string
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
status string
The floating IP status.
timeouts FloatingIpTimeouts
updatedAt string
The timestamp when this image was last updated in RFC 3339.
version string
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
created_at str
The timestamp when this floating IP was created in RFC 3339.
description str
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
ip_address str
The IP address of the floating IP.
is_public bool
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
name str
The human-readable name for the floating IP.
region str
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
status str
The floating IP status.
timeouts FloatingIpTimeoutsArgs
updated_at str
The timestamp when this image was last updated in RFC 3339.
version str
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].
createdAt String
The timestamp when this floating IP was created in RFC 3339.
description String
The human-readable description set for the floating IP. - Sets the default value "" if the attribute is not set.
ipAddress String
The IP address of the floating IP.
isPublic Boolean
Whether the floating IP is public or private. - Sets the default value "true" if the attribute is not set.
name String
The human-readable name for the floating IP.
region String
The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["EUC-DE-MUC-1" "NORD-NO-KRS-1"].
status String
The floating IP status.
timeouts Property Map
updatedAt String
The timestamp when this image was last updated in RFC 3339.
version String
The version of the floating IP. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ipv4"].

Supporting Types

FloatingIpTimeouts
, FloatingIpTimeoutsArgs

Create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Delete string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Update string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Delete string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Update string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
delete String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
read String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
update String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
delete string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
update string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
delete str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
read str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
update str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
create String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
delete String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
read String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
update String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

Import

$ pulumi import genesiscloud:index/floatingIp:FloatingIp example 18efeec8-94f0-4776-8ff2-5e9b49c74608
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
genesiscloud genesiscloud/pulumi-genesiscloud
License
Apache-2.0
Notes
This Pulumi package is based on the genesiscloud Terraform Provider.