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

    Use this data source to get the list of CCI v2 networks 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.getCciNetworksV2({
        namespace: namespace,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    namespace = config.require_object("namespace")
    test = opentelekomcloud.get_cci_networks_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.GetCciNetworksV2(ctx, &opentelekomcloud.GetCciNetworksV2Args{
    			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.GetCciNetworksV2.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.GetCciNetworksV2Args;
    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.getCciNetworksV2(GetCciNetworksV2Args.builder()
                .namespace(namespace)
                .build());
    
        }
    }
    
    configuration:
      namespace:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getCciNetworksV2
          arguments:
            namespace: ${namespace}
    

    Using getCciNetworksV2

    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 getCciNetworksV2(args: GetCciNetworksV2Args, opts?: InvokeOptions): Promise<GetCciNetworksV2Result>
    function getCciNetworksV2Output(args: GetCciNetworksV2OutputArgs, opts?: InvokeOptions): Output<GetCciNetworksV2Result>
    def get_cci_networks_v2(id: Optional[str] = None,
                            namespace: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCciNetworksV2Result
    def get_cci_networks_v2_output(id: Optional[pulumi.Input[str]] = None,
                            namespace: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCciNetworksV2Result]
    func GetCciNetworksV2(ctx *Context, args *GetCciNetworksV2Args, opts ...InvokeOption) (*GetCciNetworksV2Result, error)
    func GetCciNetworksV2Output(ctx *Context, args *GetCciNetworksV2OutputArgs, opts ...InvokeOption) GetCciNetworksV2ResultOutput

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

    public static class GetCciNetworksV2 
    {
        public static Task<GetCciNetworksV2Result> InvokeAsync(GetCciNetworksV2Args args, InvokeOptions? opts = null)
        public static Output<GetCciNetworksV2Result> Invoke(GetCciNetworksV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCciNetworksV2Result> getCciNetworksV2(GetCciNetworksV2Args args, InvokeOptions options)
    public static Output<GetCciNetworksV2Result> getCciNetworksV2(GetCciNetworksV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCciNetworksV2:getCciNetworksV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Namespace string
    Specifies the namespace to which the networks belong.
    Id string
    The data source ID.
    Namespace string
    Specifies the namespace to which the networks belong.
    Id string
    The data source ID.
    namespace String
    Specifies the namespace to which the networks belong.
    id String
    The data source ID.
    namespace string
    Specifies the namespace to which the networks belong.
    id string
    The data source ID.
    namespace str
    Specifies the namespace to which the networks belong.
    id str
    The data source ID.
    namespace String
    Specifies the namespace to which the networks belong.
    id String
    The data source ID.

    getCciNetworksV2 Result

    The following output properties are available:

    Id string
    The data source ID.
    Namespace string
    The namespace to which the network belongs.
    Networks List<GetCciNetworksV2Network>
    The list of networks. The networks structure is documented below.
    Region string
    The region in which the networks are queried.
    Id string
    The data source ID.
    Namespace string
    The namespace to which the network belongs.
    Networks []GetCciNetworksV2Network
    The list of networks. The networks structure is documented below.
    Region string
    The region in which the networks are queried.
    id String
    The data source ID.
    namespace String
    The namespace to which the network belongs.
    networks List<GetCciNetworksV2Network>
    The list of networks. The networks structure is documented below.
    region String
    The region in which the networks are queried.
    id string
    The data source ID.
    namespace string
    The namespace to which the network belongs.
    networks GetCciNetworksV2Network[]
    The list of networks. The networks structure is documented below.
    region string
    The region in which the networks are queried.
    id str
    The data source ID.
    namespace str
    The namespace to which the network belongs.
    networks Sequence[GetCciNetworksV2Network]
    The list of networks. The networks structure is documented below.
    region str
    The region in which the networks are queried.
    id String
    The data source ID.
    namespace String
    The namespace to which the network belongs.
    networks List<Property Map>
    The list of networks. The networks structure is documented below.
    region String
    The region in which the networks are queried.

    Supporting Types

    GetCciNetworksV2Network

    Annotations Dictionary<string, string>
    The annotations of the network.
    CreationTimestamp string
    The creation timestamp of the network.
    Finalizers List<string>
    The finalizers of the network.
    IpFamilies List<string>
    The IP families of the network.
    Labels Dictionary<string, string>
    The labels of the network.
    Name string
    The name of the network.
    Namespace string
    Specifies the namespace to which the networks belong.
    ResourceVersion string
    The resource version of the network.
    SecurityGroupIds List<string>
    The security group IDs bound to the network.
    Statuses List<GetCciNetworksV2NetworkStatus>
    The status of the condition.
    Subnets List<GetCciNetworksV2NetworkSubnet>
    The subnets of the network. The subnets structure is documented below.
    Uid string
    The uid of the network.
    Annotations map[string]string
    The annotations of the network.
    CreationTimestamp string
    The creation timestamp of the network.
    Finalizers []string
    The finalizers of the network.
    IpFamilies []string
    The IP families of the network.
    Labels map[string]string
    The labels of the network.
    Name string
    The name of the network.
    Namespace string
    Specifies the namespace to which the networks belong.
    ResourceVersion string
    The resource version of the network.
    SecurityGroupIds []string
    The security group IDs bound to the network.
    Statuses []GetCciNetworksV2NetworkStatus
    The status of the condition.
    Subnets []GetCciNetworksV2NetworkSubnet
    The subnets of the network. The subnets structure is documented below.
    Uid string
    The uid of the network.
    annotations Map<String,String>
    The annotations of the network.
    creationTimestamp String
    The creation timestamp of the network.
    finalizers List<String>
    The finalizers of the network.
    ipFamilies List<String>
    The IP families of the network.
    labels Map<String,String>
    The labels of the network.
    name String
    The name of the network.
    namespace String
    Specifies the namespace to which the networks belong.
    resourceVersion String
    The resource version of the network.
    securityGroupIds List<String>
    The security group IDs bound to the network.
    statuses List<GetCciNetworksV2NetworkStatus>
    The status of the condition.
    subnets List<GetCciNetworksV2NetworkSubnet>
    The subnets of the network. The subnets structure is documented below.
    uid String
    The uid of the network.
    annotations {[key: string]: string}
    The annotations of the network.
    creationTimestamp string
    The creation timestamp of the network.
    finalizers string[]
    The finalizers of the network.
    ipFamilies string[]
    The IP families of the network.
    labels {[key: string]: string}
    The labels of the network.
    name string
    The name of the network.
    namespace string
    Specifies the namespace to which the networks belong.
    resourceVersion string
    The resource version of the network.
    securityGroupIds string[]
    The security group IDs bound to the network.
    statuses GetCciNetworksV2NetworkStatus[]
    The status of the condition.
    subnets GetCciNetworksV2NetworkSubnet[]
    The subnets of the network. The subnets structure is documented below.
    uid string
    The uid of the network.
    annotations Mapping[str, str]
    The annotations of the network.
    creation_timestamp str
    The creation timestamp of the network.
    finalizers Sequence[str]
    The finalizers of the network.
    ip_families Sequence[str]
    The IP families of the network.
    labels Mapping[str, str]
    The labels of the network.
    name str
    The name of the network.
    namespace str
    Specifies the namespace to which the networks belong.
    resource_version str
    The resource version of the network.
    security_group_ids Sequence[str]
    The security group IDs bound to the network.
    statuses Sequence[GetCciNetworksV2NetworkStatus]
    The status of the condition.
    subnets Sequence[GetCciNetworksV2NetworkSubnet]
    The subnets of the network. The subnets structure is documented below.
    uid str
    The uid of the network.
    annotations Map<String>
    The annotations of the network.
    creationTimestamp String
    The creation timestamp of the network.
    finalizers List<String>
    The finalizers of the network.
    ipFamilies List<String>
    The IP families of the network.
    labels Map<String>
    The labels of the network.
    name String
    The name of the network.
    namespace String
    Specifies the namespace to which the networks belong.
    resourceVersion String
    The resource version of the network.
    securityGroupIds List<String>
    The security group IDs bound to the network.
    statuses List<Property Map>
    The status of the condition.
    subnets List<Property Map>
    The subnets of the network. The subnets structure is documented below.
    uid String
    The uid of the network.

    GetCciNetworksV2NetworkStatus

    Conditions List<GetCciNetworksV2NetworkStatusCondition>
    The list of network conditions. The conditions structure is documented below.
    Status string
    The status of the condition.
    SubnetAttrs List<GetCciNetworksV2NetworkStatusSubnetAttr>
    The list of subnet attributes. The subnet_attrs structure is documented below.
    Conditions []GetCciNetworksV2NetworkStatusCondition
    The list of network conditions. The conditions structure is documented below.
    Status string
    The status of the condition.
    SubnetAttrs []GetCciNetworksV2NetworkStatusSubnetAttr
    The list of subnet attributes. The subnet_attrs structure is documented below.
    conditions List<GetCciNetworksV2NetworkStatusCondition>
    The list of network conditions. The conditions structure is documented below.
    status String
    The status of the condition.
    subnetAttrs List<GetCciNetworksV2NetworkStatusSubnetAttr>
    The list of subnet attributes. The subnet_attrs structure is documented below.
    conditions GetCciNetworksV2NetworkStatusCondition[]
    The list of network conditions. The conditions structure is documented below.
    status string
    The status of the condition.
    subnetAttrs GetCciNetworksV2NetworkStatusSubnetAttr[]
    The list of subnet attributes. The subnet_attrs structure is documented below.
    conditions Sequence[GetCciNetworksV2NetworkStatusCondition]
    The list of network conditions. The conditions structure is documented below.
    status str
    The status of the condition.
    subnet_attrs Sequence[GetCciNetworksV2NetworkStatusSubnetAttr]
    The list of subnet attributes. The subnet_attrs structure is documented below.
    conditions List<Property Map>
    The list of network conditions. The conditions structure is documented below.
    status String
    The status of the condition.
    subnetAttrs List<Property Map>
    The list of subnet attributes. The subnet_attrs structure is documented below.

    GetCciNetworksV2NetworkStatusCondition

    LastTransitionTime string
    The last transition time of the condition.
    Message string
    The human readable message indicating details about the transition.
    Reason string
    The reason for the condition's last transition.
    Status string
    The status of the condition.
    Type string
    The type of the condition.
    LastTransitionTime string
    The last transition time of the condition.
    Message string
    The human readable message indicating details about the transition.
    Reason string
    The reason for the condition's last transition.
    Status string
    The status of the condition.
    Type string
    The type of the condition.
    lastTransitionTime String
    The last transition time of the condition.
    message String
    The human readable message indicating details about the transition.
    reason String
    The reason for the condition's last transition.
    status String
    The status of the condition.
    type String
    The type of the condition.
    lastTransitionTime string
    The last transition time of the condition.
    message string
    The human readable message indicating details about the transition.
    reason string
    The reason for the condition's last transition.
    status string
    The status of the condition.
    type string
    The type of the condition.
    last_transition_time str
    The last transition time of the condition.
    message str
    The human readable message indicating details about the transition.
    reason str
    The reason for the condition's last transition.
    status str
    The status of the condition.
    type str
    The type of the condition.
    lastTransitionTime String
    The last transition time of the condition.
    message String
    The human readable message indicating details about the transition.
    reason String
    The reason for the condition's last transition.
    status String
    The status of the condition.
    type String
    The type of the condition.

    GetCciNetworksV2NetworkStatusSubnetAttr

    NetworkId string
    The ID of the underlying neutron network.
    SubnetV4Id string
    The IPv4 subnet ID.
    SubnetV6Id string
    The IPv6 subnet ID.
    NetworkId string
    The ID of the underlying neutron network.
    SubnetV4Id string
    The IPv4 subnet ID.
    SubnetV6Id string
    The IPv6 subnet ID.
    networkId String
    The ID of the underlying neutron network.
    subnetV4Id String
    The IPv4 subnet ID.
    subnetV6Id String
    The IPv6 subnet ID.
    networkId string
    The ID of the underlying neutron network.
    subnetV4Id string
    The IPv4 subnet ID.
    subnetV6Id string
    The IPv6 subnet ID.
    network_id str
    The ID of the underlying neutron network.
    subnet_v4_id str
    The IPv4 subnet ID.
    subnet_v6_id str
    The IPv6 subnet ID.
    networkId String
    The ID of the underlying neutron network.
    subnetV4Id String
    The IPv4 subnet ID.
    subnetV6Id String
    The IPv6 subnet ID.

    GetCciNetworksV2NetworkSubnet

    SubnetId string
    The ID of the subnet.
    SubnetId string
    The ID of the subnet.
    subnetId String
    The ID of the subnet.
    subnetId string
    The ID of the subnet.
    subnet_id str
    The ID of the subnet.
    subnetId String
    The ID of the subnet.

    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.