ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getContainerVpcAlb
Explore with Pulumi AI
Retrieve information about all the Kubernetes cluster ALB on IBM Cloud as a read-only data source. For more information, about Kubernets container VPC ALB, see VPC: Exposing apps with load balancers for VPC.
Example Usage
The following example retrieves information of an ALB.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const alb = ibm.getContainerVpcAlb({
albId: "public-cr083d810e501d4c73b42184eab5a7ad56-alb",
});
import pulumi
import pulumi_ibm as ibm
alb = ibm.get_container_vpc_alb(alb_id="public-cr083d810e501d4c73b42184eab5a7ad56-alb")
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.LookupContainerVpcAlb(ctx, &ibm.LookupContainerVpcAlbArgs{
AlbId: "public-cr083d810e501d4c73b42184eab5a7ad56-alb",
}, nil)
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 = Ibm.GetContainerVpcAlb.Invoke(new()
{
AlbId = "public-cr083d810e501d4c73b42184eab5a7ad56-alb",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetContainerVpcAlbArgs;
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) {
final var alb = IbmFunctions.getContainerVpcAlb(GetContainerVpcAlbArgs.builder()
.albId("public-cr083d810e501d4c73b42184eab5a7ad56-alb")
.build());
}
}
variables:
alb:
fn::invoke:
function: ibm:getContainerVpcAlb
arguments:
albId: public-cr083d810e501d4c73b42184eab5a7ad56-alb
Using getContainerVpcAlb
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContainerVpcAlb(args: GetContainerVpcAlbArgs, opts?: InvokeOptions): Promise<GetContainerVpcAlbResult>
function getContainerVpcAlbOutput(args: GetContainerVpcAlbOutputArgs, opts?: InvokeOptions): Output<GetContainerVpcAlbResult>
def get_container_vpc_alb(alb_id: Optional[str] = None,
id: Optional[str] = None,
resource_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerVpcAlbResult
def get_container_vpc_alb_output(alb_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerVpcAlbResult]
func LookupContainerVpcAlb(ctx *Context, args *LookupContainerVpcAlbArgs, opts ...InvokeOption) (*LookupContainerVpcAlbResult, error)
func LookupContainerVpcAlbOutput(ctx *Context, args *LookupContainerVpcAlbOutputArgs, opts ...InvokeOption) LookupContainerVpcAlbResultOutput
> Note: This function is named LookupContainerVpcAlb
in the Go SDK.
public static class GetContainerVpcAlb
{
public static Task<GetContainerVpcAlbResult> InvokeAsync(GetContainerVpcAlbArgs args, InvokeOptions? opts = null)
public static Output<GetContainerVpcAlbResult> Invoke(GetContainerVpcAlbInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerVpcAlbResult> getContainerVpcAlb(GetContainerVpcAlbArgs args, InvokeOptions options)
public static Output<GetContainerVpcAlbResult> getContainerVpcAlb(GetContainerVpcAlbArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getContainerVpcAlb:getContainerVpcAlb
arguments:
# arguments dictionary
The following arguments are supported:
- Alb
Id string - The ID of the ALB.
- Id string
- (String) The ALB ID.
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
- Alb
Id string - The ID of the ALB.
- Id string
- (String) The ALB ID.
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
- alb
Id String - The ID of the ALB.
- id String
- (String) The ALB ID.
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
- alb
Id string - The ID of the ALB.
- id string
- (String) The ALB ID.
- resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
- alb_
id str - The ID of the ALB.
- id str
- (String) The ALB ID.
- resource_
group_ strid - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
- alb
Id String - The ID of the ALB.
- id String
- (String) The ALB ID.
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source.
getContainerVpcAlb Result
The following output properties are available:
- Alb
Id string - Alb
Type string - (String) The ALB type.
- Cluster string
- (String) The name of the cluster.
- Disable
Deployment bool - (String) Disable the ALB deployment details.
- Enable bool
- (String) Enable an ALB for the cluster.
- Id string
- (String) The ALB ID.
- Load
Balancer stringHostname - (String) The name of the load balancer.
- Name string
- (String) The name of the ALB.
- Resize bool
- (String) Resize of the ALB.
- State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- Zone string
- (String) The name of the zone.
- Resource
Group stringId
- Alb
Id string - Alb
Type string - (String) The ALB type.
- Cluster string
- (String) The name of the cluster.
- Disable
Deployment bool - (String) Disable the ALB deployment details.
- Enable bool
- (String) Enable an ALB for the cluster.
- Id string
- (String) The ALB ID.
- Load
Balancer stringHostname - (String) The name of the load balancer.
- Name string
- (String) The name of the ALB.
- Resize bool
- (String) Resize of the ALB.
- State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- Zone string
- (String) The name of the zone.
- Resource
Group stringId
- alb
Id String - alb
Type String - (String) The ALB type.
- cluster String
- (String) The name of the cluster.
- disable
Deployment Boolean - (String) Disable the ALB deployment details.
- enable Boolean
- (String) Enable an ALB for the cluster.
- id String
- (String) The ALB ID.
- load
Balancer StringHostname - (String) The name of the load balancer.
- name String
- (String) The name of the ALB.
- resize Boolean
- (String) Resize of the ALB.
- state String
- (String) ALB state.
- status String
- (String) The status of ALB.
- zone String
- (String) The name of the zone.
- resource
Group StringId
- alb
Id string - alb
Type string - (String) The ALB type.
- cluster string
- (String) The name of the cluster.
- disable
Deployment boolean - (String) Disable the ALB deployment details.
- enable boolean
- (String) Enable an ALB for the cluster.
- id string
- (String) The ALB ID.
- load
Balancer stringHostname - (String) The name of the load balancer.
- name string
- (String) The name of the ALB.
- resize boolean
- (String) Resize of the ALB.
- state string
- (String) ALB state.
- status string
- (String) The status of ALB.
- zone string
- (String) The name of the zone.
- resource
Group stringId
- alb_
id str - alb_
type str - (String) The ALB type.
- cluster str
- (String) The name of the cluster.
- disable_
deployment bool - (String) Disable the ALB deployment details.
- enable bool
- (String) Enable an ALB for the cluster.
- id str
- (String) The ALB ID.
- load_
balancer_ strhostname - (String) The name of the load balancer.
- name str
- (String) The name of the ALB.
- resize bool
- (String) Resize of the ALB.
- state str
- (String) ALB state.
- status str
- (String) The status of ALB.
- zone str
- (String) The name of the zone.
- resource_
group_ strid
- alb
Id String - alb
Type String - (String) The ALB type.
- cluster String
- (String) The name of the cluster.
- disable
Deployment Boolean - (String) Disable the ALB deployment details.
- enable Boolean
- (String) Enable an ALB for the cluster.
- id String
- (String) The ALB ID.
- load
Balancer StringHostname - (String) The name of the load balancer.
- name String
- (String) The name of the ALB.
- resize Boolean
- (String) Resize of the ALB.
- state String
- (String) ALB state.
- status String
- (String) The status of ALB.
- zone String
- (String) The name of the zone.
- resource
Group StringId
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.