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

ibm.getContainerAlbCert

Explore with Pulumi AI

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

    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:

    ClusterId string
    The cluster ID.
    SecretName 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
    ClusterId string
    The cluster ID.
    SecretName 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
    clusterId String
    The cluster ID.
    secretName 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
    clusterId string
    The cluster ID.
    secretName 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
    clusterId String
    The cluster ID.
    secretName 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:

    CertCrn string
    (String) The certificate CRN.
    CloudCertInstanceId string
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    ClusterCrn string
    (String) The cluster CRN.

    Deprecated: Deprecated

    ClusterId string
    DomainName string
    (String) The domain name of the certificate.
    ExpiresOn 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>.
    IssuerName string
    (String) The issuer name of the certificate.

    Deprecated: Deprecated

    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.
    SecretName string
    Status string
    (String) The Status of the secret.
    Namespace string
    CertCrn string
    (String) The certificate CRN.
    CloudCertInstanceId string
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    ClusterCrn string
    (String) The cluster CRN.

    Deprecated: Deprecated

    ClusterId string
    DomainName string
    (String) The domain name of the certificate.
    ExpiresOn 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>.
    IssuerName string
    (String) The issuer name of the certificate.

    Deprecated: Deprecated

    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.
    SecretName string
    Status string
    (String) The Status of the secret.
    Namespace string
    certCrn String
    (String) The certificate CRN.
    cloudCertInstanceId String
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    clusterCrn String
    (String) The cluster CRN.

    Deprecated: Deprecated

    clusterId String
    domainName String
    (String) The domain name of the certificate.
    expiresOn 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>.
    issuerName String
    (String) The issuer name of the certificate.

    Deprecated: Deprecated

    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.
    secretName String
    status String
    (String) The Status of the secret.
    namespace String
    certCrn string
    (String) The certificate CRN.
    cloudCertInstanceId string
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    clusterCrn string
    (String) The cluster CRN.

    Deprecated: Deprecated

    clusterId string
    domainName string
    (String) The domain name of the certificate.
    expiresOn 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>.
    issuerName string
    (String) The issuer name of the certificate.

    Deprecated: Deprecated

    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.
    secretName string
    status string
    (String) The Status of the secret.
    namespace string
    cert_crn str
    (String) The certificate CRN.
    cloud_cert_instance_id str
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    cluster_crn str
    (String) The cluster CRN.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    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
    certCrn String
    (String) The certificate CRN.
    cloudCertInstanceId String
    (String) The Cloud certificate instance ID from which certificate is downloaded.
    clusterCrn String
    (String) The cluster CRN.

    Deprecated: Deprecated

    clusterId String
    domainName String
    (String) The domain name of the certificate.
    expiresOn 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>.
    issuerName String
    (String) The issuer name of the certificate.

    Deprecated: Deprecated

    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.
    secretName 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud