openstack.loadbalancer.LoadBalancer
Explore with Pulumi AI
Manages a V2 loadbalancer resource within OpenStack.
Note: This resource has attributes that depend on octavia minor versions. Please ensure your Openstack cloud supports the required minor version.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const lb1 = new openstack.loadbalancer.LoadBalancer("lb1", {vipSubnetId: "d9415786-5f1a-428b-b35f-2f1523e146d2"});
import pulumi
import pulumi_openstack as openstack
lb1 = openstack.loadbalancer.LoadBalancer("lb1", vip_subnet_id="d9415786-5f1a-428b-b35f-2f1523e146d2")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/loadbalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loadbalancer.NewLoadBalancer(ctx, "lb1", &loadbalancer.LoadBalancerArgs{
VipSubnetId: pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var lb1 = new OpenStack.LoadBalancer.LoadBalancer("lb1", new()
{
VipSubnetId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.loadbalancer.LoadBalancer;
import com.pulumi.openstack.loadbalancer.LoadBalancerArgs;
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 lb1 = new LoadBalancer("lb1", LoadBalancerArgs.builder()
.vipSubnetId("d9415786-5f1a-428b-b35f-2f1523e146d2")
.build());
}
}
resources:
lb1:
type: openstack:loadbalancer:LoadBalancer
properties:
vipSubnetId: d9415786-5f1a-428b-b35f-2f1523e146d2
Create LoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancer(name: string, args?: LoadBalancerArgs, opts?: CustomResourceOptions);
@overload
def LoadBalancer(resource_name: str,
args: Optional[LoadBalancerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[bool] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
flavor_id: Optional[str] = None,
loadbalancer_provider: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
vip_address: Optional[str] = None,
vip_network_id: Optional[str] = None,
vip_port_id: Optional[str] = None,
vip_subnet_id: Optional[str] = None)
func NewLoadBalancer(ctx *Context, name string, args *LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
public LoadBalancer(string name, LoadBalancerArgs? args = null, CustomResourceOptions? opts = null)
public LoadBalancer(String name, LoadBalancerArgs args)
public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
type: openstack:loadbalancer:LoadBalancer
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 LoadBalancerArgs
- 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 LoadBalancerArgs
- 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 LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var loadBalancerResource = new OpenStack.LoadBalancer.LoadBalancer("loadBalancerResource", new()
{
AdminStateUp = false,
AvailabilityZone = "string",
Description = "string",
FlavorId = "string",
LoadbalancerProvider = "string",
Name = "string",
Region = "string",
SecurityGroupIds = new[]
{
"string",
},
Tags = new[]
{
"string",
},
TenantId = "string",
VipAddress = "string",
VipNetworkId = "string",
VipPortId = "string",
VipSubnetId = "string",
});
example, err := loadbalancer.NewLoadBalancer(ctx, "loadBalancerResource", &loadbalancer.LoadBalancerArgs{
AdminStateUp: pulumi.Bool(false),
AvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
FlavorId: pulumi.String("string"),
LoadbalancerProvider: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.String("string"),
VipAddress: pulumi.String("string"),
VipNetworkId: pulumi.String("string"),
VipPortId: pulumi.String("string"),
VipSubnetId: pulumi.String("string"),
})
var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
.adminStateUp(false)
.availabilityZone("string")
.description("string")
.flavorId("string")
.loadbalancerProvider("string")
.name("string")
.region("string")
.securityGroupIds("string")
.tags("string")
.tenantId("string")
.vipAddress("string")
.vipNetworkId("string")
.vipPortId("string")
.vipSubnetId("string")
.build());
load_balancer_resource = openstack.loadbalancer.LoadBalancer("loadBalancerResource",
admin_state_up=False,
availability_zone="string",
description="string",
flavor_id="string",
loadbalancer_provider="string",
name="string",
region="string",
security_group_ids=["string"],
tags=["string"],
tenant_id="string",
vip_address="string",
vip_network_id="string",
vip_port_id="string",
vip_subnet_id="string")
const loadBalancerResource = new openstack.loadbalancer.LoadBalancer("loadBalancerResource", {
adminStateUp: false,
availabilityZone: "string",
description: "string",
flavorId: "string",
loadbalancerProvider: "string",
name: "string",
region: "string",
securityGroupIds: ["string"],
tags: ["string"],
tenantId: "string",
vipAddress: "string",
vipNetworkId: "string",
vipPortId: "string",
vipSubnetId: "string",
});
type: openstack:loadbalancer:LoadBalancer
properties:
adminStateUp: false
availabilityZone: string
description: string
flavorId: string
loadbalancerProvider: string
name: string
region: string
securityGroupIds:
- string
tags:
- string
tenantId: string
vipAddress: string
vipNetworkId: string
vipPortId: string
vipSubnetId: string
LoadBalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LoadBalancer resource accepts the following input properties:
- Admin
State boolUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- Availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- Description string
- Human-readable description for the Loadbalancer.
- Flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- Loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- Name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - Security
Group List<string>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<string>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- Tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- Vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- Vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- Admin
State boolUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- Availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- Description string
- Human-readable description for the Loadbalancer.
- Flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- Loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- Name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - Security
Group []stringIds - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- []string
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- Tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- Vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- Vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State BooleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone String - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description String
- Human-readable description for the Loadbalancer.
- flavor
Id String - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider String - The name of the provider. Changing this creates a new loadbalancer.
- name String
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group List<String>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<String>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id String - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address String - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network StringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port StringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet StringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State booleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description string
- Human-readable description for the Loadbalancer.
- flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group string[]Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- string[]
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin_
state_ boolup - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability_
zone str - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description str
- Human-readable description for the Loadbalancer.
- flavor_
id str - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer_
provider str - The name of the provider. Changing this creates a new loadbalancer.
- name str
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security_
group_ Sequence[str]ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- Sequence[str]
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant_
id str - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip_
address str - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip_
network_ strid - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip_
port_ strid - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip_
subnet_ strid - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State BooleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone String - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description String
- Human-readable description for the Loadbalancer.
- flavor
Id String - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider String - The name of the provider. Changing this creates a new loadbalancer.
- name String
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group List<String>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<String>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id String - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address String - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network StringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port StringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet StringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LoadBalancer Resource
Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[bool] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
flavor_id: Optional[str] = None,
loadbalancer_provider: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
vip_address: Optional[str] = None,
vip_network_id: Optional[str] = None,
vip_port_id: Optional[str] = None,
vip_subnet_id: Optional[str] = None) -> LoadBalancer
func GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)
public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)
public static LoadBalancer get(String name, Output<String> id, LoadBalancerState 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.
- Admin
State boolUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- Availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- Description string
- Human-readable description for the Loadbalancer.
- Flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- Loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- Name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - Security
Group List<string>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<string>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- Tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- Vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- Vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- Admin
State boolUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- Availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- Description string
- Human-readable description for the Loadbalancer.
- Flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- Loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- Name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- Region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - Security
Group []stringIds - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- []string
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- Tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- Vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- Vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- Vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State BooleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone String - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description String
- Human-readable description for the Loadbalancer.
- flavor
Id String - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider String - The name of the provider. Changing this creates a new loadbalancer.
- name String
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group List<String>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<String>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id String - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address String - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network StringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port StringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet StringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State booleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone string - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description string
- Human-readable description for the Loadbalancer.
- flavor
Id string - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider string - The name of the provider. Changing this creates a new loadbalancer.
- name string
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region string
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group string[]Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- string[]
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id string - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address string - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network stringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port stringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet stringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin_
state_ boolup - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability_
zone str - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description str
- Human-readable description for the Loadbalancer.
- flavor_
id str - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer_
provider str - The name of the provider. Changing this creates a new loadbalancer.
- name str
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security_
group_ Sequence[str]ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- Sequence[str]
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant_
id str - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip_
address str - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip_
network_ strid - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip_
port_ strid - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip_
subnet_ strid - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
- admin
State BooleanUp - The administrative state of the Loadbalancer. A valid value is true (UP) or false (DOWN).
- availability
Zone String - The availability zone of the Loadbalancer. Changing this creates a new loadbalancer. Available only for Octavia minor version 2.14 or later.
- description String
- Human-readable description for the Loadbalancer.
- flavor
Id String - The UUID of a flavor. Changing this creates a new loadbalancer.
- loadbalancer
Provider String - The name of the provider. Changing this creates a new loadbalancer.
- name String
- Human-readable name for the Loadbalancer. Does not have to be unique.
- region String
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an LB member. If omitted, the
region
argument of the provider is used. Changing this creates a new LB member. - security
Group List<String>Ids - A list of security group IDs to apply to the loadbalancer. The security groups must be specified by ID and not name (as opposed to how they are configured with the Compute Instance).
- List<String>
- A list of simple strings assigned to the loadbalancer. Available only for Octavia minor version 2.5 or later.
- tenant
Id String - Required for admins. The UUID of the tenant who owns the Loadbalancer. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new loadbalancer.
- vip
Address String - The ip address of the load balancer. Changing this creates a new loadbalancer.
- vip
Network StringId - The network on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Port StringId - The port UUID that the loadbalancer will use. Changing this creates a new loadbalancer. It is available only for Octavia.
- vip
Subnet StringId - The subnet on which to allocate the Loadbalancer's address. A tenant can only create Loadbalancers on networks authorized by policy (e.g. networks that belong to them or networks that are shared). Changing this creates a new loadbalancer. It is required to Neutron LBaaS but optional for Octavia.
Import
Load Balancer can be imported using the Load Balancer ID, e.g.:
$ pulumi import openstack:loadbalancer/loadBalancer:LoadBalancer loadbalancer_1 19bcfdc7-c521-4a7e-9459-6750bd16df76
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.