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

    Manages a CCI v2 Secret resource within OpenTelekomCloud.

    Example Usage

    Create CciSecretV2 Resource

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

    Constructor syntax

    new CciSecretV2(name: string, args: CciSecretV2Args, opts?: CustomResourceOptions);
    @overload
    def CciSecretV2(resource_name: str,
                    args: CciSecretV2Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CciSecretV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    namespace: Optional[str] = None,
                    cci_secret_v2_id: Optional[str] = None,
                    data: Optional[Mapping[str, str]] = None,
                    name: Optional[str] = None,
                    string_data: Optional[Mapping[str, str]] = None,
                    type: Optional[str] = None)
    func NewCciSecretV2(ctx *Context, name string, args CciSecretV2Args, opts ...ResourceOption) (*CciSecretV2, error)
    public CciSecretV2(string name, CciSecretV2Args args, CustomResourceOptions? opts = null)
    public CciSecretV2(String name, CciSecretV2Args args)
    public CciSecretV2(String name, CciSecretV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CciSecretV2
    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 CciSecretV2Args
    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 CciSecretV2Args
    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 CciSecretV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CciSecretV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CciSecretV2Args
    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 cciSecretV2Resource = new Opentelekomcloud.CciSecretV2("cciSecretV2Resource", new()
    {
        Namespace = "string",
        CciSecretV2Id = "string",
        Data = 
        {
            { "string", "string" },
        },
        Name = "string",
        StringData = 
        {
            { "string", "string" },
        },
        Type = "string",
    });
    
    example, err := opentelekomcloud.NewCciSecretV2(ctx, "cciSecretV2Resource", &opentelekomcloud.CciSecretV2Args{
    	Namespace:     pulumi.String("string"),
    	CciSecretV2Id: pulumi.String("string"),
    	Data: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	StringData: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    })
    
    var cciSecretV2Resource = new CciSecretV2("cciSecretV2Resource", CciSecretV2Args.builder()
        .namespace("string")
        .cciSecretV2Id("string")
        .data(Map.of("string", "string"))
        .name("string")
        .stringData(Map.of("string", "string"))
        .type("string")
        .build());
    
    cci_secret_v2_resource = opentelekomcloud.CciSecretV2("cciSecretV2Resource",
        namespace="string",
        cci_secret_v2_id="string",
        data={
            "string": "string",
        },
        name="string",
        string_data={
            "string": "string",
        },
        type="string")
    
    const cciSecretV2Resource = new opentelekomcloud.CciSecretV2("cciSecretV2Resource", {
        namespace: "string",
        cciSecretV2Id: "string",
        data: {
            string: "string",
        },
        name: "string",
        stringData: {
            string: "string",
        },
        type: "string",
    });
    
    type: opentelekomcloud:CciSecretV2
    properties:
        cciSecretV2Id: string
        data:
            string: string
        name: string
        namespace: string
        stringData:
            string: string
        type: string
    

    CciSecretV2 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 CciSecretV2 resource accepts the following input properties:

    Namespace string
    Specifies the namespace of the CCI Secret.
    CciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    Data Dictionary<string, string>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    Name string
    Specifies the name of the CCI Secret.
    StringData Dictionary<string, string>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    Type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    Namespace string
    Specifies the namespace of the CCI Secret.
    CciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    Data map[string]string
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    Name string
    Specifies the name of the CCI Secret.
    StringData map[string]string
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    Type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    namespace String
    Specifies the namespace of the CCI Secret.
    cciSecretV2Id String
    The resource ID in format <namespace>/<name>.
    data Map<String,String>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    name String
    Specifies the name of the CCI Secret.
    stringData Map<String,String>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type String
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    namespace string
    Specifies the namespace of the CCI Secret.
    cciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    data {[key: string]: string}
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    name string
    Specifies the name of the CCI Secret.
    stringData {[key: string]: string}
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    namespace str
    Specifies the namespace of the CCI Secret.
    cci_secret_v2_id str
    The resource ID in format <namespace>/<name>.
    data Mapping[str, str]
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    name str
    Specifies the name of the CCI Secret.
    string_data Mapping[str, str]
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type str
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    namespace String
    Specifies the namespace of the CCI Secret.
    cciSecretV2Id String
    The resource ID in format <namespace>/<name>.
    data Map<String>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    name String
    Specifies the name of the CCI Secret.
    stringData Map<String>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type String
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.

    Outputs

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

    Annotations Dictionary<string, string>
    The annotations of the CCI Secret.
    ApiVersion string
    The API version of the CCI Secret.
    CreationTimestamp string
    The creation timestamp of the CCI Secret.
    Id string
    The provider-assigned unique ID for this managed resource.
    Immutable bool
    Whether the CCI Secret is immutable.
    Kind string
    The kind of the CCI Secret.
    Labels Dictionary<string, string>
    The labels of the CCI Secret.
    Region string
    The region of the CCI Secret.
    ResourceVersion string
    The resource version of the CCI Secret.
    Uid string
    The uid of the CCI Secret.
    Annotations map[string]string
    The annotations of the CCI Secret.
    ApiVersion string
    The API version of the CCI Secret.
    CreationTimestamp string
    The creation timestamp of the CCI Secret.
    Id string
    The provider-assigned unique ID for this managed resource.
    Immutable bool
    Whether the CCI Secret is immutable.
    Kind string
    The kind of the CCI Secret.
    Labels map[string]string
    The labels of the CCI Secret.
    Region string
    The region of the CCI Secret.
    ResourceVersion string
    The resource version of the CCI Secret.
    Uid string
    The uid of the CCI Secret.
    annotations Map<String,String>
    The annotations of the CCI Secret.
    apiVersion String
    The API version of the CCI Secret.
    creationTimestamp String
    The creation timestamp of the CCI Secret.
    id String
    The provider-assigned unique ID for this managed resource.
    immutable Boolean
    Whether the CCI Secret is immutable.
    kind String
    The kind of the CCI Secret.
    labels Map<String,String>
    The labels of the CCI Secret.
    region String
    The region of the CCI Secret.
    resourceVersion String
    The resource version of the CCI Secret.
    uid String
    The uid of the CCI Secret.
    annotations {[key: string]: string}
    The annotations of the CCI Secret.
    apiVersion string
    The API version of the CCI Secret.
    creationTimestamp string
    The creation timestamp of the CCI Secret.
    id string
    The provider-assigned unique ID for this managed resource.
    immutable boolean
    Whether the CCI Secret is immutable.
    kind string
    The kind of the CCI Secret.
    labels {[key: string]: string}
    The labels of the CCI Secret.
    region string
    The region of the CCI Secret.
    resourceVersion string
    The resource version of the CCI Secret.
    uid string
    The uid of the CCI Secret.
    annotations Mapping[str, str]
    The annotations of the CCI Secret.
    api_version str
    The API version of the CCI Secret.
    creation_timestamp str
    The creation timestamp of the CCI Secret.
    id str
    The provider-assigned unique ID for this managed resource.
    immutable bool
    Whether the CCI Secret is immutable.
    kind str
    The kind of the CCI Secret.
    labels Mapping[str, str]
    The labels of the CCI Secret.
    region str
    The region of the CCI Secret.
    resource_version str
    The resource version of the CCI Secret.
    uid str
    The uid of the CCI Secret.
    annotations Map<String>
    The annotations of the CCI Secret.
    apiVersion String
    The API version of the CCI Secret.
    creationTimestamp String
    The creation timestamp of the CCI Secret.
    id String
    The provider-assigned unique ID for this managed resource.
    immutable Boolean
    Whether the CCI Secret is immutable.
    kind String
    The kind of the CCI Secret.
    labels Map<String>
    The labels of the CCI Secret.
    region String
    The region of the CCI Secret.
    resourceVersion String
    The resource version of the CCI Secret.
    uid String
    The uid of the CCI Secret.

    Look up Existing CciSecretV2 Resource

    Get an existing CciSecretV2 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?: CciSecretV2State, opts?: CustomResourceOptions): CciSecretV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            api_version: Optional[str] = None,
            cci_secret_v2_id: Optional[str] = None,
            creation_timestamp: Optional[str] = None,
            data: Optional[Mapping[str, str]] = None,
            immutable: Optional[bool] = None,
            kind: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            region: Optional[str] = None,
            resource_version: Optional[str] = None,
            string_data: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None,
            uid: Optional[str] = None) -> CciSecretV2
    func GetCciSecretV2(ctx *Context, name string, id IDInput, state *CciSecretV2State, opts ...ResourceOption) (*CciSecretV2, error)
    public static CciSecretV2 Get(string name, Input<string> id, CciSecretV2State? state, CustomResourceOptions? opts = null)
    public static CciSecretV2 get(String name, Output<String> id, CciSecretV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CciSecretV2    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 CCI Secret.
    ApiVersion string
    The API version of the CCI Secret.
    CciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    CreationTimestamp string
    The creation timestamp of the CCI Secret.
    Data Dictionary<string, string>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    Immutable bool
    Whether the CCI Secret is immutable.
    Kind string
    The kind of the CCI Secret.
    Labels Dictionary<string, string>
    The labels of the CCI Secret.
    Name string
    Specifies the name of the CCI Secret.
    Namespace string
    Specifies the namespace of the CCI Secret.
    Region string
    The region of the CCI Secret.
    ResourceVersion string
    The resource version of the CCI Secret.
    StringData Dictionary<string, string>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    Type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    Uid string
    The uid of the CCI Secret.
    Annotations map[string]string
    The annotations of the CCI Secret.
    ApiVersion string
    The API version of the CCI Secret.
    CciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    CreationTimestamp string
    The creation timestamp of the CCI Secret.
    Data map[string]string
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    Immutable bool
    Whether the CCI Secret is immutable.
    Kind string
    The kind of the CCI Secret.
    Labels map[string]string
    The labels of the CCI Secret.
    Name string
    Specifies the name of the CCI Secret.
    Namespace string
    Specifies the namespace of the CCI Secret.
    Region string
    The region of the CCI Secret.
    ResourceVersion string
    The resource version of the CCI Secret.
    StringData map[string]string
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    Type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    Uid string
    The uid of the CCI Secret.
    annotations Map<String,String>
    The annotations of the CCI Secret.
    apiVersion String
    The API version of the CCI Secret.
    cciSecretV2Id String
    The resource ID in format <namespace>/<name>.
    creationTimestamp String
    The creation timestamp of the CCI Secret.
    data Map<String,String>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    immutable Boolean
    Whether the CCI Secret is immutable.
    kind String
    The kind of the CCI Secret.
    labels Map<String,String>
    The labels of the CCI Secret.
    name String
    Specifies the name of the CCI Secret.
    namespace String
    Specifies the namespace of the CCI Secret.
    region String
    The region of the CCI Secret.
    resourceVersion String
    The resource version of the CCI Secret.
    stringData Map<String,String>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type String
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    uid String
    The uid of the CCI Secret.
    annotations {[key: string]: string}
    The annotations of the CCI Secret.
    apiVersion string
    The API version of the CCI Secret.
    cciSecretV2Id string
    The resource ID in format <namespace>/<name>.
    creationTimestamp string
    The creation timestamp of the CCI Secret.
    data {[key: string]: string}
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    immutable boolean
    Whether the CCI Secret is immutable.
    kind string
    The kind of the CCI Secret.
    labels {[key: string]: string}
    The labels of the CCI Secret.
    name string
    Specifies the name of the CCI Secret.
    namespace string
    Specifies the namespace of the CCI Secret.
    region string
    The region of the CCI Secret.
    resourceVersion string
    The resource version of the CCI Secret.
    stringData {[key: string]: string}
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type string
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    uid string
    The uid of the CCI Secret.
    annotations Mapping[str, str]
    The annotations of the CCI Secret.
    api_version str
    The API version of the CCI Secret.
    cci_secret_v2_id str
    The resource ID in format <namespace>/<name>.
    creation_timestamp str
    The creation timestamp of the CCI Secret.
    data Mapping[str, str]
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    immutable bool
    Whether the CCI Secret is immutable.
    kind str
    The kind of the CCI Secret.
    labels Mapping[str, str]
    The labels of the CCI Secret.
    name str
    Specifies the name of the CCI Secret.
    namespace str
    Specifies the namespace of the CCI Secret.
    region str
    The region of the CCI Secret.
    resource_version str
    The resource version of the CCI Secret.
    string_data Mapping[str, str]
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type str
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    uid str
    The uid of the CCI Secret.
    annotations Map<String>
    The annotations of the CCI Secret.
    apiVersion String
    The API version of the CCI Secret.
    cciSecretV2Id String
    The resource ID in format <namespace>/<name>.
    creationTimestamp String
    The creation timestamp of the CCI Secret.
    data Map<String>
    Specifies the data of the CCI Secret. The values must be base64-encoded strings.
    immutable Boolean
    Whether the CCI Secret is immutable.
    kind String
    The kind of the CCI Secret.
    labels Map<String>
    The labels of the CCI Secret.
    name String
    Specifies the name of the CCI Secret.
    namespace String
    Specifies the namespace of the CCI Secret.
    region String
    The region of the CCI Secret.
    resourceVersion String
    The resource version of the CCI Secret.
    stringData Map<String>
    Specifies string data of the CCI Secret. The values will be encoded to base64 by the API before storage.
    type String
    Specifies the type of the CCI Secret. For example, Opaque, kubernetes.io/dockerconfigjson, etc.
    uid String
    The uid of the CCI Secret.

    Import

    The CCI v2 Secret can be imported using namespace and name, separated by a slash, e.g.

    bash

    $ pulumi import opentelekomcloud:index/cciSecretV2:CciSecretV2 test <namespace>/<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.
    Viewing docs for opentelekomcloud 1.36.64
    published on Thursday, Apr 23, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.