Rancher2

v3.8.0 published on Tuesday, May 31, 2022 by Pulumi

getConfigMapV2

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

Using getConfigMapV2

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 getConfigMapV2(args: GetConfigMapV2Args, opts?: InvokeOptions): Promise<GetConfigMapV2Result>
function getConfigMapV2Output(args: GetConfigMapV2OutputArgs, opts?: InvokeOptions): Output<GetConfigMapV2Result>
def get_config_map_v2(cluster_id: Optional[str] = None,
                      name: Optional[str] = None,
                      namespace: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetConfigMapV2Result
def get_config_map_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[GetConfigMapV2Result]
func LookupConfigMapV2(ctx *Context, args *LookupConfigMapV2Args, opts ...InvokeOption) (*LookupConfigMapV2Result, error)
func LookupConfigMapV2Output(ctx *Context, args *LookupConfigMapV2OutputArgs, opts ...InvokeOption) LookupConfigMapV2ResultOutput

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

public static class GetConfigMapV2 
{
    public static Task<GetConfigMapV2Result> InvokeAsync(GetConfigMapV2Args args, InvokeOptions? opts = null)
    public static Output<GetConfigMapV2Result> Invoke(GetConfigMapV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigMapV2Result> getConfigMapV2(GetConfigMapV2Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: rancher2:index/getConfigMapV2:getConfigMapV2
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ClusterId string

The cluster id of the configMap V2 (string)

Name string

The name of the configMap v2 (string)

Namespace string

The namespaces of the configMap v2. Default: default (string)

ClusterId string

The cluster id of the configMap V2 (string)

Name string

The name of the configMap v2 (string)

Namespace string

The namespaces of the configMap v2. Default: default (string)

clusterId String

The cluster id of the configMap V2 (string)

name String

The name of the configMap v2 (string)

namespace String

The namespaces of the configMap v2. Default: default (string)

clusterId string

The cluster id of the configMap V2 (string)

name string

The name of the configMap v2 (string)

namespace string

The namespaces of the configMap v2. Default: default (string)

cluster_id str

The cluster id of the configMap V2 (string)

name str

The name of the configMap v2 (string)

namespace str

The namespaces of the configMap v2. Default: default (string)

clusterId String

The cluster id of the configMap V2 (string)

name String

The name of the configMap v2 (string)

namespace String

The namespaces of the configMap v2. Default: default (string)

getConfigMapV2 Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for the configMap v2 (map)

ClusterId string
Data Dictionary<string, object>

(Computed) The data of the configMap v2 (map)

Id string

The provider-assigned unique ID for this managed resource.

Immutable bool

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

Labels Dictionary<string, object>

(Computed) Labels for the configMap v2 (map)

Name string
ResourceVersion string

(Computed) The k8s resource version (string)

Namespace string
Annotations map[string]interface{}

(Computed) Annotations for the configMap v2 (map)

ClusterId string
Data map[string]interface{}

(Computed) The data of the configMap v2 (map)

Id string

The provider-assigned unique ID for this managed resource.

Immutable bool

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

Labels map[string]interface{}

(Computed) Labels for the configMap v2 (map)

Name string
ResourceVersion string

(Computed) The k8s resource version (string)

Namespace string
annotations Map<String,Object>

(Computed) Annotations for the configMap v2 (map)

clusterId String
data Map<String,Object>

(Computed) The data of the configMap v2 (map)

id String

The provider-assigned unique ID for this managed resource.

immutable Boolean

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

labels Map<String,Object>

(Computed) Labels for the configMap v2 (map)

name String
resourceVersion String

(Computed) The k8s resource version (string)

namespace String
annotations {[key: string]: any}

(Computed) Annotations for the configMap v2 (map)

clusterId string
data {[key: string]: any}

(Computed) The data of the configMap v2 (map)

id string

The provider-assigned unique ID for this managed resource.

immutable boolean

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

labels {[key: string]: any}

(Computed) Labels for the configMap v2 (map)

name string
resourceVersion string

(Computed) The k8s resource version (string)

namespace string
annotations Mapping[str, Any]

(Computed) Annotations for the configMap v2 (map)

cluster_id str
data Mapping[str, Any]

(Computed) The data of the configMap v2 (map)

id str

The provider-assigned unique ID for this managed resource.

immutable bool

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

labels Mapping[str, Any]

(Computed) Labels for the configMap v2 (map)

name str
resource_version str

(Computed) The k8s resource version (string)

namespace str
annotations Map<Any>

(Computed) Annotations for the configMap v2 (map)

clusterId String
data Map<Any>

(Computed) The data of the configMap v2 (map)

id String

The provider-assigned unique ID for this managed resource.

immutable Boolean

(Computed) If set to true, any configMap update will remove and recreate the configMap. This is a beta field enabled by k8s ImmutableEphemeralVolumes feature gate (bool)

labels Map<Any>

(Computed) Labels for the configMap v2 (map)

name String
resourceVersion String

(Computed) The k8s resource version (string)

namespace String

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes

This Pulumi package is based on the rancher2 Terraform Provider.