ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getContainerAlbCert
Explore with Pulumi AI
Retrieve information about all the Kubernetes cluster ALB certificate on IBM Cloud as a read-only data source.
Example Usage
The following example retrieves information of an ALB certificate.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cert = ibm.getContainerAlbCert({
clusterId: "myCluster",
secretName: "test-sec",
});
import pulumi
import pulumi_ibm as ibm
cert = ibm.get_container_alb_cert(cluster_id="myCluster",
secret_name="test-sec")
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.LookupContainerAlbCert(ctx, &ibm.LookupContainerAlbCertArgs{
ClusterId: "myCluster",
SecretName: "test-sec",
}, 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 cert = Ibm.GetContainerAlbCert.Invoke(new()
{
ClusterId = "myCluster",
SecretName = "test-sec",
});
});
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.GetContainerAlbCertArgs;
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 cert = IbmFunctions.getContainerAlbCert(GetContainerAlbCertArgs.builder()
.clusterId("myCluster")
.secretName("test-sec")
.build());
}
}
variables:
cert:
fn::invoke:
function: ibm:getContainerAlbCert
arguments:
clusterId: myCluster
secretName: test-sec
Using getContainerAlbCert
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 getContainerAlbCert(args: GetContainerAlbCertArgs, opts?: InvokeOptions): Promise<GetContainerAlbCertResult>
function getContainerAlbCertOutput(args: GetContainerAlbCertOutputArgs, opts?: InvokeOptions): Output<GetContainerAlbCertResult>
def get_container_alb_cert(cluster_id: Optional[str] = None,
id: Optional[str] = None,
namespace: Optional[str] = None,
secret_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerAlbCertResult
def get_container_alb_cert_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
secret_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerAlbCertResult]
func LookupContainerAlbCert(ctx *Context, args *LookupContainerAlbCertArgs, opts ...InvokeOption) (*LookupContainerAlbCertResult, error)
func LookupContainerAlbCertOutput(ctx *Context, args *LookupContainerAlbCertOutputArgs, opts ...InvokeOption) LookupContainerAlbCertResultOutput
> Note: This function is named LookupContainerAlbCert
in the Go SDK.
public static class GetContainerAlbCert
{
public static Task<GetContainerAlbCertResult> InvokeAsync(GetContainerAlbCertArgs args, InvokeOptions? opts = null)
public static Output<GetContainerAlbCertResult> Invoke(GetContainerAlbCertInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerAlbCertResult> getContainerAlbCert(GetContainerAlbCertArgs args, InvokeOptions options)
public static Output<GetContainerAlbCertResult> getContainerAlbCert(GetContainerAlbCertArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getContainerAlbCert:getContainerAlbCert
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The cluster ID.
- Secret
Name string - The name of the ALB certificate secret.
- Id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - Namespace string
- The namespace in which the secret has to be created.Default
ibm-cert-store
- Cluster
Id string - The cluster ID.
- Secret
Name string - The name of the ALB certificate secret.
- Id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - Namespace string
- The namespace in which the secret has to be created.Default
ibm-cert-store
- cluster
Id String - The cluster ID.
- secret
Name String - The name of the ALB certificate secret.
- id String
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - namespace String
- The namespace in which the secret has to be created.Default
ibm-cert-store
- cluster
Id string - The cluster ID.
- secret
Name string - The name of the ALB certificate secret.
- id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - namespace string
- The namespace in which the secret has to be created.Default
ibm-cert-store
- cluster_
id str - The cluster ID.
- secret_
name str - The name of the ALB certificate secret.
- id str
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - namespace str
- The namespace in which the secret has to be created.Default
ibm-cert-store
- cluster
Id String - The cluster ID.
- secret
Name String - The name of the ALB certificate secret.
- id String
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - namespace String
- The namespace in which the secret has to be created.Default
ibm-cert-store
getContainerAlbCert Result
The following output properties are available:
- Cert
Crn string - (String) The certificate CRN.
- Cloud
Cert stringInstance Id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- Cluster
Crn string - (String) The cluster CRN.
- Cluster
Id string - Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - (String) The expiry date of the certificate.
- Id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - Issuer
Name string - (String) The issuer name of the certificate.
- Persistence bool
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Secret
Name string - Status string
- (String) The Status of the secret.
- Namespace string
- Cert
Crn string - (String) The certificate CRN.
- Cloud
Cert stringInstance Id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- Cluster
Crn string - (String) The cluster CRN.
- Cluster
Id string - Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - (String) The expiry date of the certificate.
- Id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - Issuer
Name string - (String) The issuer name of the certificate.
- Persistence bool
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Secret
Name string - Status string
- (String) The Status of the secret.
- Namespace string
- cert
Crn String - (String) The certificate CRN.
- cloud
Cert StringInstance Id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- cluster
Crn String - (String) The cluster CRN.
- cluster
Id String - domain
Name String - (String) The domain name of the certificate.
- expires
On String - (String) The expiry date of the certificate.
- id String
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - issuer
Name String - (String) The issuer name of the certificate.
- persistence Boolean
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- secret
Name String - status String
- (String) The Status of the secret.
- namespace String
- cert
Crn string - (String) The certificate CRN.
- cloud
Cert stringInstance Id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- cluster
Crn string - (String) The cluster CRN.
- cluster
Id string - domain
Name string - (String) The domain name of the certificate.
- expires
On string - (String) The expiry date of the certificate.
- id string
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - issuer
Name string - (String) The issuer name of the certificate.
- persistence boolean
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- secret
Name string - status string
- (String) The Status of the secret.
- namespace string
- cert_
crn str - (String) The certificate CRN.
- cloud_
cert_ strinstance_ id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- cluster_
crn str - (String) The cluster CRN.
- cluster_
id str - domain_
name str - (String) The domain name of the certificate.
- expires_
on str - (String) The expiry date of the certificate.
- id str
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - issuer_
name str - (String) The issuer name of the certificate.
- persistence bool
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- secret_
name str - status str
- (String) The Status of the secret.
- namespace str
- cert
Crn String - (String) The certificate CRN.
- cloud
Cert StringInstance Id - (String) The Cloud certificate instance ID from which certificate is downloaded.
- cluster
Crn String - (String) The cluster CRN.
- cluster
Id String - domain
Name String - (String) The domain name of the certificate.
- expires
On String - (String) The expiry date of the certificate.
- id String
- (String) The ALB cert ID. The ID is composed of
<cluster_name_id>/<secret_name>
. - issuer
Name String - (String) The issuer name of the certificate.
- persistence Boolean
- (Bool) Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- secret
Name String - status String
- (String) The Status of the secret.
- namespace String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.