1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getCciConfigmapsV2
Viewing docs for opentelekomcloud 1.36.64
published on Thursday, Apr 23, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.64
published on Thursday, Apr 23, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for CCI ConfigMap you can get at documentation portal

    Use this data source to get the list of CCI v2 ConfigMaps under a namespace within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const namespace = config.requireObject<any>("namespace");
    const test = opentelekomcloud.getCciConfigmapsV2({
        namespace: namespace,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    namespace = config.require_object("namespace")
    test = opentelekomcloud.get_cci_configmaps_v2(namespace=namespace)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		namespace := cfg.RequireObject("namespace")
    		_, err := opentelekomcloud.GetCciConfigmapsV2(ctx, &opentelekomcloud.GetCciConfigmapsV2Args{
    			Namespace: namespace,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var @namespace = config.RequireObject<dynamic>("namespace");
        var test = Opentelekomcloud.GetCciConfigmapsV2.Invoke(new()
        {
            Namespace = @namespace,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCciConfigmapsV2Args;
    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 config = ctx.config();
            final var namespace = config.get("namespace");
            final var test = OpentelekomcloudFunctions.getCciConfigmapsV2(GetCciConfigmapsV2Args.builder()
                .namespace(namespace)
                .build());
    
        }
    }
    
    configuration:
      namespace:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getCciConfigmapsV2
          arguments:
            namespace: ${namespace}
    

    Query a Single ConfigMap by Name

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const namespace = config.requireObject<any>("namespace");
    const configmapName = config.requireObject<any>("configmapName");
    const test = opentelekomcloud.getCciConfigmapsV2({
        namespace: namespace,
        name: configmapName,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    namespace = config.require_object("namespace")
    configmap_name = config.require_object("configmapName")
    test = opentelekomcloud.get_cci_configmaps_v2(namespace=namespace,
        name=configmap_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		namespace := cfg.RequireObject("namespace")
    		configmapName := cfg.RequireObject("configmapName")
    		_, err := opentelekomcloud.GetCciConfigmapsV2(ctx, &opentelekomcloud.GetCciConfigmapsV2Args{
    			Namespace: namespace,
    			Name:      pulumi.StringRef(configmapName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var @namespace = config.RequireObject<dynamic>("namespace");
        var configmapName = config.RequireObject<dynamic>("configmapName");
        var test = Opentelekomcloud.GetCciConfigmapsV2.Invoke(new()
        {
            Namespace = @namespace,
            Name = configmapName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCciConfigmapsV2Args;
    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 config = ctx.config();
            final var namespace = config.get("namespace");
            final var configmapName = config.get("configmapName");
            final var test = OpentelekomcloudFunctions.getCciConfigmapsV2(GetCciConfigmapsV2Args.builder()
                .namespace(namespace)
                .name(configmapName)
                .build());
    
        }
    }
    
    configuration:
      namespace:
        type: dynamic
      configmapName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getCciConfigmapsV2
          arguments:
            namespace: ${namespace}
            name: ${configmapName}
    

    Using getCciConfigmapsV2

    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 getCciConfigmapsV2(args: GetCciConfigmapsV2Args, opts?: InvokeOptions): Promise<GetCciConfigmapsV2Result>
    function getCciConfigmapsV2Output(args: GetCciConfigmapsV2OutputArgs, opts?: InvokeOptions): Output<GetCciConfigmapsV2Result>
    def get_cci_configmaps_v2(id: Optional[str] = None,
                              name: Optional[str] = None,
                              namespace: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCciConfigmapsV2Result
    def get_cci_configmaps_v2_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              namespace: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCciConfigmapsV2Result]
    func GetCciConfigmapsV2(ctx *Context, args *GetCciConfigmapsV2Args, opts ...InvokeOption) (*GetCciConfigmapsV2Result, error)
    func GetCciConfigmapsV2Output(ctx *Context, args *GetCciConfigmapsV2OutputArgs, opts ...InvokeOption) GetCciConfigmapsV2ResultOutput

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

    public static class GetCciConfigmapsV2 
    {
        public static Task<GetCciConfigmapsV2Result> InvokeAsync(GetCciConfigmapsV2Args args, InvokeOptions? opts = null)
        public static Output<GetCciConfigmapsV2Result> Invoke(GetCciConfigmapsV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCciConfigmapsV2Result> getCciConfigmapsV2(GetCciConfigmapsV2Args args, InvokeOptions options)
    public static Output<GetCciConfigmapsV2Result> getCciConfigmapsV2(GetCciConfigmapsV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCciConfigmapsV2:getCciConfigmapsV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    Specifies the namespace to which the ConfigMaps belong.
    Id string
    The data source ID.
    Name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    Namespace string
    Specifies the namespace to which the ConfigMaps belong.
    Id string
    The data source ID.
    Name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace String
    Specifies the namespace to which the ConfigMaps belong.
    id String
    The data source ID.
    name String
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace string
    Specifies the namespace to which the ConfigMaps belong.
    id string
    The data source ID.
    name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace str
    Specifies the namespace to which the ConfigMaps belong.
    id str
    The data source ID.
    name str
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace String
    Specifies the namespace to which the ConfigMaps belong.
    id String
    The data source ID.
    name String
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.

    getCciConfigmapsV2 Result

    The following output properties are available:

    ConfigMaps List<GetCciConfigmapsV2ConfigMap>
    The list of ConfigMaps. The config_maps structure is documented below.
    Id string
    The data source ID.
    Namespace string
    The namespace to which the ConfigMap belongs.
    Region string
    The region in which the ConfigMaps are queried.
    Name string
    The name of the ConfigMap.
    ConfigMaps []GetCciConfigmapsV2ConfigMap
    The list of ConfigMaps. The config_maps structure is documented below.
    Id string
    The data source ID.
    Namespace string
    The namespace to which the ConfigMap belongs.
    Region string
    The region in which the ConfigMaps are queried.
    Name string
    The name of the ConfigMap.
    configMaps List<GetCciConfigmapsV2ConfigMap>
    The list of ConfigMaps. The config_maps structure is documented below.
    id String
    The data source ID.
    namespace String
    The namespace to which the ConfigMap belongs.
    region String
    The region in which the ConfigMaps are queried.
    name String
    The name of the ConfigMap.
    configMaps GetCciConfigmapsV2ConfigMap[]
    The list of ConfigMaps. The config_maps structure is documented below.
    id string
    The data source ID.
    namespace string
    The namespace to which the ConfigMap belongs.
    region string
    The region in which the ConfigMaps are queried.
    name string
    The name of the ConfigMap.
    config_maps Sequence[GetCciConfigmapsV2ConfigMap]
    The list of ConfigMaps. The config_maps structure is documented below.
    id str
    The data source ID.
    namespace str
    The namespace to which the ConfigMap belongs.
    region str
    The region in which the ConfigMaps are queried.
    name str
    The name of the ConfigMap.
    configMaps List<Property Map>
    The list of ConfigMaps. The config_maps structure is documented below.
    id String
    The data source ID.
    namespace String
    The namespace to which the ConfigMap belongs.
    region String
    The region in which the ConfigMaps are queried.
    name String
    The name of the ConfigMap.

    Supporting Types

    GetCciConfigmapsV2ConfigMap

    Annotations Dictionary<string, string>
    The annotations of the ConfigMap.
    ApiVersion string
    The API version of the ConfigMap.
    BinaryData Dictionary<string, string>
    The binary data of the ConfigMap. Values are base64-encoded strings.
    CreationTimestamp string
    The creation timestamp of the ConfigMap.
    Data Dictionary<string, string>
    The configuration data of the ConfigMap.
    Immutable bool
    Whether the ConfigMap is immutable.
    Kind string
    The kind of the ConfigMap.
    Labels Dictionary<string, string>
    The labels of the ConfigMap.
    Name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    Namespace string
    Specifies the namespace to which the ConfigMaps belong.
    ResourceVersion string
    The resource version of the ConfigMap.
    Uid string
    The UID of the ConfigMap.
    Annotations map[string]string
    The annotations of the ConfigMap.
    ApiVersion string
    The API version of the ConfigMap.
    BinaryData map[string]string
    The binary data of the ConfigMap. Values are base64-encoded strings.
    CreationTimestamp string
    The creation timestamp of the ConfigMap.
    Data map[string]string
    The configuration data of the ConfigMap.
    Immutable bool
    Whether the ConfigMap is immutable.
    Kind string
    The kind of the ConfigMap.
    Labels map[string]string
    The labels of the ConfigMap.
    Name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    Namespace string
    Specifies the namespace to which the ConfigMaps belong.
    ResourceVersion string
    The resource version of the ConfigMap.
    Uid string
    The UID of the ConfigMap.
    annotations Map<String,String>
    The annotations of the ConfigMap.
    apiVersion String
    The API version of the ConfigMap.
    binaryData Map<String,String>
    The binary data of the ConfigMap. Values are base64-encoded strings.
    creationTimestamp String
    The creation timestamp of the ConfigMap.
    data Map<String,String>
    The configuration data of the ConfigMap.
    immutable Boolean
    Whether the ConfigMap is immutable.
    kind String
    The kind of the ConfigMap.
    labels Map<String,String>
    The labels of the ConfigMap.
    name String
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace String
    Specifies the namespace to which the ConfigMaps belong.
    resourceVersion String
    The resource version of the ConfigMap.
    uid String
    The UID of the ConfigMap.
    annotations {[key: string]: string}
    The annotations of the ConfigMap.
    apiVersion string
    The API version of the ConfigMap.
    binaryData {[key: string]: string}
    The binary data of the ConfigMap. Values are base64-encoded strings.
    creationTimestamp string
    The creation timestamp of the ConfigMap.
    data {[key: string]: string}
    The configuration data of the ConfigMap.
    immutable boolean
    Whether the ConfigMap is immutable.
    kind string
    The kind of the ConfigMap.
    labels {[key: string]: string}
    The labels of the ConfigMap.
    name string
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace string
    Specifies the namespace to which the ConfigMaps belong.
    resourceVersion string
    The resource version of the ConfigMap.
    uid string
    The UID of the ConfigMap.
    annotations Mapping[str, str]
    The annotations of the ConfigMap.
    api_version str
    The API version of the ConfigMap.
    binary_data Mapping[str, str]
    The binary data of the ConfigMap. Values are base64-encoded strings.
    creation_timestamp str
    The creation timestamp of the ConfigMap.
    data Mapping[str, str]
    The configuration data of the ConfigMap.
    immutable bool
    Whether the ConfigMap is immutable.
    kind str
    The kind of the ConfigMap.
    labels Mapping[str, str]
    The labels of the ConfigMap.
    name str
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace str
    Specifies the namespace to which the ConfigMaps belong.
    resource_version str
    The resource version of the ConfigMap.
    uid str
    The UID of the ConfigMap.
    annotations Map<String>
    The annotations of the ConfigMap.
    apiVersion String
    The API version of the ConfigMap.
    binaryData Map<String>
    The binary data of the ConfigMap. Values are base64-encoded strings.
    creationTimestamp String
    The creation timestamp of the ConfigMap.
    data Map<String>
    The configuration data of the ConfigMap.
    immutable Boolean
    Whether the ConfigMap is immutable.
    kind String
    The kind of the ConfigMap.
    labels Map<String>
    The labels of the ConfigMap.
    name String
    Specifies the name of the ConfigMap used to query a single ConfigMap. If omitted, all ConfigMaps under the namespace are returned.
    namespace String
    Specifies the namespace to which the ConfigMaps belong.
    resourceVersion String
    The resource version of the ConfigMap.
    uid String
    The UID of the ConfigMap.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.36.64
    published on Thursday, Apr 23, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.