ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getContainerIngressSecretOpaque
Explore with Pulumi AI
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.
- 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
getContainerIngressSecretOpaque Result
The following output properties are available:
- Cluster string
- Fields
List<Get
Container Ingress Secret Opaque Field> - (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.
- Secret
Name string - Secret
Namespace string - Status string
- (String) The status of the secret.
- Type string
- (String) The type of Kubernetes secret (opaque).
- User
Managed bool - (Bool) Indicates whether the secret was created by a user.
- Cluster string
- Fields
[]Get
Container Ingress Secret Opaque Field - (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.
- Secret
Name string - Secret
Namespace string - Status string
- (String) The status of the secret.
- Type string
- (String) The type of Kubernetes secret (opaque).
- User
Managed bool - (Bool) Indicates whether the secret was created by a user.
- cluster String
- fields
List<Get
Container Ingress Secret Opaque Field> - (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.
- secret
Name String - secret
Namespace String - status String
- (String) The status of the secret.
- type String
- (String) The type of Kubernetes secret (opaque).
- user
Managed Boolean - (Bool) Indicates whether the secret was created by a user.
- cluster string
- fields
Get
Container Ingress Secret Opaque Field[] - (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.
- secret
Name string - secret
Namespace string - status string
- (String) The status of the secret.
- type string
- (String) The type of Kubernetes secret (opaque).
- user
Managed boolean - (Bool) Indicates whether the secret was created by a user.
- cluster str
- fields
Sequence[Get
Container Ingress Secret Opaque Field] - (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.
- secret
Name String - secret
Namespace String - status String
- (String) The status of the secret.
- type String
- (String) The type of Kubernetes secret (opaque).
- user
Managed Boolean - (Bool) Indicates whether the secret was created by a user.
Supporting Types
GetContainerIngressSecretOpaqueField
- Crn string
- (String) Secrets manager secret crn
- Expires
On string - (String) Expiration date of the secret
- Last
Updated stringTimestamp - (String) The most recent time the kubernetes secret was updated
- Name string
- (String) Field name
- Crn string
- (String) Secrets manager secret crn
- Expires
On string - (String) Expiration date of the secret
- Last
Updated stringTimestamp - (String) The most recent time the kubernetes secret was updated
- Name string
- (String) Field name
- crn String
- (String) Secrets manager secret crn
- expires
On String - (String) Expiration date of the secret
- last
Updated StringTimestamp - (String) The most recent time the kubernetes secret was updated
- name String
- (String) Field name
- crn string
- (String) Secrets manager secret crn
- expires
On string - (String) Expiration date of the secret
- last
Updated stringTimestamp - (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_ strtimestamp - (String) The most recent time the kubernetes secret was updated
- name str
- (String) Field name
- crn String
- (String) Secrets manager secret crn
- expires
On String - (String) Expiration date of the secret
- last
Updated StringTimestamp - (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.