1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getCciNamespacesV2
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 namespace you can get at documentation portal

    Use this data source to get the list of CCI v2 namespaces within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const all = opentelekomcloud.getCciNamespacesV2({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    all = opentelekomcloud.get_cci_namespaces_v2()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCciNamespacesV2(ctx, &opentelekomcloud.GetCciNamespacesV2Args{}, 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 all = Opentelekomcloud.GetCciNamespacesV2.Invoke();
    
    });
    
    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.GetCciNamespacesV2Args;
    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 all = OpentelekomcloudFunctions.getCciNamespacesV2(GetCciNamespacesV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: opentelekomcloud:getCciNamespacesV2
          arguments: {}
    
    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const name = config.requireObject<any>("name");
    const byName = opentelekomcloud.getCciNamespacesV2({
        name: name,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    name = config.require_object("name")
    by_name = opentelekomcloud.get_cci_namespaces_v2(name=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, "")
    		name := cfg.RequireObject("name")
    		_, err := opentelekomcloud.GetCciNamespacesV2(ctx, &opentelekomcloud.GetCciNamespacesV2Args{
    			Name: pulumi.StringRef(name),
    		}, 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 name = config.RequireObject<dynamic>("name");
        var byName = Opentelekomcloud.GetCciNamespacesV2.Invoke(new()
        {
            Name = name,
        });
    
    });
    
    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.GetCciNamespacesV2Args;
    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 name = config.get("name");
            final var byName = OpentelekomcloudFunctions.getCciNamespacesV2(GetCciNamespacesV2Args.builder()
                .name(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: dynamic
    variables:
      byName:
        fn::invoke:
          function: opentelekomcloud:getCciNamespacesV2
          arguments:
            name: ${name}
    

    Using getCciNamespacesV2

    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 getCciNamespacesV2(args: GetCciNamespacesV2Args, opts?: InvokeOptions): Promise<GetCciNamespacesV2Result>
    function getCciNamespacesV2Output(args: GetCciNamespacesV2OutputArgs, opts?: InvokeOptions): Output<GetCciNamespacesV2Result>
    def get_cci_namespaces_v2(id: Optional[str] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCciNamespacesV2Result
    def get_cci_namespaces_v2_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCciNamespacesV2Result]
    func GetCciNamespacesV2(ctx *Context, args *GetCciNamespacesV2Args, opts ...InvokeOption) (*GetCciNamespacesV2Result, error)
    func GetCciNamespacesV2Output(ctx *Context, args *GetCciNamespacesV2OutputArgs, opts ...InvokeOption) GetCciNamespacesV2ResultOutput

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

    public static class GetCciNamespacesV2 
    {
        public static Task<GetCciNamespacesV2Result> InvokeAsync(GetCciNamespacesV2Args args, InvokeOptions? opts = null)
        public static Output<GetCciNamespacesV2Result> Invoke(GetCciNamespacesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCciNamespacesV2Result> getCciNamespacesV2(GetCciNamespacesV2Args args, InvokeOptions options)
    public static Output<GetCciNamespacesV2Result> getCciNamespacesV2(GetCciNamespacesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCciNamespacesV2:getCciNamespacesV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The data source ID.
    Name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    Id string
    The data source ID.
    Name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    id String
    The data source ID.
    name String
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    id string
    The data source ID.
    name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    id str
    The data source ID.
    name str
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    id String
    The data source ID.
    name String
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.

    getCciNamespacesV2 Result

    The following output properties are available:

    Id string
    The data source ID.
    Namespaces List<GetCciNamespacesV2Namespace>
    The list of namespaces. The namespaces structure is documented below.
    Region string
    The region in which the namespaces are queried.
    Name string
    The name of the namespace.
    Id string
    The data source ID.
    Namespaces []GetCciNamespacesV2Namespace
    The list of namespaces. The namespaces structure is documented below.
    Region string
    The region in which the namespaces are queried.
    Name string
    The name of the namespace.
    id String
    The data source ID.
    namespaces List<GetCciNamespacesV2Namespace>
    The list of namespaces. The namespaces structure is documented below.
    region String
    The region in which the namespaces are queried.
    name String
    The name of the namespace.
    id string
    The data source ID.
    namespaces GetCciNamespacesV2Namespace[]
    The list of namespaces. The namespaces structure is documented below.
    region string
    The region in which the namespaces are queried.
    name string
    The name of the namespace.
    id str
    The data source ID.
    namespaces Sequence[GetCciNamespacesV2Namespace]
    The list of namespaces. The namespaces structure is documented below.
    region str
    The region in which the namespaces are queried.
    name str
    The name of the namespace.
    id String
    The data source ID.
    namespaces List<Property Map>
    The list of namespaces. The namespaces structure is documented below.
    region String
    The region in which the namespaces are queried.
    name String
    The name of the namespace.

    Supporting Types

    GetCciNamespacesV2Namespace

    Annotations Dictionary<string, string>
    The annotations of the namespace.
    ApiVersion string
    The API version of the namespace.
    CreationTimestamp string
    The creation timestamp of the namespace.
    Finalizers List<string>
    The finalizers of the namespace.
    Kind string
    The kind of the namespace.
    Labels Dictionary<string, string>
    The labels of the namespace.
    Name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    ResourceVersion string
    The resource version of the namespace.
    Status string
    The status of the namespace.
    Uid string
    The uid of the namespace.
    Annotations map[string]string
    The annotations of the namespace.
    ApiVersion string
    The API version of the namespace.
    CreationTimestamp string
    The creation timestamp of the namespace.
    Finalizers []string
    The finalizers of the namespace.
    Kind string
    The kind of the namespace.
    Labels map[string]string
    The labels of the namespace.
    Name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    ResourceVersion string
    The resource version of the namespace.
    Status string
    The status of the namespace.
    Uid string
    The uid of the namespace.
    annotations Map<String,String>
    The annotations of the namespace.
    apiVersion String
    The API version of the namespace.
    creationTimestamp String
    The creation timestamp of the namespace.
    finalizers List<String>
    The finalizers of the namespace.
    kind String
    The kind of the namespace.
    labels Map<String,String>
    The labels of the namespace.
    name String
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    resourceVersion String
    The resource version of the namespace.
    status String
    The status of the namespace.
    uid String
    The uid of the namespace.
    annotations {[key: string]: string}
    The annotations of the namespace.
    apiVersion string
    The API version of the namespace.
    creationTimestamp string
    The creation timestamp of the namespace.
    finalizers string[]
    The finalizers of the namespace.
    kind string
    The kind of the namespace.
    labels {[key: string]: string}
    The labels of the namespace.
    name string
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    resourceVersion string
    The resource version of the namespace.
    status string
    The status of the namespace.
    uid string
    The uid of the namespace.
    annotations Mapping[str, str]
    The annotations of the namespace.
    api_version str
    The API version of the namespace.
    creation_timestamp str
    The creation timestamp of the namespace.
    finalizers Sequence[str]
    The finalizers of the namespace.
    kind str
    The kind of the namespace.
    labels Mapping[str, str]
    The labels of the namespace.
    name str
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    resource_version str
    The resource version of the namespace.
    status str
    The status of the namespace.
    uid str
    The uid of the namespace.
    annotations Map<String>
    The annotations of the namespace.
    apiVersion String
    The API version of the namespace.
    creationTimestamp String
    The creation timestamp of the namespace.
    finalizers List<String>
    The finalizers of the namespace.
    kind String
    The kind of the namespace.
    labels Map<String>
    The labels of the namespace.
    name String
    Specifies the name of the namespace used to query the namespace detail. If omitted, the list of all namespaces is returned.
    resourceVersion String
    The resource version of the namespace.
    status String
    The status of the namespace.
    uid String
    The uid of the namespace.

    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.