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

ibm.getContainerIngressSecretTls

Explore with Pulumi AI

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

    Get details about a managed TLS certificate that is stored as a Kubernetes TLS secret.

    Example Usage

    The following example retrieves information about the registered Secrets Manager TLS secret that is named mysecret in the namespace mynamespace of a cluster that is named mycluster.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const secret = ibm.getContainerIngressSecretTls({
        cluster: "mycluster",
        secretName: "mysecret",
        secretNamespace: "mynamespace",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    secret = ibm.get_container_ingress_secret_tls(cluster="mycluster",
        secret_name="mysecret",
        secret_namespace="mynamespace")
    
    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.LookupContainerIngressSecretTls(ctx, &ibm.LookupContainerIngressSecretTlsArgs{
    			Cluster:         "mycluster",
    			SecretName:      "mysecret",
    			SecretNamespace: "mynamespace",
    		}, 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 secret = Ibm.GetContainerIngressSecretTls.Invoke(new()
        {
            Cluster = "mycluster",
            SecretName = "mysecret",
            SecretNamespace = "mynamespace",
        });
    
    });
    
    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.GetContainerIngressSecretTlsArgs;
    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 secret = IbmFunctions.getContainerIngressSecretTls(GetContainerIngressSecretTlsArgs.builder()
                .cluster("mycluster")
                .secretName("mysecret")
                .secretNamespace("mynamespace")
                .build());
    
        }
    }
    
    variables:
      secret:
        fn::invoke:
          function: ibm:getContainerIngressSecretTls
          arguments:
            cluster: mycluster
            secretName: mysecret
            secretNamespace: mynamespace
    

    Using getContainerIngressSecretTls

    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 getContainerIngressSecretTls(args: GetContainerIngressSecretTlsArgs, opts?: InvokeOptions): Promise<GetContainerIngressSecretTlsResult>
    function getContainerIngressSecretTlsOutput(args: GetContainerIngressSecretTlsOutputArgs, opts?: InvokeOptions): Output<GetContainerIngressSecretTlsResult>
    def get_container_ingress_secret_tls(cluster: Optional[str] = None,
                                         id: Optional[str] = None,
                                         secret_name: Optional[str] = None,
                                         secret_namespace: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetContainerIngressSecretTlsResult
    def get_container_ingress_secret_tls_output(cluster: Optional[pulumi.Input[str]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         secret_name: Optional[pulumi.Input[str]] = None,
                                         secret_namespace: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetContainerIngressSecretTlsResult]
    func LookupContainerIngressSecretTls(ctx *Context, args *LookupContainerIngressSecretTlsArgs, opts ...InvokeOption) (*LookupContainerIngressSecretTlsResult, error)
    func LookupContainerIngressSecretTlsOutput(ctx *Context, args *LookupContainerIngressSecretTlsOutputArgs, opts ...InvokeOption) LookupContainerIngressSecretTlsResultOutput

    > Note: This function is named LookupContainerIngressSecretTls in the Go SDK.

    public static class GetContainerIngressSecretTls 
    {
        public static Task<GetContainerIngressSecretTlsResult> InvokeAsync(GetContainerIngressSecretTlsArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerIngressSecretTlsResult> Invoke(GetContainerIngressSecretTlsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerIngressSecretTlsResult> getContainerIngressSecretTls(GetContainerIngressSecretTlsArgs args, InvokeOptions options)
    public static Output<GetContainerIngressSecretTlsResult> getContainerIngressSecretTls(GetContainerIngressSecretTlsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getContainerIngressSecretTls:getContainerIngressSecretTls
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Cluster string
    The cluster ID.
    SecretName string
    The name of the kubernetes secret.
    SecretNamespace string
    The namespace of the kubernetes secret.
    Id string
    Cluster string
    The cluster ID.
    SecretName string
    The name of the kubernetes secret.
    SecretNamespace string
    The namespace of the kubernetes secret.
    Id string
    cluster String
    The cluster ID.
    secretName String
    The name of the kubernetes secret.
    secretNamespace String
    The namespace of the kubernetes secret.
    id String
    cluster string
    The cluster ID.
    secretName string
    The name of the kubernetes secret.
    secretNamespace string
    The namespace of the kubernetes secret.
    id string
    cluster str
    The cluster ID.
    secret_name str
    The name of the kubernetes secret.
    secret_namespace str
    The namespace of the kubernetes secret.
    id str
    cluster String
    The cluster ID.
    secretName String
    The name of the kubernetes secret.
    secretNamespace String
    The namespace of the kubernetes secret.
    id String

    getContainerIngressSecretTls Result

    The following output properties are available:

    CertCrn string
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    Cluster string
    DomainName string
    (String) Domain name.
    ExpiresOn string
    (String) Certificate expires on date.
    Id string
    LastUpdatedTimestamp string
    (String) Timestamp secret was last updated in cluster.
    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
    SecretNamespace string
    Status string
    (String) The Status of the secret.
    Type string
    (String) The type of Kubernetes secret (TLS).
    UserManaged bool
    (Bool) Indicates whether the secret was created by a user.
    CertCrn string
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    Cluster string
    DomainName string
    (String) Domain name.
    ExpiresOn string
    (String) Certificate expires on date.
    Id string
    LastUpdatedTimestamp string
    (String) Timestamp secret was last updated in cluster.
    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
    SecretNamespace string
    Status string
    (String) The Status of the secret.
    Type string
    (String) The type of Kubernetes secret (TLS).
    UserManaged bool
    (Bool) Indicates whether the secret was created by a user.
    certCrn String
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    cluster String
    domainName String
    (String) Domain name.
    expiresOn String
    (String) Certificate expires on date.
    id String
    lastUpdatedTimestamp String
    (String) Timestamp secret was last updated in cluster.
    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
    secretNamespace String
    status String
    (String) The Status of the secret.
    type String
    (String) The type of Kubernetes secret (TLS).
    userManaged Boolean
    (Bool) Indicates whether the secret was created by a user.
    certCrn string
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    cluster string
    domainName string
    (String) Domain name.
    expiresOn string
    (String) Certificate expires on date.
    id string
    lastUpdatedTimestamp string
    (String) Timestamp secret was last updated in cluster.
    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
    secretNamespace string
    status string
    (String) The Status of the secret.
    type string
    (String) The type of Kubernetes secret (TLS).
    userManaged boolean
    (Bool) Indicates whether the secret was created by a user.
    cert_crn str
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    cluster str
    domain_name str
    (String) Domain name.
    expires_on str
    (String) Certificate expires on date.
    id str
    last_updated_timestamp str
    (String) Timestamp secret was last updated in cluster.
    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
    secret_namespace str
    status str
    (String) The Status of the secret.
    type str
    (String) The type of Kubernetes secret (TLS).
    user_managed bool
    (Bool) Indicates whether the secret was created by a user.
    certCrn String
    (String) The backing IBM Cloud Secrets Manager Secret CRN.
    cluster String
    domainName String
    (String) Domain name.
    expiresOn String
    (String) Certificate expires on date.
    id String
    lastUpdatedTimestamp String
    (String) Timestamp secret was last updated in cluster.
    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
    secretNamespace String
    status String
    (String) The Status of the secret.
    type String
    (String) The type of Kubernetes secret (TLS).
    userManaged Boolean
    (Bool) Indicates whether the secret was created by a user.

    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