1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NetworkingVipV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NetworkingVipV2

Explore with Pulumi AI

Manages a V2 vip resource within FlexibleEngine.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const exampleVpc = new flexibleengine.VpcV1("exampleVpc", {cidr: "192.168.0.0/16"});
const exampleSubnet = new flexibleengine.VpcSubnetV1("exampleSubnet", {
    cidr: "192.168.0.0/24",
    gatewayIp: "192.168.0.1",
    vpcId: exampleVpc.vpcV1Id,
});
const vip1 = new flexibleengine.NetworkingVipV2("vip1", {networkId: exampleSubnet.vpcSubnetV1Id});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

example_vpc = flexibleengine.VpcV1("exampleVpc", cidr="192.168.0.0/16")
example_subnet = flexibleengine.VpcSubnetV1("exampleSubnet",
    cidr="192.168.0.0/24",
    gateway_ip="192.168.0.1",
    vpc_id=example_vpc.vpc_v1_id)
vip1 = flexibleengine.NetworkingVipV2("vip1", network_id=example_subnet.vpc_subnet_v1_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleVpc, err := flexibleengine.NewVpcV1(ctx, "exampleVpc", &flexibleengine.VpcV1Args{
			Cidr: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := flexibleengine.NewVpcSubnetV1(ctx, "exampleSubnet", &flexibleengine.VpcSubnetV1Args{
			Cidr:      pulumi.String("192.168.0.0/24"),
			GatewayIp: pulumi.String("192.168.0.1"),
			VpcId:     exampleVpc.VpcV1Id,
		})
		if err != nil {
			return err
		}
		_, err = flexibleengine.NewNetworkingVipV2(ctx, "vip1", &flexibleengine.NetworkingVipV2Args{
			NetworkId: exampleSubnet.VpcSubnetV1Id,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var exampleVpc = new Flexibleengine.VpcV1("exampleVpc", new()
    {
        Cidr = "192.168.0.0/16",
    });

    var exampleSubnet = new Flexibleengine.VpcSubnetV1("exampleSubnet", new()
    {
        Cidr = "192.168.0.0/24",
        GatewayIp = "192.168.0.1",
        VpcId = exampleVpc.VpcV1Id,
    });

    var vip1 = new Flexibleengine.NetworkingVipV2("vip1", new()
    {
        NetworkId = exampleSubnet.VpcSubnetV1Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingVipV2;
import com.pulumi.flexibleengine.NetworkingVipV2Args;
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 exampleVpc = new VpcV1("exampleVpc", VpcV1Args.builder()
            .cidr("192.168.0.0/16")
            .build());

        var exampleSubnet = new VpcSubnetV1("exampleSubnet", VpcSubnetV1Args.builder()
            .cidr("192.168.0.0/24")
            .gatewayIp("192.168.0.1")
            .vpcId(exampleVpc.vpcV1Id())
            .build());

        var vip1 = new NetworkingVipV2("vip1", NetworkingVipV2Args.builder()
            .networkId(exampleSubnet.vpcSubnetV1Id())
            .build());

    }
}
Copy
resources:
  exampleVpc:
    type: flexibleengine:VpcV1
    properties:
      cidr: 192.168.0.0/16
  exampleSubnet:
    type: flexibleengine:VpcSubnetV1
    properties:
      cidr: 192.168.0.0/24
      gatewayIp: 192.168.0.1
      vpcId: ${exampleVpc.vpcV1Id}
  vip1:
    type: flexibleengine:NetworkingVipV2
    properties:
      networkId: ${exampleSubnet.vpcSubnetV1Id}
Copy

Create NetworkingVipV2 Resource

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

Constructor syntax

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

@overload
def NetworkingVipV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    network_id: Optional[str] = None,
                    ip_address: Optional[str] = None,
                    ip_version: Optional[float] = None,
                    name: Optional[str] = None,
                    networking_vip_v2_id: Optional[str] = None,
                    region: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    timeouts: Optional[NetworkingVipV2TimeoutsArgs] = None)
func NewNetworkingVipV2(ctx *Context, name string, args NetworkingVipV2Args, opts ...ResourceOption) (*NetworkingVipV2, error)
public NetworkingVipV2(string name, NetworkingVipV2Args args, CustomResourceOptions? opts = null)
public NetworkingVipV2(String name, NetworkingVipV2Args args)
public NetworkingVipV2(String name, NetworkingVipV2Args args, CustomResourceOptions options)
type: flexibleengine:NetworkingVipV2
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. NetworkingVipV2Args
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. NetworkingVipV2Args
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. NetworkingVipV2Args
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. NetworkingVipV2Args
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. NetworkingVipV2Args
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 networkingVipV2Resource = new Flexibleengine.NetworkingVipV2("networkingVipV2Resource", new()
{
    NetworkId = "string",
    IpAddress = "string",
    IpVersion = 0,
    Name = "string",
    NetworkingVipV2Id = "string",
    Region = "string",
    Timeouts = new Flexibleengine.Inputs.NetworkingVipV2TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
Copy
example, err := flexibleengine.NewNetworkingVipV2(ctx, "networkingVipV2Resource", &flexibleengine.NetworkingVipV2Args{
	NetworkId:         pulumi.String("string"),
	IpAddress:         pulumi.String("string"),
	IpVersion:         pulumi.Float64(0),
	Name:              pulumi.String("string"),
	NetworkingVipV2Id: pulumi.String("string"),
	Region:            pulumi.String("string"),
	Timeouts: &flexibleengine.NetworkingVipV2TimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
	},
})
Copy
var networkingVipV2Resource = new NetworkingVipV2("networkingVipV2Resource", NetworkingVipV2Args.builder()
    .networkId("string")
    .ipAddress("string")
    .ipVersion(0)
    .name("string")
    .networkingVipV2Id("string")
    .region("string")
    .timeouts(NetworkingVipV2TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
Copy
networking_vip_v2_resource = flexibleengine.NetworkingVipV2("networkingVipV2Resource",
    network_id="string",
    ip_address="string",
    ip_version=0,
    name="string",
    networking_vip_v2_id="string",
    region="string",
    timeouts={
        "create": "string",
        "delete": "string",
    })
Copy
const networkingVipV2Resource = new flexibleengine.NetworkingVipV2("networkingVipV2Resource", {
    networkId: "string",
    ipAddress: "string",
    ipVersion: 0,
    name: "string",
    networkingVipV2Id: "string",
    region: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
Copy
type: flexibleengine:NetworkingVipV2
properties:
    ipAddress: string
    ipVersion: 0
    name: string
    networkId: string
    networkingVipV2Id: string
    region: string
    timeouts:
        create: string
        delete: string
Copy

NetworkingVipV2 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 NetworkingVipV2 resource accepts the following input properties:

NetworkId This property is required. string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
IpAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
IpVersion double
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
Name string
Specifies a unique name for the VIP.
NetworkingVipV2Id string
The VIP ID.
Region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
SubnetId string

Deprecated: Deprecated

Timeouts NetworkingVipV2Timeouts
NetworkId This property is required. string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
IpAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
IpVersion float64
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
Name string
Specifies a unique name for the VIP.
NetworkingVipV2Id string
The VIP ID.
Region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
SubnetId string

Deprecated: Deprecated

Timeouts NetworkingVipV2TimeoutsArgs
networkId This property is required. String
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
ipAddress String
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion Double
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
name String
Specifies a unique name for the VIP.
networkingVipV2Id String
The VIP ID.
region String
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
subnetId String

Deprecated: Deprecated

timeouts NetworkingVipV2Timeouts
networkId This property is required. string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
ipAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion number
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
name string
Specifies a unique name for the VIP.
networkingVipV2Id string
The VIP ID.
region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
subnetId string

Deprecated: Deprecated

timeouts NetworkingVipV2Timeouts
network_id This property is required. str
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
ip_address str
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ip_version float
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
name str
Specifies a unique name for the VIP.
networking_vip_v2_id str
The VIP ID.
region str
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
subnet_id str

Deprecated: Deprecated

timeouts NetworkingVipV2TimeoutsArgs
networkId This property is required. String
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
ipAddress String
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion Number
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
name String
Specifies a unique name for the VIP.
networkingVipV2Id String
The VIP ID.
region String
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
subnetId String

Deprecated: Deprecated

timeouts Property Map

Outputs

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

DeviceOwner string
The device owner of the VIP.
Id string
The provider-assigned unique ID for this managed resource.
MacAddress string
The MAC address of the VIP.
Status string
The VIP status.
DeviceOwner string
The device owner of the VIP.
Id string
The provider-assigned unique ID for this managed resource.
MacAddress string
The MAC address of the VIP.
Status string
The VIP status.
deviceOwner String
The device owner of the VIP.
id String
The provider-assigned unique ID for this managed resource.
macAddress String
The MAC address of the VIP.
status String
The VIP status.
deviceOwner string
The device owner of the VIP.
id string
The provider-assigned unique ID for this managed resource.
macAddress string
The MAC address of the VIP.
status string
The VIP status.
device_owner str
The device owner of the VIP.
id str
The provider-assigned unique ID for this managed resource.
mac_address str
The MAC address of the VIP.
status str
The VIP status.
deviceOwner String
The device owner of the VIP.
id String
The provider-assigned unique ID for this managed resource.
macAddress String
The MAC address of the VIP.
status String
The VIP status.

Look up Existing NetworkingVipV2 Resource

Get an existing NetworkingVipV2 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?: NetworkingVipV2State, opts?: CustomResourceOptions): NetworkingVipV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        device_owner: Optional[str] = None,
        ip_address: Optional[str] = None,
        ip_version: Optional[float] = None,
        mac_address: Optional[str] = None,
        name: Optional[str] = None,
        network_id: Optional[str] = None,
        networking_vip_v2_id: Optional[str] = None,
        region: Optional[str] = None,
        status: Optional[str] = None,
        subnet_id: Optional[str] = None,
        timeouts: Optional[NetworkingVipV2TimeoutsArgs] = None) -> NetworkingVipV2
func GetNetworkingVipV2(ctx *Context, name string, id IDInput, state *NetworkingVipV2State, opts ...ResourceOption) (*NetworkingVipV2, error)
public static NetworkingVipV2 Get(string name, Input<string> id, NetworkingVipV2State? state, CustomResourceOptions? opts = null)
public static NetworkingVipV2 get(String name, Output<String> id, NetworkingVipV2State state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:NetworkingVipV2    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:
DeviceOwner string
The device owner of the VIP.
IpAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
IpVersion double
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
MacAddress string
The MAC address of the VIP.
Name string
Specifies a unique name for the VIP.
NetworkId string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
NetworkingVipV2Id string
The VIP ID.
Region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
Status string
The VIP status.
SubnetId string

Deprecated: Deprecated

Timeouts NetworkingVipV2Timeouts
DeviceOwner string
The device owner of the VIP.
IpAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
IpVersion float64
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
MacAddress string
The MAC address of the VIP.
Name string
Specifies a unique name for the VIP.
NetworkId string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
NetworkingVipV2Id string
The VIP ID.
Region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
Status string
The VIP status.
SubnetId string

Deprecated: Deprecated

Timeouts NetworkingVipV2TimeoutsArgs
deviceOwner String
The device owner of the VIP.
ipAddress String
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion Double
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
macAddress String
The MAC address of the VIP.
name String
Specifies a unique name for the VIP.
networkId String
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
networkingVipV2Id String
The VIP ID.
region String
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
status String
The VIP status.
subnetId String

Deprecated: Deprecated

timeouts NetworkingVipV2Timeouts
deviceOwner string
The device owner of the VIP.
ipAddress string
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion number
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
macAddress string
The MAC address of the VIP.
name string
Specifies a unique name for the VIP.
networkId string
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
networkingVipV2Id string
The VIP ID.
region string
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
status string
The VIP status.
subnetId string

Deprecated: Deprecated

timeouts NetworkingVipV2Timeouts
device_owner str
The device owner of the VIP.
ip_address str
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ip_version float
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
mac_address str
The MAC address of the VIP.
name str
Specifies a unique name for the VIP.
network_id str
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
networking_vip_v2_id str
The VIP ID.
region str
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
status str
The VIP status.
subnet_id str

Deprecated: Deprecated

timeouts NetworkingVipV2TimeoutsArgs
deviceOwner String
The device owner of the VIP.
ipAddress String
Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
ipVersion Number
Specifies the IP version, either 4 (default) or 6. Changing this will create a new VIP resource.
macAddress String
The MAC address of the VIP.
name String
Specifies a unique name for the VIP.
networkId String
Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
networkingVipV2Id String
The VIP ID.
region String
Specifies the region in which to create the VIP. If omitted, the provider-level region will be used. Changing this will create a new VIP resource.
status String
The VIP status.
subnetId String

Deprecated: Deprecated

timeouts Property Map

Supporting Types

NetworkingVipV2Timeouts
, NetworkingVipV2TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

Network VIPs can be imported using their id, e.g.:

$ pulumi import flexibleengine:index/networkingVipV2:NetworkingVipV2 test ce595799-da26-4015-8db5-7733c6db292e
Copy

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

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.