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",
});
import pulumi
import pulumi_genesiscloud as genesiscloud
floating_ip = genesiscloud.FloatingIp("floatingIp",
region="NORD-NO-KRS-1",
version="ipv4")
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
})
}
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",
});
});
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());
}
}
resources:
floatingIp:
type: genesiscloud:FloatingIp
properties:
region: NORD-NO-KRS-1
version: ipv4
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 string
- The unique name of the resource.
- args FloatingIpArgs
- 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 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 string
- The unique name of the resource.
- args FloatingIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FloatingIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
floating_ip_resource = genesiscloud.FloatingIp("floatingIpResource",
region="string",
version="string",
description="string",
name="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const floatingIpResource = new genesiscloud.FloatingIp("floatingIpResource", {
region: "string",
version: "string",
description: "string",
name: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: genesiscloud:FloatingIp
properties:
description: string
name: string
region: string
timeouts:
create: string
delete: string
read: string
update: string
version: string
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 string
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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
Genesis
Cloud. Pulumi Package. Genesiscloud. Inputs. Floating Ip Timeouts
- Region string
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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
Floating
Ip Timeouts Args
- region String
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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
Floating
Ip Timeouts
- region string
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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
Floating
Ip Timeouts
- region str
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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
Floating
Ip Timeouts Args
- region String
- The region identifier. - If the value of this attribute changes, the resource will be replaced. - The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- 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"].
- 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:
- Created
At string - The timestamp when this floating IP was created in RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - 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 string
- The floating IP status.
- Updated
At string - The timestamp when this image was last updated in RFC 3339.
- Created
At string - The timestamp when this floating IP was created in RFC 3339.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - 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 string
- The floating IP status.
- Updated
At string - The timestamp when this image was last updated in RFC 3339.
- created
At String - The timestamp when this floating IP was created in RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address of the floating IP.
- is
Public 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.
- updated
At String - The timestamp when this image was last updated in RFC 3339.
- created
At string - The timestamp when this floating IP was created in RFC 3339.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - The IP address of the floating IP.
- is
Public 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.
- updated
At 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.
- created
At String - The timestamp when this floating IP was created in RFC 3339.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - The IP address of the floating IP.
- is
Public 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.
- updated
At 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)
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.
- Created
At 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.
- Ip
Address string - 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 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- Status string
- The floating IP status.
- Timeouts
Genesis
Cloud. Pulumi Package. Genesiscloud. Inputs. Floating Ip Timeouts - Updated
At 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 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.
- Ip
Address string - 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 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- Status string
- The floating IP status.
- Timeouts
Floating
Ip Timeouts Args - Updated
At 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 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.
- ip
Address String - The IP address of the floating IP.
- is
Public 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- status String
- The floating IP status.
- timeouts
Floating
Ip Timeouts - updated
At 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 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.
- ip
Address string - The IP address of the floating IP.
- is
Public 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- status string
- The floating IP status.
- timeouts
Floating
Ip Timeouts - updated
At 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- status str
- The floating IP status.
- timeouts
Floating
Ip Timeouts Args - 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"].
- created
At 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.
- ip
Address String - The IP address of the floating IP.
- is
Public 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: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- status String
- The floating IP status.
- timeouts Property Map
- updated
At 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
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.