1. Packages
  2. Rancher2
  3. API Docs
  4. getSecretV2
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi

rancher2.getSecretV2

Explore with Pulumi AI

rancher2 logo
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi

    Use this data source to retrieve information about a Rancher2 secret v2. Secret v2 resource is available at Rancher v2.5.x and above.

    Using getSecretV2

    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 getSecretV2(args: GetSecretV2Args, opts?: InvokeOptions): Promise<GetSecretV2Result>
    function getSecretV2Output(args: GetSecretV2OutputArgs, opts?: InvokeOptions): Output<GetSecretV2Result>
    def get_secret_v2(cluster_id: Optional[str] = None,
                      name: Optional[str] = None,
                      namespace: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetSecretV2Result
    def get_secret_v2_output(cluster_id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      namespace: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetSecretV2Result]
    func LookupSecretV2(ctx *Context, args *LookupSecretV2Args, opts ...InvokeOption) (*LookupSecretV2Result, error)
    func LookupSecretV2Output(ctx *Context, args *LookupSecretV2OutputArgs, opts ...InvokeOption) LookupSecretV2ResultOutput

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

    public static class GetSecretV2 
    {
        public static Task<GetSecretV2Result> InvokeAsync(GetSecretV2Args args, InvokeOptions? opts = null)
        public static Output<GetSecretV2Result> Invoke(GetSecretV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecretV2Result> getSecretV2(GetSecretV2Args args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rancher2:index/getSecretV2:getSecretV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The cluster id of the secret V2 (string)
    Name string
    The name of the secret v2 (string)
    Namespace string
    The namespaces of the secret v2. Default: default (string)
    ClusterId string
    The cluster id of the secret V2 (string)
    Name string
    The name of the secret v2 (string)
    Namespace string
    The namespaces of the secret v2. Default: default (string)
    clusterId String
    The cluster id of the secret V2 (string)
    name String
    The name of the secret v2 (string)
    namespace String
    The namespaces of the secret v2. Default: default (string)
    clusterId string
    The cluster id of the secret V2 (string)
    name string
    The name of the secret v2 (string)
    namespace string
    The namespaces of the secret v2. Default: default (string)
    cluster_id str
    The cluster id of the secret V2 (string)
    name str
    The name of the secret v2 (string)
    namespace str
    The namespaces of the secret v2. Default: default (string)
    clusterId String
    The cluster id of the secret V2 (string)
    name String
    The name of the secret v2 (string)
    namespace String
    The namespaces of the secret v2. Default: default (string)

    getSecretV2 Result

    The following output properties are available:

    Annotations Dictionary<string, object>
    (Computed) Annotations for the secret v2 (map)
    ClusterId string
    Data Dictionary<string, object>
    (Computed/Sensitive) The data of the secret v2 (map)
    Id string
    The provider-assigned unique ID for this managed resource.
    Immutable bool
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    Labels Dictionary<string, object>
    (Computed) Labels for the secret v2 (map)
    Name string
    ResourceVersion string
    (Computed) The k8s resource version (string)
    Type string
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    Namespace string
    Annotations map[string]interface{}
    (Computed) Annotations for the secret v2 (map)
    ClusterId string
    Data map[string]interface{}
    (Computed/Sensitive) The data of the secret v2 (map)
    Id string
    The provider-assigned unique ID for this managed resource.
    Immutable bool
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    Labels map[string]interface{}
    (Computed) Labels for the secret v2 (map)
    Name string
    ResourceVersion string
    (Computed) The k8s resource version (string)
    Type string
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    Namespace string
    annotations Map<String,Object>
    (Computed) Annotations for the secret v2 (map)
    clusterId String
    data Map<String,Object>
    (Computed/Sensitive) The data of the secret v2 (map)
    id String
    The provider-assigned unique ID for this managed resource.
    immutable Boolean
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    labels Map<String,Object>
    (Computed) Labels for the secret v2 (map)
    name String
    resourceVersion String
    (Computed) The k8s resource version (string)
    type String
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    namespace String
    annotations {[key: string]: any}
    (Computed) Annotations for the secret v2 (map)
    clusterId string
    data {[key: string]: any}
    (Computed/Sensitive) The data of the secret v2 (map)
    id string
    The provider-assigned unique ID for this managed resource.
    immutable boolean
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    labels {[key: string]: any}
    (Computed) Labels for the secret v2 (map)
    name string
    resourceVersion string
    (Computed) The k8s resource version (string)
    type string
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    namespace string
    annotations Mapping[str, Any]
    (Computed) Annotations for the secret v2 (map)
    cluster_id str
    data Mapping[str, Any]
    (Computed/Sensitive) The data of the secret v2 (map)
    id str
    The provider-assigned unique ID for this managed resource.
    immutable bool
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    labels Mapping[str, Any]
    (Computed) Labels for the secret v2 (map)
    name str
    resource_version str
    (Computed) The k8s resource version (string)
    type str
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    namespace str
    annotations Map<Any>
    (Computed) Annotations for the secret v2 (map)
    clusterId String
    data Map<Any>
    (Computed/Sensitive) The data of the secret v2 (map)
    id String
    The provider-assigned unique ID for this managed resource.
    immutable Boolean
    (Computed) If set to true, any secret update will remove and recreate the secret. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)
    labels Map<Any>
    (Computed) Labels for the secret v2 (map)
    name String
    resourceVersion String
    (Computed) The k8s resource version (string)
    type String
    (Computed) The type of the k8s secret, used to facilitate programmatic handling of secret data, More info about k8s secret types and expected format (string)
    namespace String

    Package Details

    Repository
    Rancher2 pulumi/pulumi-rancher2
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rancher2 Terraform Provider.
    rancher2 logo
    Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi