edgecenter.Loadbalancerv2
Explore with Pulumi AI
Represent load balancer without nested listener
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const lb = new edgecenter.Loadbalancerv2("lb", {
flavor: "lb1-1-2",
metadataMap: {
tag1: "tag1_value",
},
projectId: 1,
regionId: 1,
});
import pulumi
import pulumi_edgecenter as edgecenter
lb = edgecenter.Loadbalancerv2("lb",
flavor="lb1-1-2",
metadata_map={
"tag1": "tag1_value",
},
project_id=1,
region_id=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgecenter.NewLoadbalancerv2(ctx, "lb", &edgecenter.Loadbalancerv2Args{
Flavor: pulumi.String("lb1-1-2"),
MetadataMap: pulumi.StringMap{
"tag1": pulumi.String("tag1_value"),
},
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;
return await Deployment.RunAsync(() =>
{
var lb = new Edgecenter.Loadbalancerv2("lb", new()
{
Flavor = "lb1-1-2",
MetadataMap =
{
{ "tag1", "tag1_value" },
},
ProjectId = 1,
RegionId = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.Loadbalancerv2;
import com.pulumi.edgecenter.Loadbalancerv2Args;
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 lb = new Loadbalancerv2("lb", Loadbalancerv2Args.builder()
.flavor("lb1-1-2")
.metadataMap(Map.of("tag1", "tag1_value"))
.projectId(1)
.regionId(1)
.build());
}
}
resources:
lb:
type: edgecenter:Loadbalancerv2
properties:
flavor: lb1-1-2
metadataMap:
tag1: tag1_value
projectId: 1
regionId: 1
Create Loadbalancerv2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Loadbalancerv2(name: string, args?: Loadbalancerv2Args, opts?: CustomResourceOptions);
@overload
def Loadbalancerv2(resource_name: str,
args: Optional[Loadbalancerv2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Loadbalancerv2(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
last_updated: Optional[str] = None,
loadbalancerv2_id: Optional[str] = None,
metadata_map: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
timeouts: Optional[Loadbalancerv2TimeoutsArgs] = None,
vip_network_id: Optional[str] = None,
vip_port_id: Optional[str] = None,
vip_subnet_id: Optional[str] = None)
func NewLoadbalancerv2(ctx *Context, name string, args *Loadbalancerv2Args, opts ...ResourceOption) (*Loadbalancerv2, error)
public Loadbalancerv2(string name, Loadbalancerv2Args? args = null, CustomResourceOptions? opts = null)
public Loadbalancerv2(String name, Loadbalancerv2Args args)
public Loadbalancerv2(String name, Loadbalancerv2Args args, CustomResourceOptions options)
type: edgecenter:Loadbalancerv2
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 Loadbalancerv2Args
- 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 Loadbalancerv2Args
- 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 Loadbalancerv2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Loadbalancerv2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Loadbalancerv2Args
- 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 loadbalancerv2Resource = new Edgecenter.Loadbalancerv2("loadbalancerv2Resource", new()
{
Flavor = "string",
LastUpdated = "string",
Loadbalancerv2Id = "string",
MetadataMap =
{
{ "string", "string" },
},
Name = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
Timeouts = new Edgecenter.Inputs.Loadbalancerv2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VipNetworkId = "string",
VipPortId = "string",
VipSubnetId = "string",
});
example, err := edgecenter.NewLoadbalancerv2(ctx, "loadbalancerv2Resource", &edgecenter.Loadbalancerv2Args{
Flavor: pulumi.String("string"),
LastUpdated: pulumi.String("string"),
Loadbalancerv2Id: pulumi.String("string"),
MetadataMap: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
Timeouts: &edgecenter.Loadbalancerv2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VipNetworkId: pulumi.String("string"),
VipPortId: pulumi.String("string"),
VipSubnetId: pulumi.String("string"),
})
var loadbalancerv2Resource = new Loadbalancerv2("loadbalancerv2Resource", Loadbalancerv2Args.builder()
.flavor("string")
.lastUpdated("string")
.loadbalancerv2Id("string")
.metadataMap(Map.of("string", "string"))
.name("string")
.projectId(0)
.projectName("string")
.regionId(0)
.regionName("string")
.timeouts(Loadbalancerv2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vipNetworkId("string")
.vipPortId("string")
.vipSubnetId("string")
.build());
loadbalancerv2_resource = edgecenter.Loadbalancerv2("loadbalancerv2Resource",
flavor="string",
last_updated="string",
loadbalancerv2_id="string",
metadata_map={
"string": "string",
},
name="string",
project_id=0,
project_name="string",
region_id=0,
region_name="string",
timeouts={
"create": "string",
"delete": "string",
},
vip_network_id="string",
vip_port_id="string",
vip_subnet_id="string")
const loadbalancerv2Resource = new edgecenter.Loadbalancerv2("loadbalancerv2Resource", {
flavor: "string",
lastUpdated: "string",
loadbalancerv2Id: "string",
metadataMap: {
string: "string",
},
name: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
timeouts: {
create: "string",
"delete": "string",
},
vipNetworkId: "string",
vipPortId: "string",
vipSubnetId: "string",
});
type: edgecenter:Loadbalancerv2
properties:
flavor: string
lastUpdated: string
loadbalancerv2Id: string
metadataMap:
string: string
name: string
projectId: 0
projectName: string
regionId: 0
regionName: string
timeouts:
create: string
delete: string
vipNetworkId: string
vipPortId: string
vipSubnetId: string
Loadbalancerv2 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 Loadbalancerv2 resource accepts the following input properties:
- Flavor string
- The flavor or specification of the load balancer to be created.
- Last
Updated string - The timestamp of the last update (use with update context).
- Loadbalancerv2Id string
- The ID of this resource.
- Metadata
Map Dictionary<string, string> - A map containing metadata, for example tags.
- Name string
- The name of the load balancer.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Timeouts Loadbalancerv2Timeouts
- Vip
Network stringId - Attaches the created network.
- Vip
Port stringId - Attaches the created reserved IP.
- Vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- Flavor string
- The flavor or specification of the load balancer to be created.
- Last
Updated string - The timestamp of the last update (use with update context).
- Loadbalancerv2Id string
- The ID of this resource.
- Metadata
Map map[string]string - A map containing metadata, for example tags.
- Name string
- The name of the load balancer.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Timeouts
Loadbalancerv2Timeouts
Args - Vip
Network stringId - Attaches the created network.
- Vip
Port stringId - Attaches the created reserved IP.
- Vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor String
- The flavor or specification of the load balancer to be created.
- last
Updated String - The timestamp of the last update (use with update context).
- loadbalancerv2Id String
- The ID of this resource.
- metadata
Map Map<String,String> - A map containing metadata, for example tags.
- name String
- The name of the load balancer.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Loadbalancerv2Timeouts
- vip
Network StringId - Attaches the created network.
- vip
Port StringId - Attaches the created reserved IP.
- vip
Subnet StringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor string
- The flavor or specification of the load balancer to be created.
- last
Updated string - The timestamp of the last update (use with update context).
- loadbalancerv2Id string
- The ID of this resource.
- metadata
Map {[key: string]: string} - A map containing metadata, for example tags.
- name string
- The name of the load balancer.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Loadbalancerv2Timeouts
- vip
Network stringId - Attaches the created network.
- vip
Port stringId - Attaches the created reserved IP.
- vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor str
- The flavor or specification of the load balancer to be created.
- last_
updated str - The timestamp of the last update (use with update context).
- loadbalancerv2_
id str - The ID of this resource.
- metadata_
map Mapping[str, str] - A map containing metadata, for example tags.
- name str
- The name of the load balancer.
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts
Loadbalancerv2Timeouts
Args - vip_
network_ strid - Attaches the created network.
- vip_
port_ strid - Attaches the created reserved IP.
- vip_
subnet_ strid - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor String
- The flavor or specification of the load balancer to be created.
- last
Updated String - The timestamp of the last update (use with update context).
- loadbalancerv2Id String
- The ID of this resource.
- metadata
Map Map<String> - A map containing metadata, for example tags.
- name String
- The name of the load balancer.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Property Map
- vip
Network StringId - Attaches the created network.
- vip
Port StringId - Attaches the created reserved IP.
- vip
Subnet StringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
Outputs
All input properties are implicitly available as output properties. Additionally, the Loadbalancerv2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Read List<Loadbalancerv2MetadataOnlies Read Only> - A list of read-only metadata items, e.g. tags.
- Vip
Address string - Load balancer IP address
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Read []Loadbalancerv2MetadataOnlies Read Only - A list of read-only metadata items, e.g. tags.
- Vip
Address string - Load balancer IP address
- id String
- The provider-assigned unique ID for this managed resource.
- metadata
Read List<Loadbalancerv2MetadataOnlies Read Only> - A list of read-only metadata items, e.g. tags.
- vip
Address String - Load balancer IP address
- id string
- The provider-assigned unique ID for this managed resource.
- metadata
Read Loadbalancerv2MetadataOnlies Read Only[] - A list of read-only metadata items, e.g. tags.
- vip
Address string - Load balancer IP address
- id str
- The provider-assigned unique ID for this managed resource.
- metadata_
read_ Sequence[Loadbalancerv2Metadataonlies Read Only] - A list of read-only metadata items, e.g. tags.
- vip_
address str - Load balancer IP address
- id String
- The provider-assigned unique ID for this managed resource.
- metadata
Read List<Property Map>Onlies - A list of read-only metadata items, e.g. tags.
- vip
Address String - Load balancer IP address
Look up Existing Loadbalancerv2 Resource
Get an existing Loadbalancerv2 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?: Loadbalancerv2State, opts?: CustomResourceOptions): Loadbalancerv2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
last_updated: Optional[str] = None,
loadbalancerv2_id: Optional[str] = None,
metadata_map: Optional[Mapping[str, str]] = None,
metadata_read_onlies: Optional[Sequence[Loadbalancerv2MetadataReadOnlyArgs]] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
timeouts: Optional[Loadbalancerv2TimeoutsArgs] = None,
vip_address: Optional[str] = None,
vip_network_id: Optional[str] = None,
vip_port_id: Optional[str] = None,
vip_subnet_id: Optional[str] = None) -> Loadbalancerv2
func GetLoadbalancerv2(ctx *Context, name string, id IDInput, state *Loadbalancerv2State, opts ...ResourceOption) (*Loadbalancerv2, error)
public static Loadbalancerv2 Get(string name, Input<string> id, Loadbalancerv2State? state, CustomResourceOptions? opts = null)
public static Loadbalancerv2 get(String name, Output<String> id, Loadbalancerv2State state, CustomResourceOptions options)
resources: _: type: edgecenter:Loadbalancerv2 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.
- Flavor string
- The flavor or specification of the load balancer to be created.
- Last
Updated string - The timestamp of the last update (use with update context).
- Loadbalancerv2Id string
- The ID of this resource.
- Metadata
Map Dictionary<string, string> - A map containing metadata, for example tags.
- Metadata
Read List<Loadbalancerv2MetadataOnlies Read Only> - A list of read-only metadata items, e.g. tags.
- Name string
- The name of the load balancer.
- Project
Id double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Timeouts Loadbalancerv2Timeouts
- Vip
Address string - Load balancer IP address
- Vip
Network stringId - Attaches the created network.
- Vip
Port stringId - Attaches the created reserved IP.
- Vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- Flavor string
- The flavor or specification of the load balancer to be created.
- Last
Updated string - The timestamp of the last update (use with update context).
- Loadbalancerv2Id string
- The ID of this resource.
- Metadata
Map map[string]string - A map containing metadata, for example tags.
- Metadata
Read []Loadbalancerv2MetadataOnlies Read Only Args - A list of read-only metadata items, e.g. tags.
- Name string
- The name of the load balancer.
- Project
Id float64 - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- Project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- Region
Id float64 - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- Region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- Timeouts
Loadbalancerv2Timeouts
Args - Vip
Address string - Load balancer IP address
- Vip
Network stringId - Attaches the created network.
- Vip
Port stringId - Attaches the created reserved IP.
- Vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor String
- The flavor or specification of the load balancer to be created.
- last
Updated String - The timestamp of the last update (use with update context).
- loadbalancerv2Id String
- The ID of this resource.
- metadata
Map Map<String,String> - A map containing metadata, for example tags.
- metadata
Read List<Loadbalancerv2MetadataOnlies Read Only> - A list of read-only metadata items, e.g. tags.
- name String
- The name of the load balancer.
- project
Id Double - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Double - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Loadbalancerv2Timeouts
- vip
Address String - Load balancer IP address
- vip
Network StringId - Attaches the created network.
- vip
Port StringId - Attaches the created reserved IP.
- vip
Subnet StringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor string
- The flavor or specification of the load balancer to be created.
- last
Updated string - The timestamp of the last update (use with update context).
- loadbalancerv2Id string
- The ID of this resource.
- metadata
Map {[key: string]: string} - A map containing metadata, for example tags.
- metadata
Read Loadbalancerv2MetadataOnlies Read Only[] - A list of read-only metadata items, e.g. tags.
- name string
- The name of the load balancer.
- project
Id number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name string - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name string - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Loadbalancerv2Timeouts
- vip
Address string - Load balancer IP address
- vip
Network stringId - Attaches the created network.
- vip
Port stringId - Attaches the created reserved IP.
- vip
Subnet stringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor str
- The flavor or specification of the load balancer to be created.
- last_
updated str - The timestamp of the last update (use with update context).
- loadbalancerv2_
id str - The ID of this resource.
- metadata_
map Mapping[str, str] - A map containing metadata, for example tags.
- metadata_
read_ Sequence[Loadbalancerv2Metadataonlies Read Only Args] - A list of read-only metadata items, e.g. tags.
- name str
- The name of the load balancer.
- project_
id float - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project_
name str - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region_
id float - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region_
name str - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts
Loadbalancerv2Timeouts
Args - vip_
address str - Load balancer IP address
- vip_
network_ strid - Attaches the created network.
- vip_
port_ strid - Attaches the created reserved IP.
- vip_
subnet_ strid - The ID of the subnet in which to allocate the VIP address for the load balancer.
- flavor String
- The flavor or specification of the load balancer to be created.
- last
Updated String - The timestamp of the last update (use with update context).
- loadbalancerv2Id String
- The ID of this resource.
- metadata
Map Map<String> - A map containing metadata, for example tags.
- metadata
Read List<Property Map>Onlies - A list of read-only metadata items, e.g. tags.
- name String
- The name of the load balancer.
- project
Id Number - The uuid of the project. Either 'projectid' or 'projectname' must be specified.
- project
Name String - The name of the project. Either 'projectid' or 'projectname' must be specified.
- region
Id Number - The uuid of the region. Either 'regionid' or 'regionname' must be specified.
- region
Name String - The name of the region. Either 'regionid' or 'regionname' must be specified.
- timeouts Property Map
- vip
Address String - Load balancer IP address
- vip
Network StringId - Attaches the created network.
- vip
Port StringId - Attaches the created reserved IP.
- vip
Subnet StringId - The ID of the subnet in which to allocate the VIP address for the load balancer.
Supporting Types
Loadbalancerv2MetadataReadOnly, Loadbalancerv2MetadataReadOnlyArgs
Loadbalancerv2Timeouts, Loadbalancerv2TimeoutsArgs
Import
import using <project_id>:<region_id>:<loadbalancer_id> format
$ pulumi import edgecenter:index/loadbalancerv2:Loadbalancerv2 loadbalancer1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.