getSecretV2

Use this data source to retrieve information about a Rancher2 secret v2.

Using getSecretV2

function getSecretV2(args: GetSecretV2Args, opts?: InvokeOptions): Promise<GetSecretV2Result>
def get_secret_v2(cluster_id: Optional[str] = None,
                  name: Optional[str] = None,
                  namespace: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetSecretV2Result
func LookupSecretV2(ctx *Context, args *LookupSecretV2Args, opts ...InvokeOption) (*LookupSecretV2Result, error)

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

public static class GetSecretV2 {
    public static Task<GetSecretV2Result> InvokeAsync(GetSecretV2Args args, InvokeOptions? opts = null)
}

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)
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)

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 {[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

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.