ibm.IsLb
Explore with Pulumi AI
Create, update, or delete a VPC Load Balancer. For more information, about VPC load balancer, see load balancers for VPC overview.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
An example to create an application load balancer.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsLb("example", {subnets: [
ibm_is_subnet.example.id,
ibm_is_subnet.example1.id,
]});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsLb("example", subnets=[
ibm_is_subnet["example"]["id"],
ibm_is_subnet["example1"]["id"],
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsLb(ctx, "example", &ibm.IsLbArgs{
Subnets: pulumi.StringArray{
ibm_is_subnet.Example.Id,
ibm_is_subnet.Example1.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = new Ibm.IsLb("example", new()
{
Subnets = new[]
{
ibm_is_subnet.Example.Id,
ibm_is_subnet.Example1.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsLb;
import com.pulumi.ibm.IsLbArgs;
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 example = new IsLb("example", IsLbArgs.builder()
.subnets(
ibm_is_subnet.example().id(),
ibm_is_subnet.example1().id())
.build());
}
}
resources:
example:
type: ibm:IsLb
properties:
subnets:
- ${ibm_is_subnet.example.id}
- ${ibm_is_subnet.example1.id}
An example to create a network load balancer.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsLb("example", {
subnets: [ibm_is_subnet.example.id],
profile: "network-fixed",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsLb("example",
subnets=[ibm_is_subnet["example"]["id"]],
profile="network-fixed")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsLb(ctx, "example", &ibm.IsLbArgs{
Subnets: pulumi.StringArray{
ibm_is_subnet.Example.Id,
},
Profile: pulumi.String("network-fixed"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = new Ibm.IsLb("example", new()
{
Subnets = new[]
{
ibm_is_subnet.Example.Id,
},
Profile = "network-fixed",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsLb;
import com.pulumi.ibm.IsLbArgs;
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 example = new IsLb("example", IsLbArgs.builder()
.subnets(ibm_is_subnet.example().id())
.profile("network-fixed")
.build());
}
}
resources:
example:
type: ibm:IsLb
properties:
subnets:
- ${ibm_is_subnet.example.id}
profile: network-fixed
An example to create a load balancer with private DNS.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsLb("example", {
subnets: [ibm_is_subnet.example.id],
profile: "network-fixed",
dns: {
instanceCrn: "crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::",
zoneId: "bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
},
});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsLb("example",
subnets=[ibm_is_subnet["example"]["id"]],
profile="network-fixed",
dns={
"instance_crn": "crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::",
"zone_id": "bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsLb(ctx, "example", &ibm.IsLbArgs{
Subnets: pulumi.StringArray{
ibm_is_subnet.Example.Id,
},
Profile: pulumi.String("network-fixed"),
Dns: &ibm.IsLbDnsArgs{
InstanceCrn: pulumi.String("crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::"),
ZoneId: pulumi.String("bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = new Ibm.IsLb("example", new()
{
Subnets = new[]
{
ibm_is_subnet.Example.Id,
},
Profile = "network-fixed",
Dns = new Ibm.Inputs.IsLbDnsArgs
{
InstanceCrn = "crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::",
ZoneId = "bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsLb;
import com.pulumi.ibm.IsLbArgs;
import com.pulumi.ibm.inputs.IsLbDnsArgs;
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 example = new IsLb("example", IsLbArgs.builder()
.subnets(ibm_is_subnet.example().id())
.profile("network-fixed")
.dns(IsLbDnsArgs.builder()
.instanceCrn("crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::")
.zoneId("bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx")
.build())
.build());
}
}
resources:
example:
type: ibm:IsLb
properties:
subnets:
- ${ibm_is_subnet.example.id}
profile: network-fixed
dns:
instanceCrn: 'crn:v1:staging:public:dns-svcs:global:a/exxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx:5xxxxxxx-xxxxx-xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxx::'
zoneId: bxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
An example to create a private path load balancer.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsLb("example", {
subnets: [ibm_is_subnet.example.id],
profile: "network-private-path",
type: "private_path",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsLb("example",
subnets=[ibm_is_subnet["example"]["id"]],
profile="network-private-path",
type="private_path")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsLb(ctx, "example", &ibm.IsLbArgs{
Subnets: pulumi.StringArray{
ibm_is_subnet.Example.Id,
},
Profile: pulumi.String("network-private-path"),
Type: pulumi.String("private_path"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = new Ibm.IsLb("example", new()
{
Subnets = new[]
{
ibm_is_subnet.Example.Id,
},
Profile = "network-private-path",
Type = "private_path",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsLb;
import com.pulumi.ibm.IsLbArgs;
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 example = new IsLb("example", IsLbArgs.builder()
.subnets(ibm_is_subnet.example().id())
.profile("network-private-path")
.type("private_path")
.build());
}
}
resources:
example:
type: ibm:IsLb
properties:
subnets:
- ${ibm_is_subnet.example.id}
profile: network-private-path
type: private_path
Create IsLb Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsLb(name: string, args: IsLbArgs, opts?: CustomResourceOptions);
@overload
def IsLb(resource_name: str,
args: IsLbArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsLb(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnets: Optional[Sequence[str]] = None,
logging: Optional[bool] = None,
is_lb_id: Optional[str] = None,
access_tags: Optional[Sequence[str]] = None,
name: Optional[str] = None,
profile: Optional[str] = None,
resource_group: Optional[str] = None,
route_mode: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
dns: Optional[IsLbDnsArgs] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[IsLbTimeoutsArgs] = None,
type: Optional[str] = None)
func NewIsLb(ctx *Context, name string, args IsLbArgs, opts ...ResourceOption) (*IsLb, error)
public IsLb(string name, IsLbArgs args, CustomResourceOptions? opts = null)
type: ibm:IsLb
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 IsLbArgs
- 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 IsLbArgs
- 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 IsLbArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsLbArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsLbArgs
- 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 isLbResource = new Ibm.IsLb("isLbResource", new()
{
Subnets = new[]
{
"string",
},
Logging = false,
IsLbId = "string",
AccessTags = new[]
{
"string",
},
Name = "string",
Profile = "string",
ResourceGroup = "string",
RouteMode = false,
SecurityGroups = new[]
{
"string",
},
Dns = new Ibm.Inputs.IsLbDnsArgs
{
InstanceCrn = "string",
ZoneId = "string",
},
Tags = new[]
{
"string",
},
Timeouts = new Ibm.Inputs.IsLbTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Type = "string",
});
example, err := ibm.NewIsLb(ctx, "isLbResource", &ibm.IsLbArgs{
Subnets: pulumi.StringArray{
pulumi.String("string"),
},
Logging: pulumi.Bool(false),
IsLbId: pulumi.String("string"),
AccessTags: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Profile: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
RouteMode: pulumi.Bool(false),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Dns: &ibm.IsLbDnsArgs{
InstanceCrn: pulumi.String("string"),
ZoneId: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &ibm.IsLbTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var isLbResource = new IsLb("isLbResource", IsLbArgs.builder()
.subnets("string")
.logging(false)
.isLbId("string")
.accessTags("string")
.name("string")
.profile("string")
.resourceGroup("string")
.routeMode(false)
.securityGroups("string")
.dns(IsLbDnsArgs.builder()
.instanceCrn("string")
.zoneId("string")
.build())
.tags("string")
.timeouts(IsLbTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.type("string")
.build());
is_lb_resource = ibm.IsLb("isLbResource",
subnets=["string"],
logging=False,
is_lb_id="string",
access_tags=["string"],
name="string",
profile="string",
resource_group="string",
route_mode=False,
security_groups=["string"],
dns={
"instance_crn": "string",
"zone_id": "string",
},
tags=["string"],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
type="string")
const isLbResource = new ibm.IsLb("isLbResource", {
subnets: ["string"],
logging: false,
isLbId: "string",
accessTags: ["string"],
name: "string",
profile: "string",
resourceGroup: "string",
routeMode: false,
securityGroups: ["string"],
dns: {
instanceCrn: "string",
zoneId: "string",
},
tags: ["string"],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
type: "string",
});
type: ibm:IsLb
properties:
accessTags:
- string
dns:
instanceCrn: string
zoneId: string
isLbId: string
logging: false
name: string
profile: string
resourceGroup: string
routeMode: false
securityGroups:
- string
subnets:
- string
tags:
- string
timeouts:
create: string
delete: string
update: string
type: string
IsLb 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 IsLb resource accepts the following input properties:
- Subnets List<string>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<string>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- Is
Lb stringId - (String) The unique identifier of the load balancer.
- Logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- Name string
- The name of the VPC load balancer.
- Profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - Resource
Group string - The resource group where the load balancer to be created.
- Route
Mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- Security
Groups List<string> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- List<string>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- Timeouts
Is
Lb Timeouts - Type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
- Subnets []string
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- []string
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Dns
Is
Lb Dns Args The DNS configuration for this load balancer.
Nested scheme for
dns
:- Is
Lb stringId - (String) The unique identifier of the load balancer.
- Logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- Name string
- The name of the VPC load balancer.
- Profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - Resource
Group string - The resource group where the load balancer to be created.
- Route
Mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- Security
Groups []string - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- []string
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- Timeouts
Is
Lb Timeouts Args - Type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
- subnets List<String>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<String>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- is
Lb StringId - (String) The unique identifier of the load balancer.
- logging Boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name String
- The name of the VPC load balancer.
- profile String
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - resource
Group String - The resource group where the load balancer to be created.
- route
Mode Boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Groups List<String> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- List<String>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts - type String
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
- subnets string[]
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- string[]
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- is
Lb stringId - (String) The unique identifier of the load balancer.
- logging boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name string
- The name of the VPC load balancer.
- profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - resource
Group string - The resource group where the load balancer to be created.
- route
Mode boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Groups string[] - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- string[]
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts - type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
- subnets Sequence[str]
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- Sequence[str]
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- dns
Is
Lb Dns Args The DNS configuration for this load balancer.
Nested scheme for
dns
:- is_
lb_ strid - (String) The unique identifier of the load balancer.
- logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name str
- The name of the VPC load balancer.
- profile str
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - resource_
group str - The resource group where the load balancer to be created.
- route_
mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security_
groups Sequence[str] - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- Sequence[str]
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts Args - type str
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
- subnets List<String>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<String>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- dns Property Map
The DNS configuration for this load balancer.
Nested scheme for
dns
:- is
Lb StringId - (String) The unique identifier of the load balancer.
- logging Boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name String
- The name of the VPC load balancer.
- profile String
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - resource
Group String - The resource group where the load balancer to be created.
- route
Mode Boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Groups List<String> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- List<String>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts Property Map
- type String
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsLb resource produces the following output properties:
- Access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- Attached
Load List<IsBalancer Pool Members Lb Attached Load Balancer Pool Member> - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - Availability string
- (String) The availability of this load balancer
- Crn string
- (String) The CRN for this load balancer.
- Failsafe
Policy List<string>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - Hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Groups boolSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- Operating
Status string - (String) The operating status of this load balancer.
- Private
Ip List<IsLb Private Ip> - (List) The Reserved IP address reference assigned to this load balancer.
- Private
Ips List<string> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- Public
Ips List<string> - (String) The public IP addresses assigned to this load balancer.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Security
Group boolSupported - Security Group Supported for this Load Balancer
- Source
Ip boolSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- Status string
- (String) The status of the load balancer.
- Udp
Supported bool - (Bool) Indicates whether this load balancer supports UDP.
- Version string
- Access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- Attached
Load []IsBalancer Pool Members Lb Attached Load Balancer Pool Member - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - Availability string
- (String) The availability of this load balancer
- Crn string
- (String) The CRN for this load balancer.
- Failsafe
Policy []stringActions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - Hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Groups boolSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- Operating
Status string - (String) The operating status of this load balancer.
- Private
Ip []IsLb Private Ip - (List) The Reserved IP address reference assigned to this load balancer.
- Private
Ips []string - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- Public
Ips []string - (String) The public IP addresses assigned to this load balancer.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Security
Group boolSupported - Security Group Supported for this Load Balancer
- Source
Ip boolSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- Status string
- (String) The status of the load balancer.
- Udp
Supported bool - (Bool) Indicates whether this load balancer supports UDP.
- Version string
- access
Mode String - (String) The access mode for this load balancer. One of private, public, private_path.
- attached
Load List<IsBalancer Pool Members Lb Attached Load Balancer Pool Member> - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability String
- (String) The availability of this load balancer
- crn String
- (String) The CRN for this load balancer.
- failsafe
Policy List<String>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname String
- (String) The fully qualified domain name assigned to this load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Groups BooleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- operating
Status String - (String) The operating status of this load balancer.
- private
Ip List<IsLb Private Ip> - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips List<String> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- public
Ips List<String> - (String) The public IP addresses assigned to this load balancer.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- security
Group BooleanSupported - Security Group Supported for this Load Balancer
- source
Ip BooleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status String
- (String) The status of the load balancer.
- udp
Supported Boolean - (Bool) Indicates whether this load balancer supports UDP.
- version String
- access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- attached
Load IsBalancer Pool Members Lb Attached Load Balancer Pool Member[] - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability string
- (String) The availability of this load balancer
- crn string
- (String) The CRN for this load balancer.
- failsafe
Policy string[]Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Groups booleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- operating
Status string - (String) The operating status of this load balancer.
- private
Ip IsLb Private Ip[] - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips string[] - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- public
Ips string[] - (String) The public IP addresses assigned to this load balancer.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- security
Group booleanSupported - Security Group Supported for this Load Balancer
- source
Ip booleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status string
- (String) The status of the load balancer.
- udp
Supported boolean - (Bool) Indicates whether this load balancer supports UDP.
- version string
- access_
mode str - (String) The access mode for this load balancer. One of private, public, private_path.
- attached_
load_ Sequence[Isbalancer_ pool_ members Lb Attached Load Balancer Pool Member] - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability str
- (String) The availability of this load balancer
- crn str
- (String) The CRN for this load balancer.
- failsafe_
policy_ Sequence[str]actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname str
- (String) The fully qualified domain name assigned to this load balancer.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
groups_ boolsupported - (Boolean) Indicates whether this load balancer supports instance groups.
- operating_
status str - (String) The operating status of this load balancer.
- private_
ip Sequence[IsLb Private Ip] - (List) The Reserved IP address reference assigned to this load balancer.
- private_
ips Sequence[str] - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- public_
ips Sequence[str] - (String) The public IP addresses assigned to this load balancer.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- security_
group_ boolsupported - Security Group Supported for this Load Balancer
- source_
ip_ boolsession_ persistence_ supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status str
- (String) The status of the load balancer.
- udp_
supported bool - (Bool) Indicates whether this load balancer supports UDP.
- version str
- access
Mode String - (String) The access mode for this load balancer. One of private, public, private_path.
- attached
Load List<Property Map>Balancer Pool Members - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability String
- (String) The availability of this load balancer
- crn String
- (String) The CRN for this load balancer.
- failsafe
Policy List<String>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname String
- (String) The fully qualified domain name assigned to this load balancer.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Groups BooleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- operating
Status String - (String) The operating status of this load balancer.
- private
Ip List<Property Map> - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips List<String> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- public
Ips List<String> - (String) The public IP addresses assigned to this load balancer.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- security
Group BooleanSupported - Security Group Supported for this Load Balancer
- source
Ip BooleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status String
- (String) The status of the load balancer.
- udp
Supported Boolean - (Bool) Indicates whether this load balancer supports UDP.
- version String
Look up Existing IsLb Resource
Get an existing IsLb 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?: IsLbState, opts?: CustomResourceOptions): IsLb
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
access_tags: Optional[Sequence[str]] = None,
attached_load_balancer_pool_members: Optional[Sequence[IsLbAttachedLoadBalancerPoolMemberArgs]] = None,
availability: Optional[str] = None,
crn: Optional[str] = None,
dns: Optional[IsLbDnsArgs] = None,
failsafe_policy_actions: Optional[Sequence[str]] = None,
hostname: Optional[str] = None,
instance_groups_supported: Optional[bool] = None,
is_lb_id: Optional[str] = None,
logging: Optional[bool] = None,
name: Optional[str] = None,
operating_status: Optional[str] = None,
private_ip: Optional[Sequence[IsLbPrivateIpArgs]] = None,
private_ips: Optional[Sequence[str]] = None,
profile: Optional[str] = None,
public_ips: Optional[Sequence[str]] = None,
resource_controller_url: Optional[str] = None,
resource_group: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
route_mode: Optional[bool] = None,
security_group_supported: Optional[bool] = None,
security_groups: Optional[Sequence[str]] = None,
source_ip_session_persistence_supported: Optional[bool] = None,
status: Optional[str] = None,
subnets: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[IsLbTimeoutsArgs] = None,
type: Optional[str] = None,
udp_supported: Optional[bool] = None,
version: Optional[str] = None) -> IsLb
func GetIsLb(ctx *Context, name string, id IDInput, state *IsLbState, opts ...ResourceOption) (*IsLb, error)
public static IsLb Get(string name, Input<string> id, IsLbState? state, CustomResourceOptions? opts = null)
public static IsLb get(String name, Output<String> id, IsLbState state, CustomResourceOptions options)
resources: _: type: ibm:IsLb 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.
- Access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- List<string>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Attached
Load List<IsBalancer Pool Members Lb Attached Load Balancer Pool Member> - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - Availability string
- (String) The availability of this load balancer
- Crn string
- (String) The CRN for this load balancer.
- Dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- Failsafe
Policy List<string>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - Hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- Instance
Groups boolSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- Is
Lb stringId - (String) The unique identifier of the load balancer.
- Logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- Name string
- The name of the VPC load balancer.
- Operating
Status string - (String) The operating status of this load balancer.
- Private
Ip List<IsLb Private Ip> - (List) The Reserved IP address reference assigned to this load balancer.
- Private
Ips List<string> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- Profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - Public
Ips List<string> - (String) The public IP addresses assigned to this load balancer.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Group string - The resource group where the load balancer to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Route
Mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- Security
Group boolSupported - Security Group Supported for this Load Balancer
- Security
Groups List<string> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- Source
Ip boolSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- Status string
- (String) The status of the load balancer.
- Subnets List<string>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<string>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- Timeouts
Is
Lb Timeouts - Type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - Udp
Supported bool - (Bool) Indicates whether this load balancer supports UDP.
- Version string
- Access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- []string
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Attached
Load []IsBalancer Pool Members Lb Attached Load Balancer Pool Member Args - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - Availability string
- (String) The availability of this load balancer
- Crn string
- (String) The CRN for this load balancer.
- Dns
Is
Lb Dns Args The DNS configuration for this load balancer.
Nested scheme for
dns
:- Failsafe
Policy []stringActions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - Hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- Instance
Groups boolSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- Is
Lb stringId - (String) The unique identifier of the load balancer.
- Logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- Name string
- The name of the VPC load balancer.
- Operating
Status string - (String) The operating status of this load balancer.
- Private
Ip []IsLb Private Ip Args - (List) The Reserved IP address reference assigned to this load balancer.
- Private
Ips []string - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- Profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - Public
Ips []string - (String) The public IP addresses assigned to this load balancer.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Group string - The resource group where the load balancer to be created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Route
Mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- Security
Group boolSupported - Security Group Supported for this Load Balancer
- Security
Groups []string - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- Source
Ip boolSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- Status string
- (String) The status of the load balancer.
- Subnets []string
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- []string
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- Timeouts
Is
Lb Timeouts Args - Type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - Udp
Supported bool - (Bool) Indicates whether this load balancer supports UDP.
- Version string
- access
Mode String - (String) The access mode for this load balancer. One of private, public, private_path.
- List<String>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- attached
Load List<IsBalancer Pool Members Lb Attached Load Balancer Pool Member> - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability String
- (String) The availability of this load balancer
- crn String
- (String) The CRN for this load balancer.
- dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- failsafe
Policy List<String>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname String
- (String) The fully qualified domain name assigned to this load balancer.
- instance
Groups BooleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- is
Lb StringId - (String) The unique identifier of the load balancer.
- logging Boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name String
- The name of the VPC load balancer.
- operating
Status String - (String) The operating status of this load balancer.
- private
Ip List<IsLb Private Ip> - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips List<String> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- profile String
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - public
Ips List<String> - (String) The public IP addresses assigned to this load balancer.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group String - The resource group where the load balancer to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- route
Mode Boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Group BooleanSupported - Security Group Supported for this Load Balancer
- security
Groups List<String> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- source
Ip BooleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status String
- (String) The status of the load balancer.
- subnets List<String>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<String>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts - type String
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - udp
Supported Boolean - (Bool) Indicates whether this load balancer supports UDP.
- version String
- access
Mode string - (String) The access mode for this load balancer. One of private, public, private_path.
- string[]
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- attached
Load IsBalancer Pool Members Lb Attached Load Balancer Pool Member[] - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability string
- (String) The availability of this load balancer
- crn string
- (String) The CRN for this load balancer.
- dns
Is
Lb Dns The DNS configuration for this load balancer.
Nested scheme for
dns
:- failsafe
Policy string[]Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname string
- (String) The fully qualified domain name assigned to this load balancer.
- instance
Groups booleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- is
Lb stringId - (String) The unique identifier of the load balancer.
- logging boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name string
- The name of the VPC load balancer.
- operating
Status string - (String) The operating status of this load balancer.
- private
Ip IsLb Private Ip[] - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips string[] - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- profile string
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - public
Ips string[] - (String) The public IP addresses assigned to this load balancer.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group string - The resource group where the load balancer to be created.
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- route
Mode boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Group booleanSupported - Security Group Supported for this Load Balancer
- security
Groups string[] - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- source
Ip booleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status string
- (String) The status of the load balancer.
- subnets string[]
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- string[]
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts - type string
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - udp
Supported boolean - (Bool) Indicates whether this load balancer supports UDP.
- version string
- access_
mode str - (String) The access mode for this load balancer. One of private, public, private_path.
- Sequence[str]
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- attached_
load_ Sequence[Isbalancer_ pool_ members Lb Attached Load Balancer Pool Member Args] - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability str
- (String) The availability of this load balancer
- crn str
- (String) The CRN for this load balancer.
- dns
Is
Lb Dns Args The DNS configuration for this load balancer.
Nested scheme for
dns
:- failsafe_
policy_ Sequence[str]actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname str
- (String) The fully qualified domain name assigned to this load balancer.
- instance_
groups_ boolsupported - (Boolean) Indicates whether this load balancer supports instance groups.
- is_
lb_ strid - (String) The unique identifier of the load balancer.
- logging bool
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name str
- The name of the VPC load balancer.
- operating_
status str - (String) The operating status of this load balancer.
- private_
ip Sequence[IsLb Private Ip Args] - (List) The Reserved IP address reference assigned to this load balancer.
- private_
ips Sequence[str] - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- profile str
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - public_
ips Sequence[str] - (String) The public IP addresses assigned to this load balancer.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
group str - The resource group where the load balancer to be created.
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- route_
mode bool Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security_
group_ boolsupported - Security Group Supported for this Load Balancer
- security_
groups Sequence[str] - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- source_
ip_ boolsession_ persistence_ supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status str
- (String) The status of the load balancer.
- subnets Sequence[str]
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- Sequence[str]
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts
Is
Lb Timeouts Args - type str
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - udp_
supported bool - (Bool) Indicates whether this load balancer supports UDP.
- version str
- access
Mode String - (String) The access mode for this load balancer. One of private, public, private_path.
- List<String>
A list of access management tags to attach to the load balancer.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- attached
Load List<Property Map>Balancer Pool Members - (List) The load balancer pool members attached to this load balancer.
Nested scheme for
members
: - availability String
- (String) The availability of this load balancer
- crn String
- (String) The CRN for this load balancer.
- dns Property Map
The DNS configuration for this load balancer.
Nested scheme for
dns
:- failsafe
Policy List<String>Actions - The supported
failsafe_policy.action
values for this load balancer's pools. Allowable list items are:fail
,forward
. - hostname String
- (String) The fully qualified domain name assigned to this load balancer.
- instance
Groups BooleanSupported - (Boolean) Indicates whether this load balancer supports instance groups.
- is
Lb StringId - (String) The unique identifier of the load balancer.
- logging Boolean
- Enable or disable datapath logging for the load balancer. This is applicable only for application load balancer. Supported values are true or false. Default value is false.
- name String
- The name of the VPC load balancer.
- operating
Status String - (String) The operating status of this load balancer.
- private
Ip List<Property Map> - (List) The Reserved IP address reference assigned to this load balancer.
- private
Ips List<String> - (String) The private IP addresses (Reserved IP address reference) assigned to this load balancer.
- profile String
- For a Network Load Balancer, this attribute is required for network and private path load balancers. Should be set to
network-private-path
for private path load balancers andnetwork-fixed
for a network load balancer. For Application Load Balancer, profile is not a required attribute. - public
Ips List<String> - (String) The public IP addresses assigned to this load balancer.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Group String - The resource group where the load balancer to be created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- route
Mode Boolean Indicates whether route mode is enabled for this load balancer.
NOTE: Currently,
route_mode
enabled is supported only by private network load balancers.- security
Group BooleanSupported - Security Group Supported for this Load Balancer
- security
Groups List<String> - A list of security groups to use for this load balancer. This option is supported for both application and network load balancers.
- source
Ip BooleanSession Persistence Supported - (Boolean) Indicates whether this load balancer supports source IP session persistence.
- status String
- (String) The status of the load balancer.
- subnets List<String>
List of the subnets IDs to connect to the load balancer.
NOTE: The subnets must be in the same
VPC
. The load balancer'savailability
will depend on the availability of thezones
the specified subnets reside in. The load balancer must be in theapplication
family forupdating subnets
. Load balancers in thenetwork
family allow onlyone subnet
to be specified.- List<String>
- A list of tags that you want to add to your load balancer. Tags can help you find the load balancer more easily later.
- timeouts Property Map
- type String
- The type of the load balancer. Default value is
public
. Supported values arepublic
,private
andprivate_path
. - udp
Supported Boolean - (Bool) Indicates whether this load balancer supports UDP.
- version String
Supporting Types
IsLbAttachedLoadBalancerPoolMember, IsLbAttachedLoadBalancerPoolMemberArgs
- Deleteds
List<Is
Lb Attached Load Balancer Pool Member Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - Href string
- (String) The URL for this reserved ip
- Id string
- (String) The unique identifier of the load balancer.
- Deleteds
[]Is
Lb Attached Load Balancer Pool Member Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - Href string
- (String) The URL for this reserved ip
- Id string
- (String) The unique identifier of the load balancer.
- deleteds
List<Is
Lb Attached Load Balancer Pool Member Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href String
- (String) The URL for this reserved ip
- id String
- (String) The unique identifier of the load balancer.
- deleteds
Is
Lb Attached Load Balancer Pool Member Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href string
- (String) The URL for this reserved ip
- id string
- (String) The unique identifier of the load balancer.
- deleteds
Sequence[Is
Lb Attached Load Balancer Pool Member Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href str
- (String) The URL for this reserved ip
- id str
- (String) The unique identifier of the load balancer.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href String
- (String) The URL for this reserved ip
- id String
- (String) The unique identifier of the load balancer.
IsLbAttachedLoadBalancerPoolMemberDeleted, IsLbAttachedLoadBalancerPoolMemberDeletedArgs
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
IsLbDns, IsLbDnsArgs
- Instance
Crn string - The CRN of the DNS instance associated with the DNS zone
- Zone
Id string - The unique identifier of the DNS zone.
- Instance
Crn string - The CRN of the DNS instance associated with the DNS zone
- Zone
Id string - The unique identifier of the DNS zone.
- instance
Crn String - The CRN of the DNS instance associated with the DNS zone
- zone
Id String - The unique identifier of the DNS zone.
- instance
Crn string - The CRN of the DNS instance associated with the DNS zone
- zone
Id string - The unique identifier of the DNS zone.
- instance_
crn str - The CRN of the DNS instance associated with the DNS zone
- zone_
id str - The unique identifier of the DNS zone.
- instance
Crn String - The CRN of the DNS instance associated with the DNS zone
- zone
Id String - The unique identifier of the DNS zone.
IsLbPrivateIp, IsLbPrivateIpArgs
- Address string
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Href string
- (String) The URL for this reserved ip
- Name string
- The name of the VPC load balancer.
- Reserved
Ip string - (String) The unique identifier for this reserved IP.
- Resource
Type string
- Address string
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Href string
- (String) The URL for this reserved ip
- Name string
- The name of the VPC load balancer.
- Reserved
Ip string - (String) The unique identifier for this reserved IP.
- Resource
Type string
- address String
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href String
- (String) The URL for this reserved ip
- name String
- The name of the VPC load balancer.
- reserved
Ip String - (String) The unique identifier for this reserved IP.
- resource
Type String
- address string
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href string
- (String) The URL for this reserved ip
- name string
- The name of the VPC load balancer.
- reserved
Ip string - (String) The unique identifier for this reserved IP.
- resource
Type string
- address str
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href str
- (String) The URL for this reserved ip
- name str
- The name of the VPC load balancer.
- reserved_
ip str - (String) The unique identifier for this reserved IP.
- resource_
type str
- address String
- (String) IPv4 The IP address. This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- href String
- (String) The URL for this reserved ip
- name String
- The name of the VPC load balancer.
- reserved
Ip String - (String) The unique identifier for this reserved IP.
- resource
Type String
IsLbTimeouts, IsLbTimeoutsArgs
Import
The ibm_is_lb
resource can be imported by using the load balancer ID.
Syntax
$ pulumi import ibm:index/isLb:IsLb example <lb_ID>
Example
$ terraform import ibm_is_lb.example d7bec597-4726-451f-8a63-e62e6f133332c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.