opentelekomcloud.CciNamespaceV2
Explore with Pulumi AI
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:
- Cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- Name string
- Specifies the unique name of the namespace.
- Timeouts
Cci
Namespace V2Timeouts
- Cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- Name string
- Specifies the unique name of the namespace.
- Timeouts
Cci
Namespace V2Timeouts Args
- cci
Namespace StringV2Id - The resource ID. The value is also the name of the namespace.
- name String
- Specifies the unique name of the namespace.
- timeouts
Cci
Namespace V2Timeouts
- cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- name string
- Specifies the unique name of the namespace.
- timeouts
Cci
Namespace V2Timeouts
- cci_
namespace_ strv2_ id - The resource ID. The value is also the name of the namespace.
- name str
- Specifies the unique name of the namespace.
- timeouts
Cci
Namespace V2Timeouts Args
- cci
Namespace StringV2Id - 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.
- Api
Version string - The API version of the namespace.
- Creation
Timestamp 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
- Resource
Version 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.
- Api
Version string - The API version of the namespace.
- Creation
Timestamp 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
- Resource
Version 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.
- api
Version String - The API version of the namespace.
- creation
Timestamp 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
- resource
Version 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.
- api
Version string - The API version of the namespace.
- creation
Timestamp 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
- resource
Version 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.
- api
Version String - The API version of the namespace.
- creation
Timestamp 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
- resource
Version 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.
- Annotations Dictionary<string, string>
- The annotations of the namespace.
- Api
Version string - The API version of the namespace.
- Cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- Creation
Timestamp 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
- Resource
Version string - The resource version of the namespace.
- Status string
- The status of the namespace.
- Timeouts
Cci
Namespace V2Timeouts - Uid string
- The uid of the namespace.
- Annotations map[string]string
- The annotations of the namespace.
- Api
Version string - The API version of the namespace.
- Cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- Creation
Timestamp 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
- Resource
Version string - The resource version of the namespace.
- Status string
- The status of the namespace.
- Timeouts
Cci
Namespace V2Timeouts Args - Uid string
- The uid of the namespace.
- annotations Map<String,String>
- The annotations of the namespace.
- api
Version String - The API version of the namespace.
- cci
Namespace StringV2Id - The resource ID. The value is also the name of the namespace.
- creation
Timestamp 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
- resource
Version String - The resource version of the namespace.
- status String
- The status of the namespace.
- timeouts
Cci
Namespace V2Timeouts - uid String
- The uid of the namespace.
- annotations {[key: string]: string}
- The annotations of the namespace.
- api
Version string - The API version of the namespace.
- cci
Namespace stringV2Id - The resource ID. The value is also the name of the namespace.
- creation
Timestamp 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
- resource
Version string - The resource version of the namespace.
- status string
- The status of the namespace.
- timeouts
Cci
Namespace V2Timeouts - 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_ strv2_ id - 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
Cci
Namespace V2Timeouts Args - uid str
- The uid of the namespace.
- annotations Map<String>
- The annotations of the namespace.
- api
Version String - The API version of the namespace.
- cci
Namespace StringV2Id - The resource ID. The value is also the name of the namespace.
- creation
Timestamp 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
- resource
Version 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
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.