nutanix.FloatingIp
Explore with Pulumi AI
Provides Nutanix resource to create Floating IPs.
create Floating IP with External Subnet UUID
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const fip1 = new nutanix.FloatingIp("fip1", {externalSubnetReferenceUuid: "{{ext_sub_uuid}}"});
import pulumi
import pulumi_nutanix as nutanix
fip1 = nutanix.FloatingIp("fip1", external_subnet_reference_uuid="{{ext_sub_uuid}}")
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.NewFloatingIp(ctx, "fip1", &nutanix.FloatingIpArgs{
			ExternalSubnetReferenceUuid: pulumi.String("{{ext_sub_uuid}}"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() => 
{
    var fip1 = new Nutanix.FloatingIp("fip1", new()
    {
        ExternalSubnetReferenceUuid = "{{ext_sub_uuid}}",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.FloatingIp;
import com.pulumi.nutanix.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 fip1 = new FloatingIp("fip1", FloatingIpArgs.builder()
            .externalSubnetReferenceUuid("{{ext_sub_uuid}}")
            .build());
    }
}
resources:
  fip1:
    type: nutanix:FloatingIp
    properties:
      externalSubnetReferenceUuid: '{{ext_sub_uuid}}'
create Floating IP with vpc name with external subnet name
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const fip2 = new nutanix.FloatingIp("fip2", {
    externalSubnetReferenceName: "{{ext_sub_name}}",
    privateIp: "{{ip_address}}",
    vpcReferenceName: "{{vpc_name}}",
});
import pulumi
import pulumi_nutanix as nutanix
fip2 = nutanix.FloatingIp("fip2",
    external_subnet_reference_name="{{ext_sub_name}}",
    private_ip="{{ip_address}}",
    vpc_reference_name="{{vpc_name}}")
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.NewFloatingIp(ctx, "fip2", &nutanix.FloatingIpArgs{
			ExternalSubnetReferenceName: pulumi.String("{{ext_sub_name}}"),
			PrivateIp:                   pulumi.String("{{ip_address}}"),
			VpcReferenceName:            pulumi.String("{{vpc_name}}"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() => 
{
    var fip2 = new Nutanix.FloatingIp("fip2", new()
    {
        ExternalSubnetReferenceName = "{{ext_sub_name}}",
        PrivateIp = "{{ip_address}}",
        VpcReferenceName = "{{vpc_name}}",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.FloatingIp;
import com.pulumi.nutanix.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 fip2 = new FloatingIp("fip2", FloatingIpArgs.builder()
            .externalSubnetReferenceName("{{ext_sub_name}}")
            .privateIp("{{ip_address}}")
            .vpcReferenceName("{{vpc_name}}")
            .build());
    }
}
resources:
  fip2:
    type: nutanix:FloatingIp
    properties:
      externalSubnetReferenceName: '{{ext_sub_name}}'
      privateIp: '{{ip_address}}'
      vpcReferenceName: '{{vpc_name}}'
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: Optional[FloatingIpArgs] = None,
               opts: Optional[ResourceOptions] = None)
@overload
def FloatingIp(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               api_version: Optional[str] = None,
               external_subnet_reference_name: Optional[str] = None,
               external_subnet_reference_uuid: Optional[str] = None,
               private_ip: Optional[str] = None,
               vm_nic_reference_uuid: Optional[str] = None,
               vpc_reference_name: Optional[str] = None,
               vpc_reference_uuid: Optional[str] = None)func NewFloatingIp(ctx *Context, name string, args *FloatingIpArgs, opts ...ResourceOption) (*FloatingIp, error)public FloatingIp(string name, FloatingIpArgs? args = null, CustomResourceOptions? opts = null)
public FloatingIp(String name, FloatingIpArgs args)
public FloatingIp(String name, FloatingIpArgs args, CustomResourceOptions options)
type: nutanix: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 Nutanix.FloatingIp("floatingIpResource", new()
{
    ApiVersion = "string",
    ExternalSubnetReferenceName = "string",
    ExternalSubnetReferenceUuid = "string",
    PrivateIp = "string",
    VmNicReferenceUuid = "string",
    VpcReferenceName = "string",
    VpcReferenceUuid = "string",
});
example, err := nutanix.NewFloatingIp(ctx, "floatingIpResource", &nutanix.FloatingIpArgs{
	ApiVersion:                  pulumi.String("string"),
	ExternalSubnetReferenceName: pulumi.String("string"),
	ExternalSubnetReferenceUuid: pulumi.String("string"),
	PrivateIp:                   pulumi.String("string"),
	VmNicReferenceUuid:          pulumi.String("string"),
	VpcReferenceName:            pulumi.String("string"),
	VpcReferenceUuid:            pulumi.String("string"),
})
var floatingIpResource = new FloatingIp("floatingIpResource", FloatingIpArgs.builder()
    .apiVersion("string")
    .externalSubnetReferenceName("string")
    .externalSubnetReferenceUuid("string")
    .privateIp("string")
    .vmNicReferenceUuid("string")
    .vpcReferenceName("string")
    .vpcReferenceUuid("string")
    .build());
floating_ip_resource = nutanix.FloatingIp("floatingIpResource",
    api_version="string",
    external_subnet_reference_name="string",
    external_subnet_reference_uuid="string",
    private_ip="string",
    vm_nic_reference_uuid="string",
    vpc_reference_name="string",
    vpc_reference_uuid="string")
const floatingIpResource = new nutanix.FloatingIp("floatingIpResource", {
    apiVersion: "string",
    externalSubnetReferenceName: "string",
    externalSubnetReferenceUuid: "string",
    privateIp: "string",
    vmNicReferenceUuid: "string",
    vpcReferenceName: "string",
    vpcReferenceUuid: "string",
});
type: nutanix:FloatingIp
properties:
    apiVersion: string
    externalSubnetReferenceName: string
    externalSubnetReferenceUuid: string
    privateIp: string
    vmNicReferenceUuid: string
    vpcReferenceName: string
    vpcReferenceUuid: 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:
- ApiVersion string
- The version of the API.
- ExternalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- ExternalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- PrivateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- VmNic stringReference Uuid 
- The reference to a vm_nic .
- VpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- VpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- ApiVersion string
- The version of the API.
- ExternalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- ExternalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- PrivateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- VmNic stringReference Uuid 
- The reference to a vm_nic .
- VpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- VpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion String
- The version of the API.
- externalSubnet StringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet StringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- privateIp String
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic StringReference Uuid 
- The reference to a vm_nic .
- vpcReference StringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference StringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion string
- The version of the API.
- externalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- privateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic stringReference Uuid 
- The reference to a vm_nic .
- vpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- api_version str
- The version of the API.
- external_subnet_ strreference_ name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- external_subnet_ strreference_ uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- private_ip str
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vm_nic_ strreference_ uuid 
- The reference to a vm_nic .
- vpc_reference_ strname 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpc_reference_ struuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion String
- The version of the API.
- externalSubnet StringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet StringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- privateIp String
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic StringReference Uuid 
- The reference to a vm_nic .
- vpcReference StringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference StringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
Outputs
All input properties are implicitly available as output properties. Additionally, the FloatingIp resource produces the following output properties:
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,
        api_version: Optional[str] = None,
        external_subnet_reference_name: Optional[str] = None,
        external_subnet_reference_uuid: Optional[str] = None,
        metadata: Optional[Mapping[str, str]] = None,
        private_ip: Optional[str] = None,
        vm_nic_reference_uuid: Optional[str] = None,
        vpc_reference_name: Optional[str] = None,
        vpc_reference_uuid: Optional[str] = None) -> FloatingIpfunc 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: nutanix:FloatingIp    get:      id: ${id}- 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.
- ApiVersion string
- The version of the API.
- ExternalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- ExternalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- Metadata Dictionary<string, string>
- The floating_ips kind metadata.
- PrivateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- VmNic stringReference Uuid 
- The reference to a vm_nic .
- VpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- VpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- ApiVersion string
- The version of the API.
- ExternalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- ExternalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- Metadata map[string]string
- The floating_ips kind metadata.
- PrivateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- VmNic stringReference Uuid 
- The reference to a vm_nic .
- VpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- VpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion String
- The version of the API.
- externalSubnet StringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet StringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- metadata Map<String,String>
- The floating_ips kind metadata.
- privateIp String
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic StringReference Uuid 
- The reference to a vm_nic .
- vpcReference StringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference StringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion string
- The version of the API.
- externalSubnet stringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet stringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- metadata {[key: string]: string}
- The floating_ips kind metadata.
- privateIp string
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic stringReference Uuid 
- The reference to a vm_nic .
- vpcReference stringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference stringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- api_version str
- The version of the API.
- external_subnet_ strreference_ name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- external_subnet_ strreference_ uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- metadata Mapping[str, str]
- The floating_ips kind metadata.
- private_ip str
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vm_nic_ strreference_ uuid 
- The reference to a vm_nic .
- vpc_reference_ strname 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpc_reference_ struuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
- apiVersion String
- The version of the API.
- externalSubnet StringReference Name 
- The reference to a subnet. Should not be used with {external_subnet_reference_uuid} .
- externalSubnet StringReference Uuid 
- The reference to a subnet. Should not be used with {external_subnet_reference_name} .
- metadata Map<String>
- The floating_ips kind metadata.
- privateIp String
- Private IP with which floating IP is associated. Should be used with vpc_reference .
- vmNic StringReference Uuid 
- The reference to a vm_nic .
- vpcReference StringName 
- The reference to a vpc. Should not be used with {vpc_reference_uuid}.
- vpcReference StringUuid 
- The reference to a vpc. Should not be used with {vpc_reference_name}.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
