1. Packages
  2. Ibm Provider
  3. API Docs
  4. ContainerVpcAlbCreate
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.ContainerVpcAlbCreate

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Creates a new Application Load Balancer (ALB) for a VPC cluster. For more information, about IBM container VPC ALB, see VPC: Exposing apps with load balancers for VPC.

    Example Usage

    In the following example, you can configure a ALB:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const alb = new ibm.ContainerVpcAlbCreate("alb", {
        cluster: "exampleClusterID",
        enable: true,
        resourceGroupId: "123456",
        type: "private",
        zone: "us-south-1",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    alb = ibm.ContainerVpcAlbCreate("alb",
        cluster="exampleClusterID",
        enable=True,
        resource_group_id="123456",
        type="private",
        zone="us-south-1")
    
    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.NewContainerVpcAlbCreate(ctx, "alb", &ibm.ContainerVpcAlbCreateArgs{
    			Cluster:         pulumi.String("exampleClusterID"),
    			Enable:          pulumi.Bool(true),
    			ResourceGroupId: pulumi.String("123456"),
    			Type:            pulumi.String("private"),
    			Zone:            pulumi.String("us-south-1"),
    		})
    		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 alb = new Ibm.ContainerVpcAlbCreate("alb", new()
        {
            Cluster = "exampleClusterID",
            Enable = true,
            ResourceGroupId = "123456",
            Type = "private",
            Zone = "us-south-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.ContainerVpcAlbCreate;
    import com.pulumi.ibm.ContainerVpcAlbCreateArgs;
    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 alb = new ContainerVpcAlbCreate("alb", ContainerVpcAlbCreateArgs.builder()
                .cluster("exampleClusterID")
                .enable("true")
                .resourceGroupId("123456")
                .type("private")
                .zone("us-south-1")
                .build());
    
        }
    }
    
    resources:
      alb:
        type: ibm:ContainerVpcAlbCreate
        properties:
          cluster: exampleClusterID
          enable: 'true'
          resourceGroupId: '123456'
          type: private
          zone: us-south-1
    

    Create ContainerVpcAlbCreate Resource

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

    Constructor syntax

    new ContainerVpcAlbCreate(name: string, args: ContainerVpcAlbCreateArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerVpcAlbCreate(resource_name: str,
                              args: ContainerVpcAlbCreateArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerVpcAlbCreate(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cluster: Optional[str] = None,
                              type: Optional[str] = None,
                              zone: Optional[str] = None,
                              container_vpc_alb_create_id: Optional[str] = None,
                              enable: Optional[bool] = None,
                              resource_group_id: Optional[str] = None,
                              timeouts: Optional[ContainerVpcAlbCreateTimeoutsArgs] = None)
    func NewContainerVpcAlbCreate(ctx *Context, name string, args ContainerVpcAlbCreateArgs, opts ...ResourceOption) (*ContainerVpcAlbCreate, error)
    public ContainerVpcAlbCreate(string name, ContainerVpcAlbCreateArgs args, CustomResourceOptions? opts = null)
    public ContainerVpcAlbCreate(String name, ContainerVpcAlbCreateArgs args)
    public ContainerVpcAlbCreate(String name, ContainerVpcAlbCreateArgs args, CustomResourceOptions options)
    
    type: ibm:ContainerVpcAlbCreate
    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 ContainerVpcAlbCreateArgs
    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 ContainerVpcAlbCreateArgs
    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 ContainerVpcAlbCreateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerVpcAlbCreateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerVpcAlbCreateArgs
    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 containerVpcAlbCreateResource = new Ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource", new()
    {
        Cluster = "string",
        Type = "string",
        Zone = "string",
        ContainerVpcAlbCreateId = "string",
        Enable = false,
        ResourceGroupId = "string",
        Timeouts = new Ibm.Inputs.ContainerVpcAlbCreateTimeoutsArgs
        {
            Create = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewContainerVpcAlbCreate(ctx, "containerVpcAlbCreateResource", &ibm.ContainerVpcAlbCreateArgs{
    	Cluster:                 pulumi.String("string"),
    	Type:                    pulumi.String("string"),
    	Zone:                    pulumi.String("string"),
    	ContainerVpcAlbCreateId: pulumi.String("string"),
    	Enable:                  pulumi.Bool(false),
    	ResourceGroupId:         pulumi.String("string"),
    	Timeouts: &ibm.ContainerVpcAlbCreateTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var containerVpcAlbCreateResource = new ContainerVpcAlbCreate("containerVpcAlbCreateResource", ContainerVpcAlbCreateArgs.builder()
        .cluster("string")
        .type("string")
        .zone("string")
        .containerVpcAlbCreateId("string")
        .enable(false)
        .resourceGroupId("string")
        .timeouts(ContainerVpcAlbCreateTimeoutsArgs.builder()
            .create("string")
            .update("string")
            .build())
        .build());
    
    container_vpc_alb_create_resource = ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource",
        cluster="string",
        type="string",
        zone="string",
        container_vpc_alb_create_id="string",
        enable=False,
        resource_group_id="string",
        timeouts={
            "create": "string",
            "update": "string",
        })
    
    const containerVpcAlbCreateResource = new ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource", {
        cluster: "string",
        type: "string",
        zone: "string",
        containerVpcAlbCreateId: "string",
        enable: false,
        resourceGroupId: "string",
        timeouts: {
            create: "string",
            update: "string",
        },
    });
    
    type: ibm:ContainerVpcAlbCreate
    properties:
        cluster: string
        containerVpcAlbCreateId: string
        enable: false
        resourceGroupId: string
        timeouts:
            create: string
            update: string
        type: string
        zone: string
    

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

    Cluster string
    The name of the cluster where the ALB is going to be created
    Type string
    The ALB type. Supported values are public and private.
    Zone string
    The name of the zone.
    ContainerVpcAlbCreateId string
    Enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Timeouts ContainerVpcAlbCreateTimeouts
    Cluster string
    The name of the cluster where the ALB is going to be created
    Type string
    The ALB type. Supported values are public and private.
    Zone string
    The name of the zone.
    ContainerVpcAlbCreateId string
    Enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    Timeouts ContainerVpcAlbCreateTimeoutsArgs
    cluster String
    The name of the cluster where the ALB is going to be created
    type String
    The ALB type. Supported values are public and private.
    zone String
    The name of the zone.
    containerVpcAlbCreateId String
    enable Boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVpcAlbCreateTimeouts
    cluster string
    The name of the cluster where the ALB is going to be created
    type string
    The ALB type. Supported values are public and private.
    zone string
    The name of the zone.
    containerVpcAlbCreateId string
    enable boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    resourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVpcAlbCreateTimeouts
    cluster str
    The name of the cluster where the ALB is going to be created
    type str
    The ALB type. Supported values are public and private.
    zone str
    The name of the zone.
    container_vpc_alb_create_id str
    enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    resource_group_id str
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts ContainerVpcAlbCreateTimeoutsArgs
    cluster String
    The name of the cluster where the ALB is going to be created
    type String
    The ALB type. Supported values are public and private.
    zone String
    The name of the zone.
    containerVpcAlbCreateId String
    enable Boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    timeouts Property Map

    Outputs

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

    AlbId string
    (String) The unique identifier of the application load balancer.
    AlbType string
    (String) The ALB type.
    DisableDeployment bool
    (Bool) Disable the ALB instance in the cluster
    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancerHostname string
    (String) The host name of the ALB.
    Name string
    (String) The name of the ALB.
    Resize bool
    (Bool) Resize of the ALB.
    State string
    (String) ALB state.
    Status string
    (String) The status of ALB.
    AlbId string
    (String) The unique identifier of the application load balancer.
    AlbType string
    (String) The ALB type.
    DisableDeployment bool
    (Bool) Disable the ALB instance in the cluster
    Id string
    The provider-assigned unique ID for this managed resource.
    LoadBalancerHostname string
    (String) The host name of the ALB.
    Name string
    (String) The name of the ALB.
    Resize bool
    (Bool) Resize of the ALB.
    State string
    (String) ALB state.
    Status string
    (String) The status of ALB.
    albId String
    (String) The unique identifier of the application load balancer.
    albType String
    (String) The ALB type.
    disableDeployment Boolean
    (Bool) Disable the ALB instance in the cluster
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancerHostname String
    (String) The host name of the ALB.
    name String
    (String) The name of the ALB.
    resize Boolean
    (Bool) Resize of the ALB.
    state String
    (String) ALB state.
    status String
    (String) The status of ALB.
    albId string
    (String) The unique identifier of the application load balancer.
    albType string
    (String) The ALB type.
    disableDeployment boolean
    (Bool) Disable the ALB instance in the cluster
    id string
    The provider-assigned unique ID for this managed resource.
    loadBalancerHostname string
    (String) The host name of the ALB.
    name string
    (String) The name of the ALB.
    resize boolean
    (Bool) Resize of the ALB.
    state string
    (String) ALB state.
    status string
    (String) The status of ALB.
    alb_id str
    (String) The unique identifier of the application load balancer.
    alb_type str
    (String) The ALB type.
    disable_deployment bool
    (Bool) Disable the ALB instance in the cluster
    id str
    The provider-assigned unique ID for this managed resource.
    load_balancer_hostname str
    (String) The host name of the ALB.
    name str
    (String) The name of the ALB.
    resize bool
    (Bool) Resize of the ALB.
    state str
    (String) ALB state.
    status str
    (String) The status of ALB.
    albId String
    (String) The unique identifier of the application load balancer.
    albType String
    (String) The ALB type.
    disableDeployment Boolean
    (Bool) Disable the ALB instance in the cluster
    id String
    The provider-assigned unique ID for this managed resource.
    loadBalancerHostname String
    (String) The host name of the ALB.
    name String
    (String) The name of the ALB.
    resize Boolean
    (Bool) Resize of the ALB.
    state String
    (String) ALB state.
    status String
    (String) The status of ALB.

    Look up Existing ContainerVpcAlbCreate Resource

    Get an existing ContainerVpcAlbCreate 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?: ContainerVpcAlbCreateState, opts?: CustomResourceOptions): ContainerVpcAlbCreate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alb_id: Optional[str] = None,
            alb_type: Optional[str] = None,
            cluster: Optional[str] = None,
            container_vpc_alb_create_id: Optional[str] = None,
            disable_deployment: Optional[bool] = None,
            enable: Optional[bool] = None,
            load_balancer_hostname: Optional[str] = None,
            name: Optional[str] = None,
            resize: Optional[bool] = None,
            resource_group_id: Optional[str] = None,
            state: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[ContainerVpcAlbCreateTimeoutsArgs] = None,
            type: Optional[str] = None,
            zone: Optional[str] = None) -> ContainerVpcAlbCreate
    func GetContainerVpcAlbCreate(ctx *Context, name string, id IDInput, state *ContainerVpcAlbCreateState, opts ...ResourceOption) (*ContainerVpcAlbCreate, error)
    public static ContainerVpcAlbCreate Get(string name, Input<string> id, ContainerVpcAlbCreateState? state, CustomResourceOptions? opts = null)
    public static ContainerVpcAlbCreate get(String name, Output<String> id, ContainerVpcAlbCreateState state, CustomResourceOptions options)
    resources:  _:    type: ibm:ContainerVpcAlbCreate    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.
    The following state arguments are supported:
    AlbId string
    (String) The unique identifier of the application load balancer.
    AlbType string
    (String) The ALB type.
    Cluster string
    The name of the cluster where the ALB is going to be created
    ContainerVpcAlbCreateId string
    DisableDeployment bool
    (Bool) Disable the ALB instance in the cluster
    Enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    LoadBalancerHostname string
    (String) The host name of the ALB.
    Name string
    (String) The name of the ALB.
    Resize bool
    (Bool) Resize of the ALB.
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    State string
    (String) ALB state.
    Status string
    (String) The status of ALB.
    Timeouts ContainerVpcAlbCreateTimeouts
    Type string
    The ALB type. Supported values are public and private.
    Zone string
    The name of the zone.
    AlbId string
    (String) The unique identifier of the application load balancer.
    AlbType string
    (String) The ALB type.
    Cluster string
    The name of the cluster where the ALB is going to be created
    ContainerVpcAlbCreateId string
    DisableDeployment bool
    (Bool) Disable the ALB instance in the cluster
    Enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    LoadBalancerHostname string
    (String) The host name of the ALB.
    Name string
    (String) The name of the ALB.
    Resize bool
    (Bool) Resize of the ALB.
    ResourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    State string
    (String) ALB state.
    Status string
    (String) The status of ALB.
    Timeouts ContainerVpcAlbCreateTimeoutsArgs
    Type string
    The ALB type. Supported values are public and private.
    Zone string
    The name of the zone.
    albId String
    (String) The unique identifier of the application load balancer.
    albType String
    (String) The ALB type.
    cluster String
    The name of the cluster where the ALB is going to be created
    containerVpcAlbCreateId String
    disableDeployment Boolean
    (Bool) Disable the ALB instance in the cluster
    enable Boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    loadBalancerHostname String
    (String) The host name of the ALB.
    name String
    (String) The name of the ALB.
    resize Boolean
    (Bool) Resize of the ALB.
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    state String
    (String) ALB state.
    status String
    (String) The status of ALB.
    timeouts ContainerVpcAlbCreateTimeouts
    type String
    The ALB type. Supported values are public and private.
    zone String
    The name of the zone.
    albId string
    (String) The unique identifier of the application load balancer.
    albType string
    (String) The ALB type.
    cluster string
    The name of the cluster where the ALB is going to be created
    containerVpcAlbCreateId string
    disableDeployment boolean
    (Bool) Disable the ALB instance in the cluster
    enable boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    loadBalancerHostname string
    (String) The host name of the ALB.
    name string
    (String) The name of the ALB.
    resize boolean
    (Bool) Resize of the ALB.
    resourceGroupId string
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    state string
    (String) ALB state.
    status string
    (String) The status of ALB.
    timeouts ContainerVpcAlbCreateTimeouts
    type string
    The ALB type. Supported values are public and private.
    zone string
    The name of the zone.
    alb_id str
    (String) The unique identifier of the application load balancer.
    alb_type str
    (String) The ALB type.
    cluster str
    The name of the cluster where the ALB is going to be created
    container_vpc_alb_create_id str
    disable_deployment bool
    (Bool) Disable the ALB instance in the cluster
    enable bool
    If set to true, the ALB in your cluster is enabled. Defaults to true
    load_balancer_hostname str
    (String) The host name of the ALB.
    name str
    (String) The name of the ALB.
    resize bool
    (Bool) Resize of the ALB.
    resource_group_id str
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    state str
    (String) ALB state.
    status str
    (String) The status of ALB.
    timeouts ContainerVpcAlbCreateTimeoutsArgs
    type str
    The ALB type. Supported values are public and private.
    zone str
    The name of the zone.
    albId String
    (String) The unique identifier of the application load balancer.
    albType String
    (String) The ALB type.
    cluster String
    The name of the cluster where the ALB is going to be created
    containerVpcAlbCreateId String
    disableDeployment Boolean
    (Bool) Disable the ALB instance in the cluster
    enable Boolean
    If set to true, the ALB in your cluster is enabled. Defaults to true
    loadBalancerHostname String
    (String) The host name of the ALB.
    name String
    (String) The name of the ALB.
    resize Boolean
    (Bool) Resize of the ALB.
    resourceGroupId String
    The ID of the resource group where your cluster is provisioned into. To list resource groups, run ibmcloud resource groups or use the ibm.ResourceGroup data source.
    state String
    (String) ALB state.
    status String
    (String) The status of ALB.
    timeouts Property Map
    type String
    The ALB type. Supported values are public and private.
    zone String
    The name of the zone.

    Supporting Types

    ContainerVpcAlbCreateTimeouts, ContainerVpcAlbCreateTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud