1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CciNamespaceV2
opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 by opentelekomcloud

opentelekomcloud.CciNamespaceV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 by opentelekomcloud

    Manages a CCI v2 namespace resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const name = config.requireObject("name");
    const test = new opentelekomcloud.CciNamespaceV2("test", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    name = config.require_object("name")
    test = opentelekomcloud.CciNamespaceV2("test")
    
    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.NewCciNamespaceV2(ctx, "test", 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 test = new Opentelekomcloud.CciNamespaceV2("test");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CciNamespaceV2;
    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");
            var test = new CciNamespaceV2("test");
    
        }
    }
    
    configuration:
      name:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CciNamespaceV2
    

    Create CciNamespaceV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CciNamespaceV2(name: string, args?: CciNamespaceV2Args, opts?: CustomResourceOptions);
    @overload
    def CciNamespaceV2(resource_name: str,
                       args: Optional[CciNamespaceV2Args] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CciNamespaceV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cci_namespace_v2_id: Optional[str] = None,
                       name: Optional[str] = None,
                       timeouts: Optional[CciNamespaceV2TimeoutsArgs] = None)
    func NewCciNamespaceV2(ctx *Context, name string, args *CciNamespaceV2Args, opts ...ResourceOption) (*CciNamespaceV2, error)
    public CciNamespaceV2(string name, CciNamespaceV2Args? args = null, CustomResourceOptions? opts = null)
    public CciNamespaceV2(String name, CciNamespaceV2Args args)
    public CciNamespaceV2(String name, CciNamespaceV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CciNamespaceV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CciNamespaceV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CciNamespaceV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CciNamespaceV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CciNamespaceV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CciNamespaceV2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cciNamespaceV2Resource = new Opentelekomcloud.CciNamespaceV2("cciNamespaceV2Resource", new()
    {
        CciNamespaceV2Id = "string",
        Name = "string",
        Timeouts = new Opentelekomcloud.Inputs.CciNamespaceV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := opentelekomcloud.NewCciNamespaceV2(ctx, "cciNamespaceV2Resource", &opentelekomcloud.CciNamespaceV2Args{
    	CciNamespaceV2Id: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Timeouts: &opentelekomcloud.CciNamespaceV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var cciNamespaceV2Resource = new CciNamespaceV2("cciNamespaceV2Resource", CciNamespaceV2Args.builder()
        .cciNamespaceV2Id("string")
        .name("string")
        .timeouts(CciNamespaceV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    cci_namespace_v2_resource = opentelekomcloud.CciNamespaceV2("cciNamespaceV2Resource",
        cci_namespace_v2_id="string",
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const cciNamespaceV2Resource = new opentelekomcloud.CciNamespaceV2("cciNamespaceV2Resource", {
        cciNamespaceV2Id: "string",
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: opentelekomcloud:CciNamespaceV2
    properties:
        cciNamespaceV2Id: string
        name: string
        timeouts:
            create: string
            delete: string
    

    CciNamespaceV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CciNamespaceV2 resource accepts the following input properties:

    CciNamespaceV2Id string
    The resource ID. The value is also the name of the namespace.
    Name string
    Specifies the unique name of the namespace.
    Timeouts CciNamespaceV2Timeouts
    CciNamespaceV2Id string
    The resource ID. The value is also the name of the namespace.
    Name string
    Specifies the unique name of the namespace.
    Timeouts CciNamespaceV2TimeoutsArgs
    cciNamespaceV2Id String
    The resource ID. The value is also the name of the namespace.
    name String
    Specifies the unique name of the namespace.
    timeouts CciNamespaceV2Timeouts
    cciNamespaceV2Id string
    The resource ID. The value is also the name of the namespace.
    name string
    Specifies the unique name of the namespace.
    timeouts CciNamespaceV2Timeouts
    cci_namespace_v2_id str
    The resource ID. The value is also the name of the namespace.
    name str
    Specifies the unique name of the namespace.
    timeouts CciNamespaceV2TimeoutsArgs
    cciNamespaceV2Id String
    The resource ID. The value is also the name of the namespace.
    name String
    Specifies the unique name of the namespace.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CciNamespaceV2 resource produces the following output properties:

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of the namespace.
    Labels Dictionary<string, string>
    The labels of the namespace.
    Region string
    The region of the namespace
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of the namespace.
    Labels map[string]string
    The labels of the namespace.
    Region string
    The region of the namespace
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of the namespace.
    labels Map<String,String>
    The labels of the namespace.
    region String
    The region of the namespace
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The kind of the namespace.
    labels {[key: string]: string}
    The labels of the namespace.
    region string
    The region of the namespace
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    The kind of the namespace.
    labels Mapping[str, str]
    The labels of the namespace.
    region str
    The region of the namespace
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of the namespace.
    labels Map<String>
    The labels of the namespace.
    region String
    The region of the namespace
    resourceVersion String
    The resource version of the namespace.
    status String
    The status of the namespace.
    uid String
    The uid of the namespace.

    Look up Existing CciNamespaceV2 Resource

    Get an existing CciNamespaceV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CciNamespaceV2State, opts?: CustomResourceOptions): CciNamespaceV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            api_version: Optional[str] = None,
            cci_namespace_v2_id: Optional[str] = None,
            creation_timestamp: Optional[str] = None,
            finalizers: Optional[Sequence[str]] = None,
            kind: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            resource_version: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[CciNamespaceV2TimeoutsArgs] = None,
            uid: Optional[str] = None) -> CciNamespaceV2
    func GetCciNamespaceV2(ctx *Context, name string, id IDInput, state *CciNamespaceV2State, opts ...ResourceOption) (*CciNamespaceV2, error)
    public static CciNamespaceV2 Get(string name, Input<string> id, CciNamespaceV2State? state, CustomResourceOptions? opts = null)
    public static CciNamespaceV2 get(String name, Output<String> id, CciNamespaceV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CciNamespaceV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Annotations Dictionary<string, string>
    The annotations of the namespace.
    ApiVersion string
    The API version of the namespace.
    CciNamespaceV2Id string
    The resource ID. The value is also the name 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 unique name of the namespace.
    Region string
    The region of the namespace
    ResourceVersion string
    The resource version of the namespace.
    Status string
    The status of the namespace.
    Timeouts CciNamespaceV2Timeouts
    Uid string
    The uid of the namespace.
    Annotations map[string]string
    The annotations of the namespace.
    ApiVersion string
    The API version of the namespace.
    CciNamespaceV2Id string
    The resource ID. The value is also the name 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 unique name of the namespace.
    Region string
    The region of the namespace
    ResourceVersion string
    The resource version of the namespace.
    Status string
    The status of the namespace.
    Timeouts CciNamespaceV2TimeoutsArgs
    Uid string
    The uid of the namespace.
    annotations Map<String,String>
    The annotations of the namespace.
    apiVersion String
    The API version of the namespace.
    cciNamespaceV2Id String
    The resource ID. The value is also the name 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 unique name of the namespace.
    region String
    The region of the namespace
    resourceVersion String
    The resource version of the namespace.
    status String
    The status of the namespace.
    timeouts CciNamespaceV2Timeouts
    uid String
    The uid of the namespace.
    annotations {[key: string]: string}
    The annotations of the namespace.
    apiVersion string
    The API version of the namespace.
    cciNamespaceV2Id string
    The resource ID. The value is also the name 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 unique name of the namespace.
    region string
    The region of the namespace
    resourceVersion string
    The resource version of the namespace.
    status string
    The status of the namespace.
    timeouts CciNamespaceV2Timeouts
    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.
    cci_namespace_v2_id str
    The resource ID. The value is also the name 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 unique name of the namespace.
    region str
    The region of the namespace
    resource_version str
    The resource version of the namespace.
    status str
    The status of the namespace.
    timeouts CciNamespaceV2TimeoutsArgs
    uid str
    The uid of the namespace.
    annotations Map<String>
    The annotations of the namespace.
    apiVersion String
    The API version of the namespace.
    cciNamespaceV2Id String
    The resource ID. The value is also the name 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 unique name of the namespace.
    region String
    The region of the namespace
    resourceVersion String
    The resource version of the namespace.
    status String
    The status of the namespace.
    timeouts Property Map
    uid String
    The uid of the namespace.

    Supporting Types

    CciNamespaceV2Timeouts, CciNamespaceV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    The CCI v2 namespace can be imported using name, e.g.

    bash

    $ pulumi import opentelekomcloud:index/cciNamespaceV2:CciNamespaceV2 test <name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.40 published on Friday, Jun 6, 2025 by opentelekomcloud