1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. CcePvc
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.CcePvc

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a CCE Persistent Volume Claim resource within FlexibleEngine.

    NOTE: Currently, there is an ongoing certificate issue regarding the PVC management APIs. Please set insecure = true in provider block to ignore SSL certificate verification.

    Example Usage

    Create PVC with EVS

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const clusterId = config.requireObject("clusterId");
    const namespace = config.requireObject("namespace");
    const pvcName = config.requireObject("pvcName");
    const test = new flexibleengine.CcePvc("test", {
        clusterId: clusterId,
        namespace: namespace,
        annotations: {
            "everest.io/disk-volume-type": "SSD",
        },
        storageClassName: "csi-disk",
        accessModes: ["ReadWriteOnce"],
        storage: "10Gi",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    namespace = config.require_object("namespace")
    pvc_name = config.require_object("pvcName")
    test = flexibleengine.CcePvc("test",
        cluster_id=cluster_id,
        namespace=namespace,
        annotations={
            "everest.io/disk-volume-type": "SSD",
        },
        storage_class_name="csi-disk",
        access_modes=["ReadWriteOnce"],
        storage="10Gi")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		clusterId := cfg.RequireObject("clusterId")
    		namespace := cfg.RequireObject("namespace")
    		pvcName := cfg.RequireObject("pvcName")
    		_, err := flexibleengine.NewCcePvc(ctx, "test", &flexibleengine.CcePvcArgs{
    			ClusterId: pulumi.Any(clusterId),
    			Namespace: pulumi.Any(namespace),
    			Annotations: pulumi.StringMap{
    				"everest.io/disk-volume-type": pulumi.String("SSD"),
    			},
    			StorageClassName: pulumi.String("csi-disk"),
    			AccessModes: pulumi.StringArray{
    				pulumi.String("ReadWriteOnce"),
    			},
    			Storage: pulumi.String("10Gi"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var clusterId = config.RequireObject<dynamic>("clusterId");
        var @namespace = config.RequireObject<dynamic>("namespace");
        var pvcName = config.RequireObject<dynamic>("pvcName");
        var test = new Flexibleengine.CcePvc("test", new()
        {
            ClusterId = clusterId,
            Namespace = @namespace,
            Annotations = 
            {
                { "everest.io/disk-volume-type", "SSD" },
            },
            StorageClassName = "csi-disk",
            AccessModes = new[]
            {
                "ReadWriteOnce",
            },
            Storage = "10Gi",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CcePvc;
    import com.pulumi.flexibleengine.CcePvcArgs;
    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 clusterId = config.get("clusterId");
            final var namespace = config.get("namespace");
            final var pvcName = config.get("pvcName");
            var test = new CcePvc("test", CcePvcArgs.builder()
                .clusterId(clusterId)
                .namespace(namespace)
                .annotations(Map.of("everest.io/disk-volume-type", "SSD"))
                .storageClassName("csi-disk")
                .accessModes("ReadWriteOnce")
                .storage("10Gi")
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
      namespace:
        type: dynamic
      pvcName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:CcePvc
        properties:
          clusterId: ${clusterId}
          namespace: ${namespace}
          annotations:
            everest.io/disk-volume-type: SSD
          storageClassName: csi-disk
          accessModes:
            - ReadWriteOnce
          storage: 10Gi
    

    Create PVC with OBS

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const clusterId = config.requireObject("clusterId");
    const namespace = config.requireObject("namespace");
    const pvcName = config.requireObject("pvcName");
    const test = new flexibleengine.CcePvc("test", {
        clusterId: clusterId,
        namespace: namespace,
        annotations: {
            "everest.io/obs-volume-type": "STANDARD",
            "csi.storage.k8s.io/fstype": "obsfs",
        },
        storageClassName: "csi-obs",
        accessModes: ["ReadWriteMany"],
        storage: "1Gi",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    namespace = config.require_object("namespace")
    pvc_name = config.require_object("pvcName")
    test = flexibleengine.CcePvc("test",
        cluster_id=cluster_id,
        namespace=namespace,
        annotations={
            "everest.io/obs-volume-type": "STANDARD",
            "csi.storage.k8s.io/fstype": "obsfs",
        },
        storage_class_name="csi-obs",
        access_modes=["ReadWriteMany"],
        storage="1Gi")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		clusterId := cfg.RequireObject("clusterId")
    		namespace := cfg.RequireObject("namespace")
    		pvcName := cfg.RequireObject("pvcName")
    		_, err := flexibleengine.NewCcePvc(ctx, "test", &flexibleengine.CcePvcArgs{
    			ClusterId: pulumi.Any(clusterId),
    			Namespace: pulumi.Any(namespace),
    			Annotations: pulumi.StringMap{
    				"everest.io/obs-volume-type": pulumi.String("STANDARD"),
    				"csi.storage.k8s.io/fstype":  pulumi.String("obsfs"),
    			},
    			StorageClassName: pulumi.String("csi-obs"),
    			AccessModes: pulumi.StringArray{
    				pulumi.String("ReadWriteMany"),
    			},
    			Storage: pulumi.String("1Gi"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var clusterId = config.RequireObject<dynamic>("clusterId");
        var @namespace = config.RequireObject<dynamic>("namespace");
        var pvcName = config.RequireObject<dynamic>("pvcName");
        var test = new Flexibleengine.CcePvc("test", new()
        {
            ClusterId = clusterId,
            Namespace = @namespace,
            Annotations = 
            {
                { "everest.io/obs-volume-type", "STANDARD" },
                { "csi.storage.k8s.io/fstype", "obsfs" },
            },
            StorageClassName = "csi-obs",
            AccessModes = new[]
            {
                "ReadWriteMany",
            },
            Storage = "1Gi",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CcePvc;
    import com.pulumi.flexibleengine.CcePvcArgs;
    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 clusterId = config.get("clusterId");
            final var namespace = config.get("namespace");
            final var pvcName = config.get("pvcName");
            var test = new CcePvc("test", CcePvcArgs.builder()
                .clusterId(clusterId)
                .namespace(namespace)
                .annotations(Map.ofEntries(
                    Map.entry("everest.io/obs-volume-type", "STANDARD"),
                    Map.entry("csi.storage.k8s.io/fstype", "obsfs")
                ))
                .storageClassName("csi-obs")
                .accessModes("ReadWriteMany")
                .storage("1Gi")
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
      namespace:
        type: dynamic
      pvcName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:CcePvc
        properties:
          clusterId: ${clusterId}
          namespace: ${namespace}
          annotations:
            everest.io/obs-volume-type: STANDARD
            csi.storage.k8s.io/fstype: obsfs
          storageClassName: csi-obs
          accessModes:
            - ReadWriteMany
          storage: 1Gi
    

    Create PVC with SFS

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const clusterId = config.requireObject("clusterId");
    const namespace = config.requireObject("namespace");
    const pvcName = config.requireObject("pvcName");
    const test = new flexibleengine.CcePvc("test", {
        clusterId: clusterId,
        namespace: namespace,
        storageClassName: "csi-nas",
        accessModes: ["ReadWriteMany"],
        storage: "10Gi",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    cluster_id = config.require_object("clusterId")
    namespace = config.require_object("namespace")
    pvc_name = config.require_object("pvcName")
    test = flexibleengine.CcePvc("test",
        cluster_id=cluster_id,
        namespace=namespace,
        storage_class_name="csi-nas",
        access_modes=["ReadWriteMany"],
        storage="10Gi")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		clusterId := cfg.RequireObject("clusterId")
    		namespace := cfg.RequireObject("namespace")
    		pvcName := cfg.RequireObject("pvcName")
    		_, err := flexibleengine.NewCcePvc(ctx, "test", &flexibleengine.CcePvcArgs{
    			ClusterId:        pulumi.Any(clusterId),
    			Namespace:        pulumi.Any(namespace),
    			StorageClassName: pulumi.String("csi-nas"),
    			AccessModes: pulumi.StringArray{
    				pulumi.String("ReadWriteMany"),
    			},
    			Storage: pulumi.String("10Gi"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var clusterId = config.RequireObject<dynamic>("clusterId");
        var @namespace = config.RequireObject<dynamic>("namespace");
        var pvcName = config.RequireObject<dynamic>("pvcName");
        var test = new Flexibleengine.CcePvc("test", new()
        {
            ClusterId = clusterId,
            Namespace = @namespace,
            StorageClassName = "csi-nas",
            AccessModes = new[]
            {
                "ReadWriteMany",
            },
            Storage = "10Gi",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CcePvc;
    import com.pulumi.flexibleengine.CcePvcArgs;
    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 clusterId = config.get("clusterId");
            final var namespace = config.get("namespace");
            final var pvcName = config.get("pvcName");
            var test = new CcePvc("test", CcePvcArgs.builder()
                .clusterId(clusterId)
                .namespace(namespace)
                .storageClassName("csi-nas")
                .accessModes("ReadWriteMany")
                .storage("10Gi")
                .build());
    
        }
    }
    
    configuration:
      clusterId:
        type: dynamic
      namespace:
        type: dynamic
      pvcName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:CcePvc
        properties:
          clusterId: ${clusterId}
          namespace: ${namespace}
          storageClassName: csi-nas
          accessModes:
            - ReadWriteMany
          storage: 10Gi
    

    Create CcePvc Resource

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

    Constructor syntax

    new CcePvc(name: string, args: CcePvcArgs, opts?: CustomResourceOptions);
    @overload
    def CcePvc(resource_name: str,
               args: CcePvcArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def CcePvc(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               access_modes: Optional[Sequence[str]] = None,
               cluster_id: Optional[str] = None,
               namespace: Optional[str] = None,
               storage: Optional[str] = None,
               storage_class_name: Optional[str] = None,
               annotations: Optional[Mapping[str, str]] = None,
               cce_pvc_id: Optional[str] = None,
               labels: Optional[Mapping[str, str]] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               timeouts: Optional[CcePvcTimeoutsArgs] = None)
    func NewCcePvc(ctx *Context, name string, args CcePvcArgs, opts ...ResourceOption) (*CcePvc, error)
    public CcePvc(string name, CcePvcArgs args, CustomResourceOptions? opts = null)
    public CcePvc(String name, CcePvcArgs args)
    public CcePvc(String name, CcePvcArgs args, CustomResourceOptions options)
    
    type: flexibleengine:CcePvc
    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 CcePvcArgs
    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 CcePvcArgs
    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 CcePvcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CcePvcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CcePvcArgs
    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 ccePvcResource = new Flexibleengine.CcePvc("ccePvcResource", new()
    {
        AccessModes = new[]
        {
            "string",
        },
        ClusterId = "string",
        Namespace = "string",
        Storage = "string",
        StorageClassName = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        CcePvcId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.CcePvcTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewCcePvc(ctx, "ccePvcResource", &flexibleengine.CcePvcArgs{
    	AccessModes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ClusterId:        pulumi.String("string"),
    	Namespace:        pulumi.String("string"),
    	Storage:          pulumi.String("string"),
    	StorageClassName: pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CcePvcId: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:   pulumi.String("string"),
    	Region: pulumi.String("string"),
    	Timeouts: &flexibleengine.CcePvcTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var ccePvcResource = new CcePvc("ccePvcResource", CcePvcArgs.builder()
        .accessModes("string")
        .clusterId("string")
        .namespace("string")
        .storage("string")
        .storageClassName("string")
        .annotations(Map.of("string", "string"))
        .ccePvcId("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .region("string")
        .timeouts(CcePvcTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    cce_pvc_resource = flexibleengine.CcePvc("ccePvcResource",
        access_modes=["string"],
        cluster_id="string",
        namespace="string",
        storage="string",
        storage_class_name="string",
        annotations={
            "string": "string",
        },
        cce_pvc_id="string",
        labels={
            "string": "string",
        },
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const ccePvcResource = new flexibleengine.CcePvc("ccePvcResource", {
        accessModes: ["string"],
        clusterId: "string",
        namespace: "string",
        storage: "string",
        storageClassName: "string",
        annotations: {
            string: "string",
        },
        ccePvcId: "string",
        labels: {
            string: "string",
        },
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: flexibleengine:CcePvc
    properties:
        accessModes:
            - string
        annotations:
            string: string
        ccePvcId: string
        clusterId: string
        labels:
            string: string
        name: string
        namespace: string
        region: string
        storage: string
        storageClassName: string
        timeouts:
            create: string
            delete: string
    

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

    AccessModes List<string>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    ClusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    Namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    Storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    StorageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    Annotations Dictionary<string, string>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    CcePvcId string
    The PVC ID in UUID format.
    Labels Dictionary<string, string>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    Name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    Region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    Timeouts CcePvcTimeouts
    AccessModes []string
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    ClusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    Namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    Storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    StorageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    Annotations map[string]string
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    CcePvcId string
    The PVC ID in UUID format.
    Labels map[string]string
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    Name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    Region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    Timeouts CcePvcTimeoutsArgs
    accessModes List<String>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    clusterId String
    Specifies the cluster ID to which the CCE PVC belongs.
    namespace String
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    storage String
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName String
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    annotations Map<String,String>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId String
    The PVC ID in UUID format.
    labels Map<String,String>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name String
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    region String
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    timeouts CcePvcTimeouts
    accessModes string[]
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    clusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    annotations {[key: string]: string}
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId string
    The PVC ID in UUID format.
    labels {[key: string]: string}
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    timeouts CcePvcTimeouts
    access_modes Sequence[str]
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    cluster_id str
    Specifies the cluster ID to which the CCE PVC belongs.
    namespace str
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    storage str
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storage_class_name str
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    annotations Mapping[str, str]
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    cce_pvc_id str
    The PVC ID in UUID format.
    labels Mapping[str, str]
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name str
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    region str
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    timeouts CcePvcTimeoutsArgs
    accessModes List<String>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    clusterId String
    Specifies the cluster ID to which the CCE PVC belongs.
    namespace String
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    storage String
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName String
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    annotations Map<String>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId String
    The PVC ID in UUID format.
    labels Map<String>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name String
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    region String
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    timeouts Property Map

    Outputs

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

    CreationTimestamp string
    The server time when PVC was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    CreationTimestamp string
    The server time when PVC was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    creationTimestamp String
    The server time when PVC was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    creationTimestamp string
    The server time when PVC was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    creation_timestamp str
    The server time when PVC was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    creationTimestamp String
    The server time when PVC was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.

    Look up Existing CcePvc Resource

    Get an existing CcePvc 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?: CcePvcState, opts?: CustomResourceOptions): CcePvc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_modes: Optional[Sequence[str]] = None,
            annotations: Optional[Mapping[str, str]] = None,
            cce_pvc_id: Optional[str] = None,
            cluster_id: Optional[str] = None,
            creation_timestamp: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            storage: Optional[str] = None,
            storage_class_name: Optional[str] = None,
            timeouts: Optional[CcePvcTimeoutsArgs] = None) -> CcePvc
    func GetCcePvc(ctx *Context, name string, id IDInput, state *CcePvcState, opts ...ResourceOption) (*CcePvc, error)
    public static CcePvc Get(string name, Input<string> id, CcePvcState? state, CustomResourceOptions? opts = null)
    public static CcePvc get(String name, Output<String> id, CcePvcState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:CcePvc    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:
    AccessModes List<string>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    Annotations Dictionary<string, string>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    CcePvcId string
    The PVC ID in UUID format.
    ClusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    CreationTimestamp string
    The server time when PVC was created.
    Labels Dictionary<string, string>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    Name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    Namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    Region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    Status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    Storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    StorageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    Timeouts CcePvcTimeouts
    AccessModes []string
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    Annotations map[string]string
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    CcePvcId string
    The PVC ID in UUID format.
    ClusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    CreationTimestamp string
    The server time when PVC was created.
    Labels map[string]string
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    Name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    Namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    Region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    Status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    Storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    StorageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    Timeouts CcePvcTimeoutsArgs
    accessModes List<String>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    annotations Map<String,String>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId String
    The PVC ID in UUID format.
    clusterId String
    Specifies the cluster ID to which the CCE PVC belongs.
    creationTimestamp String
    The server time when PVC was created.
    labels Map<String,String>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name String
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    namespace String
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    region String
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    status String
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    storage String
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName String
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    timeouts CcePvcTimeouts
    accessModes string[]
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    annotations {[key: string]: string}
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId string
    The PVC ID in UUID format.
    clusterId string
    Specifies the cluster ID to which the CCE PVC belongs.
    creationTimestamp string
    The server time when PVC was created.
    labels {[key: string]: string}
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name string
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    namespace string
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    region string
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    status string
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    storage string
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName string
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    timeouts CcePvcTimeouts
    access_modes Sequence[str]
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    annotations Mapping[str, str]
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    cce_pvc_id str
    The PVC ID in UUID format.
    cluster_id str
    Specifies the cluster ID to which the CCE PVC belongs.
    creation_timestamp str
    The server time when PVC was created.
    labels Mapping[str, str]
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name str
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    namespace str
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    region str
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    status str
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    storage str
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storage_class_name str
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    timeouts CcePvcTimeoutsArgs
    accessModes List<String>
    Specifies the desired access modes the volume should have. The valid values are as follows:

    • ReadWriteOnce: The volume can be mounted as read-write by a single node.
    • ReadOnlyMany: The volume can be mounted as read-only by many nodes.
    • ReadWriteMany: The volume can be mounted as read-write by many nodes.
    annotations Map<String>
    Specifies the unstructured key value map for external parameters. Changing this will create a new PVC resource.
    ccePvcId String
    The PVC ID in UUID format.
    clusterId String
    Specifies the cluster ID to which the CCE PVC belongs.
    creationTimestamp String
    The server time when PVC was created.
    labels Map<String>
    Specifies the map of string keys and values for labels. Changing this will create a new PVC resource.
    name String
    Specifies the unique name of the PVC resource. This parameter can contain a maximum of 63 characters, which may consist of lowercase letters, digits and hyphens (-), and must start and end with lowercase letters and digits. Changing this will create a new PVC resource.
    namespace String
    Specifies the namespace to logically divide your containers into different group. Changing this will create a new PVC resource.
    region String
    Specifies the region in which to create the PVC resource. If omitted, the provider-level region will be used. Changing this will create a new PVC resource.
    status String
    The current phase of the PVC.

    • Pending: Not yet bound.
    • Bound: Already bound.
    storage String
    Specifies the minimum amount of storage resources required. Changing this creates a new PVC resource.
    storageClassName String
    Specifies the type of the storage bound to the CCE PVC. The valid values are as follows:

    • csi-disk: EVS.
    • csi-obs: OBS.
    • csi-nas: SFS.
    • csi-sfsturbo: SFS-Turbo.
    timeouts Property Map

    Supporting Types

    CcePvcTimeouts, CcePvcTimeoutsArgs

    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

    CCE PVC can be imported using the cluster ID, namespace name and PVC ID separated by a slash, e.g.

    $ pulumi import flexibleengine:index/ccePvc:CcePvc test <cluster_id>/<namespace_name>/<id>
    
    $ pulumi import flexibleengine:index/ccePvc:CcePvc test 5c20fdad-7288-11eb-b817-0255ac10158b/default/fa540f3b-12d9-40e5-8268-04bcfed95a46
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: annotations.

    It is generally recommended running pulumi preview after importing a PVC.

    You can then decide if changes should be applied to the PVC, or the resource

    definition should be updated to align with the PVC. Also you can ignore changes as below.

    hcl

    resource “flexibleengine_cce_pvc” “test” {

    ...
    

    lifecycle {

    ignore_changes = [
    
      annotations,
    
    ]
    

    }

    }

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud