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

ibm.getContainerIngressSecretOpaque

Explore with Pulumi AI

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

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

    Example Usage

    The following example retrieves information about the managed opaque 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.getContainerIngressSecretOpaque({
        cluster: "mycluster",
        secretName: "mysecret",
        secretNamespace: "mynamespace",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    secret = ibm.get_container_ingress_secret_opaque(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.LookupContainerIngressSecretOpaque(ctx, &ibm.LookupContainerIngressSecretOpaqueArgs{
    			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.GetContainerIngressSecretOpaque.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.GetContainerIngressSecretOpaqueArgs;
    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.getContainerIngressSecretOpaque(GetContainerIngressSecretOpaqueArgs.builder()
                .cluster("mycluster")
                .secretName("mysecret")
                .secretNamespace("mynamespace")
                .build());
    
        }
    }
    
    variables:
      secret:
        fn::invoke:
          function: ibm:getContainerIngressSecretOpaque
          arguments:
            cluster: mycluster
            secretName: mysecret
            secretNamespace: mynamespace
    

    Using getContainerIngressSecretOpaque

    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 getContainerIngressSecretOpaque(args: GetContainerIngressSecretOpaqueArgs, opts?: InvokeOptions): Promise<GetContainerIngressSecretOpaqueResult>
    function getContainerIngressSecretOpaqueOutput(args: GetContainerIngressSecretOpaqueOutputArgs, opts?: InvokeOptions): Output<GetContainerIngressSecretOpaqueResult>
    def get_container_ingress_secret_opaque(cluster: Optional[str] = None,
                                            id: Optional[str] = None,
                                            secret_name: Optional[str] = None,
                                            secret_namespace: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetContainerIngressSecretOpaqueResult
    def get_container_ingress_secret_opaque_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[GetContainerIngressSecretOpaqueResult]
    func LookupContainerIngressSecretOpaque(ctx *Context, args *LookupContainerIngressSecretOpaqueArgs, opts ...InvokeOption) (*LookupContainerIngressSecretOpaqueResult, error)
    func LookupContainerIngressSecretOpaqueOutput(ctx *Context, args *LookupContainerIngressSecretOpaqueOutputArgs, opts ...InvokeOption) LookupContainerIngressSecretOpaqueResultOutput

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

    public static class GetContainerIngressSecretOpaque 
    {
        public static Task<GetContainerIngressSecretOpaqueResult> InvokeAsync(GetContainerIngressSecretOpaqueArgs args, InvokeOptions? opts = null)
        public static Output<GetContainerIngressSecretOpaqueResult> Invoke(GetContainerIngressSecretOpaqueInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContainerIngressSecretOpaqueResult> getContainerIngressSecretOpaque(GetContainerIngressSecretOpaqueArgs args, InvokeOptions options)
    public static Output<GetContainerIngressSecretOpaqueResult> getContainerIngressSecretOpaque(GetContainerIngressSecretOpaqueArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getContainerIngressSecretOpaque:getContainerIngressSecretOpaque
      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

    getContainerIngressSecretOpaque Result

    The following output properties are available:

    Cluster string
    Fields List<GetContainerIngressSecretOpaqueField>
    (String) List of fields of the opaque secret. Nested scheme for fields:
    Id string
    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 (opaque).
    UserManaged bool
    (Bool) Indicates whether the secret was created by a user.
    Cluster string
    Fields []GetContainerIngressSecretOpaqueField
    (String) List of fields of the opaque secret. Nested scheme for fields:
    Id string
    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 (opaque).
    UserManaged bool
    (Bool) Indicates whether the secret was created by a user.
    cluster String
    fields List<GetContainerIngressSecretOpaqueField>
    (String) List of fields of the opaque secret. Nested scheme for fields:
    id String
    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 (opaque).
    userManaged Boolean
    (Bool) Indicates whether the secret was created by a user.
    cluster string
    fields GetContainerIngressSecretOpaqueField[]
    (String) List of fields of the opaque secret. Nested scheme for fields:
    id string
    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 (opaque).
    userManaged boolean
    (Bool) Indicates whether the secret was created by a user.
    cluster str
    fields Sequence[GetContainerIngressSecretOpaqueField]
    (String) List of fields of the opaque secret. Nested scheme for fields:
    id str
    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 (opaque).
    user_managed bool
    (Bool) Indicates whether the secret was created by a user.
    cluster String
    fields List<Property Map>
    (String) List of fields of the opaque secret. Nested scheme for fields:
    id String
    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 (opaque).
    userManaged Boolean
    (Bool) Indicates whether the secret was created by a user.

    Supporting Types

    GetContainerIngressSecretOpaqueField

    Crn string
    (String) Secrets manager secret crn
    ExpiresOn string
    (String) Expiration date of the secret
    LastUpdatedTimestamp string
    (String) The most recent time the kubernetes secret was updated
    Name string
    (String) Field name
    Crn string
    (String) Secrets manager secret crn
    ExpiresOn string
    (String) Expiration date of the secret
    LastUpdatedTimestamp string
    (String) The most recent time the kubernetes secret was updated
    Name string
    (String) Field name
    crn String
    (String) Secrets manager secret crn
    expiresOn String
    (String) Expiration date of the secret
    lastUpdatedTimestamp String
    (String) The most recent time the kubernetes secret was updated
    name String
    (String) Field name
    crn string
    (String) Secrets manager secret crn
    expiresOn string
    (String) Expiration date of the secret
    lastUpdatedTimestamp string
    (String) The most recent time the kubernetes secret was updated
    name string
    (String) Field name
    crn str
    (String) Secrets manager secret crn
    expires_on str
    (String) Expiration date of the secret
    last_updated_timestamp str
    (String) The most recent time the kubernetes secret was updated
    name str
    (String) Field name
    crn String
    (String) Secrets manager secret crn
    expiresOn String
    (String) Expiration date of the secret
    lastUpdatedTimestamp String
    (String) The most recent time the kubernetes secret was updated
    name String
    (String) Field name

    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