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});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args NetworkingVipV2Args
- 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 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 string
- The unique name of the resource.
- args NetworkingVipV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkingVipV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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",
})
const networkingVipV2Resource = new flexibleengine.NetworkingVipV2("networkingVipV2Resource", {
networkId: "string",
ipAddress: "string",
ipVersion: 0,
name: "string",
networkingVipV2Id: "string",
region: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: flexibleengine:NetworkingVipV2
properties:
ipAddress: string
ipVersion: 0
name: string
networkId: string
networkingVipV2Id: string
region: string
timeouts:
create: string
delete: string
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:
- Network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- Ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- Ip
Version double - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - Name string
- Specifies a unique name for the VIP.
- Networking
Vip stringV2Id - 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.
- Subnet
Id string - Timeouts
Networking
Vip V2Timeouts
- Network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- Ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- Ip
Version float64 - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - Name string
- Specifies a unique name for the VIP.
- Networking
Vip stringV2Id - 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.
- Subnet
Id string - Timeouts
Networking
Vip V2Timeouts Args
- network
Id String - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- ip
Address String - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version Double - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - name String
- Specifies a unique name for the VIP.
- networking
Vip StringV2Id - 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.
- subnet
Id String - timeouts
Networking
Vip V2Timeouts
- network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version number - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - name string
- Specifies a unique name for the VIP.
- networking
Vip stringV2Id - 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.
- subnet
Id string - timeouts
Networking
Vip V2Timeouts
- network_
id 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) or6
. Changing this will create a new VIP resource. - name str
- Specifies a unique name for the VIP.
- networking_
vip_ strv2_ id - 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 - timeouts
Networking
Vip V2Timeouts Args
- network
Id String - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- ip
Address String - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version Number - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - name String
- Specifies a unique name for the VIP.
- networking
Vip StringV2Id - 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.
- subnet
Id String - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkingVipV2 resource produces the following output properties:
- Device
Owner string - The device owner of the VIP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac
Address string - The MAC address of the VIP.
- Status string
- The VIP status.
- Device
Owner string - The device owner of the VIP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mac
Address string - The MAC address of the VIP.
- Status string
- The VIP status.
- device
Owner String - The device owner of the VIP.
- id String
- The provider-assigned unique ID for this managed resource.
- mac
Address String - The MAC address of the VIP.
- status String
- The VIP status.
- device
Owner string - The device owner of the VIP.
- id string
- The provider-assigned unique ID for this managed resource.
- mac
Address 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.
- device
Owner String - The device owner of the VIP.
- id String
- The provider-assigned unique ID for this managed resource.
- mac
Address 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
- 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.
- Device
Owner string - The device owner of the VIP.
- Ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- Ip
Version double - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - Mac
Address string - The MAC address of the VIP.
- Name string
- Specifies a unique name for the VIP.
- Network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- Networking
Vip stringV2Id - 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.
- Subnet
Id string - Timeouts
Networking
Vip V2Timeouts
- Device
Owner string - The device owner of the VIP.
- Ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- Ip
Version float64 - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - Mac
Address string - The MAC address of the VIP.
- Name string
- Specifies a unique name for the VIP.
- Network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- Networking
Vip stringV2Id - 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.
- Subnet
Id string - Timeouts
Networking
Vip V2Timeouts Args
- device
Owner String - The device owner of the VIP.
- ip
Address String - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version Double - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - mac
Address String - The MAC address of the VIP.
- name String
- Specifies a unique name for the VIP.
- network
Id String - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- networking
Vip StringV2Id - 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.
- subnet
Id String - timeouts
Networking
Vip V2Timeouts
- device
Owner string - The device owner of the VIP.
- ip
Address string - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version number - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - mac
Address string - The MAC address of the VIP.
- name string
- Specifies a unique name for the VIP.
- network
Id string - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- networking
Vip stringV2Id - 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.
- subnet
Id string - timeouts
Networking
Vip V2Timeouts
- 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) or6
. 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_ strv2_ id - 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 - timeouts
Networking
Vip V2Timeouts Args
- device
Owner String - The device owner of the VIP.
- ip
Address String - Specifies the IP address desired in the subnet for this VIP. Changing this will create a new VIP resource.
- ip
Version Number - Specifies the IP version, either
4
(default) or6
. Changing this will create a new VIP resource. - mac
Address String - The MAC address of the VIP.
- name String
- Specifies a unique name for the VIP.
- network
Id String - Specifies the ID of the VPC Subnet to which the VIP belongs. Changing this will create a new VIP resource.
- networking
Vip StringV2Id - 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.
- subnet
Id String - timeouts Property Map
Supporting Types
NetworkingVipV2Timeouts, NetworkingVipV2TimeoutsArgs
Import
Network VIPs can be imported using their id
, e.g.:
$ pulumi import flexibleengine:index/networkingVipV2:NetworkingVipV2 test ce595799-da26-4015-8db5-7733c6db292e
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.