ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getContainerIngressSecretTls
Explore with Pulumi AI
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.
- Secret
Name string - The name of the kubernetes secret.
- Secret
Namespace string - The namespace of the kubernetes secret.
- Id string
- Cluster string
- The cluster ID.
- Secret
Name string - The name of the kubernetes secret.
- Secret
Namespace string - The namespace of the kubernetes secret.
- Id string
- cluster String
- The cluster ID.
- secret
Name String - The name of the kubernetes secret.
- secret
Namespace String - The namespace of the kubernetes secret.
- id String
- cluster string
- The cluster ID.
- secret
Name string - The name of the kubernetes secret.
- secret
Namespace 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.
- secret
Name String - The name of the kubernetes secret.
- secret
Namespace String - The namespace of the kubernetes secret.
- id String
getContainerIngressSecretTls Result
The following output properties are available:
- Cert
Crn string - (String) The backing IBM Cloud Secrets Manager Secret CRN.
- Cluster string
- Domain
Name string - (String) Domain name.
- Expires
On string - (String) Certificate expires on date.
- Id string
- Last
Updated stringTimestamp - (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 string - Secret
Namespace string - Status string
- (String) The Status of the secret.
- Type string
- (String) The type of Kubernetes secret (TLS).
- User
Managed bool - (Bool) Indicates whether the secret was created by a user.
- Cert
Crn string - (String) The backing IBM Cloud Secrets Manager Secret CRN.
- Cluster string
- Domain
Name string - (String) Domain name.
- Expires
On string - (String) Certificate expires on date.
- Id string
- Last
Updated stringTimestamp - (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 string - Secret
Namespace string - Status string
- (String) The Status of the secret.
- Type string
- (String) The type of Kubernetes secret (TLS).
- User
Managed bool - (Bool) Indicates whether the secret was created by a user.
- cert
Crn String - (String) The backing IBM Cloud Secrets Manager Secret CRN.
- cluster String
- domain
Name String - (String) Domain name.
- expires
On String - (String) Certificate expires on date.
- id String
- last
Updated StringTimestamp - (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.
- secret
Name String - secret
Namespace String - status String
- (String) The Status of the secret.
- type String
- (String) The type of Kubernetes secret (TLS).
- user
Managed Boolean - (Bool) Indicates whether the secret was created by a user.
- cert
Crn string - (String) The backing IBM Cloud Secrets Manager Secret CRN.
- cluster string
- domain
Name string - (String) Domain name.
- expires
On string - (String) Certificate expires on date.
- id string
- last
Updated stringTimestamp - (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.
- secret
Name string - secret
Namespace string - status string
- (String) The Status of the secret.
- type string
- (String) The type of Kubernetes secret (TLS).
- user
Managed 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_ strtimestamp - (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.
- cert
Crn String - (String) The backing IBM Cloud Secrets Manager Secret CRN.
- cluster String
- domain
Name String - (String) Domain name.
- expires
On String - (String) Certificate expires on date.
- id String
- last
Updated StringTimestamp - (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.
- secret
Name String - secret
Namespace String - status String
- (String) The Status of the secret.
- type String
- (String) The type of Kubernetes secret (TLS).
- user
Managed 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.