1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. Volume
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.Volume

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    A volume is a detachable block storage device akin to a USB hard drive or SSD, but located remotely in the cloud. Volumes can be attached to a virtual machine and manipulated like a physical hard drive.

    The disc type “infra_ssd” is an internal type of EdgeCenter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const volume = new edgecenter.Volume("volume", {
        metadataMap: {
            tag1: "tag1_value",
        },
        projectId: 1,
        regionId: 1,
        size: 1,
        typeName: "standard",
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    volume = edgecenter.Volume("volume",
        metadata_map={
            "tag1": "tag1_value",
        },
        project_id=1,
        region_id=1,
        size=1,
        type_name="standard")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewVolume(ctx, "volume", &edgecenter.VolumeArgs{
    			MetadataMap: pulumi.StringMap{
    				"tag1": pulumi.String("tag1_value"),
    			},
    			ProjectId: pulumi.Float64(1),
    			RegionId:  pulumi.Float64(1),
    			Size:      pulumi.Float64(1),
    			TypeName:  pulumi.String("standard"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new Edgecenter.Volume("volume", new()
        {
            MetadataMap = 
            {
                { "tag1", "tag1_value" },
            },
            ProjectId = 1,
            RegionId = 1,
            Size = 1,
            TypeName = "standard",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.Volume;
    import com.pulumi.edgecenter.VolumeArgs;
    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) {
            var volume = new Volume("volume", VolumeArgs.builder()
                .metadataMap(Map.of("tag1", "tag1_value"))
                .projectId(1)
                .regionId(1)
                .size(1)
                .typeName("standard")
                .build());
    
        }
    }
    
    resources:
      volume:
        type: edgecenter:Volume
        properties:
          metadataMap:
            tag1: tag1_value
          projectId: 1
          regionId: 1
          size: 1
          typeName: standard
    

    Create Volume Resource

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

    Constructor syntax

    new Volume(name: string, args?: VolumeArgs, opts?: CustomResourceOptions);
    @overload
    def Volume(resource_name: str,
               args: Optional[VolumeArgs] = None,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Volume(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               image_id: Optional[str] = None,
               last_updated: Optional[str] = None,
               metadata_map: Optional[Mapping[str, str]] = None,
               name: Optional[str] = None,
               project_id: Optional[float] = None,
               project_name: Optional[str] = None,
               region_id: Optional[float] = None,
               region_name: Optional[str] = None,
               size: Optional[float] = None,
               snapshot_id: Optional[str] = None,
               type_name: Optional[str] = None,
               volume_id: Optional[str] = None)
    func NewVolume(ctx *Context, name string, args *VolumeArgs, opts ...ResourceOption) (*Volume, error)
    public Volume(string name, VolumeArgs? args = null, CustomResourceOptions? opts = null)
    public Volume(String name, VolumeArgs args)
    public Volume(String name, VolumeArgs args, CustomResourceOptions options)
    
    type: edgecenter:Volume
    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 VolumeArgs
    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 VolumeArgs
    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 VolumeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeArgs
    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 volumeResource = new Edgecenter.Volume("volumeResource", new()
    {
        ImageId = "string",
        LastUpdated = "string",
        MetadataMap = 
        {
            { "string", "string" },
        },
        Name = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
        Size = 0,
        SnapshotId = "string",
        TypeName = "string",
        VolumeId = "string",
    });
    
    example, err := edgecenter.NewVolume(ctx, "volumeResource", &edgecenter.VolumeArgs{
    	ImageId:     pulumi.String("string"),
    	LastUpdated: pulumi.String("string"),
    	MetadataMap: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:        pulumi.String("string"),
    	ProjectId:   pulumi.Float64(0),
    	ProjectName: pulumi.String("string"),
    	RegionId:    pulumi.Float64(0),
    	RegionName:  pulumi.String("string"),
    	Size:        pulumi.Float64(0),
    	SnapshotId:  pulumi.String("string"),
    	TypeName:    pulumi.String("string"),
    	VolumeId:    pulumi.String("string"),
    })
    
    var volumeResource = new Volume("volumeResource", VolumeArgs.builder()
        .imageId("string")
        .lastUpdated("string")
        .metadataMap(Map.of("string", "string"))
        .name("string")
        .projectId(0)
        .projectName("string")
        .regionId(0)
        .regionName("string")
        .size(0)
        .snapshotId("string")
        .typeName("string")
        .volumeId("string")
        .build());
    
    volume_resource = edgecenter.Volume("volumeResource",
        image_id="string",
        last_updated="string",
        metadata_map={
            "string": "string",
        },
        name="string",
        project_id=0,
        project_name="string",
        region_id=0,
        region_name="string",
        size=0,
        snapshot_id="string",
        type_name="string",
        volume_id="string")
    
    const volumeResource = new edgecenter.Volume("volumeResource", {
        imageId: "string",
        lastUpdated: "string",
        metadataMap: {
            string: "string",
        },
        name: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
        size: 0,
        snapshotId: "string",
        typeName: "string",
        volumeId: "string",
    });
    
    type: edgecenter:Volume
    properties:
        imageId: string
        lastUpdated: string
        metadataMap:
            string: string
        name: string
        projectId: 0
        projectName: string
        regionId: 0
        regionName: string
        size: 0
        snapshotId: string
        typeName: string
        volumeId: string
    

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

    ImageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap Dictionary<string, string>
    A map containing metadata, for example tags.
    Name string
    The name of the volume.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Size double
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    SnapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    TypeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    VolumeId string
    The ID of this resource.
    ImageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap map[string]string
    A map containing metadata, for example tags.
    Name string
    The name of the volume.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Size float64
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    SnapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    TypeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    VolumeId string
    The ID of this resource.
    imageId String
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String,String>
    A map containing metadata, for example tags.
    name String
    The name of the volume.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size Double
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId String
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName String
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId String
    The ID of this resource.
    imageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated string
    The timestamp of the last update (use with update context).
    metadataMap {[key: string]: string}
    A map containing metadata, for example tags.
    name string
    The name of the volume.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size number
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId string
    The ID of this resource.
    image_id str
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    last_updated str
    The timestamp of the last update (use with update context).
    metadata_map Mapping[str, str]
    A map containing metadata, for example tags.
    name str
    The name of the volume.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size float
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshot_id str
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    type_name str
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volume_id str
    The ID of this resource.
    imageId String
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String>
    A map containing metadata, for example tags.
    name String
    The name of the volume.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size Number
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId String
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName String
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId String
    The ID of this resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataReadOnlies List<VolumeMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetadataReadOnlies []VolumeMetadataReadOnly
    A list of read-only metadata items, e.g. tags.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies List<VolumeMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    id string
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies VolumeMetadataReadOnly[]
    A list of read-only metadata items, e.g. tags.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata_read_onlies Sequence[VolumeMetadataReadOnly]
    A list of read-only metadata items, e.g. tags.
    id String
    The provider-assigned unique ID for this managed resource.
    metadataReadOnlies List<Property Map>
    A list of read-only metadata items, e.g. tags.

    Look up Existing Volume Resource

    Get an existing Volume 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?: VolumeState, opts?: CustomResourceOptions): Volume
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            image_id: Optional[str] = None,
            last_updated: Optional[str] = None,
            metadata_map: Optional[Mapping[str, str]] = None,
            metadata_read_onlies: Optional[Sequence[VolumeMetadataReadOnlyArgs]] = None,
            name: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None,
            size: Optional[float] = None,
            snapshot_id: Optional[str] = None,
            type_name: Optional[str] = None,
            volume_id: Optional[str] = None) -> Volume
    func GetVolume(ctx *Context, name string, id IDInput, state *VolumeState, opts ...ResourceOption) (*Volume, error)
    public static Volume Get(string name, Input<string> id, VolumeState? state, CustomResourceOptions? opts = null)
    public static Volume get(String name, Output<String> id, VolumeState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:Volume    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:
    ImageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap Dictionary<string, string>
    A map containing metadata, for example tags.
    MetadataReadOnlies List<VolumeMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    Name string
    The name of the volume.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Size double
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    SnapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    TypeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    VolumeId string
    The ID of this resource.
    ImageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    LastUpdated string
    The timestamp of the last update (use with update context).
    MetadataMap map[string]string
    A map containing metadata, for example tags.
    MetadataReadOnlies []VolumeMetadataReadOnlyArgs
    A list of read-only metadata items, e.g. tags.
    Name string
    The name of the volume.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Size float64
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    SnapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    TypeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    VolumeId string
    The ID of this resource.
    imageId String
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String,String>
    A map containing metadata, for example tags.
    metadataReadOnlies List<VolumeMetadataReadOnly>
    A list of read-only metadata items, e.g. tags.
    name String
    The name of the volume.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size Double
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId String
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName String
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId String
    The ID of this resource.
    imageId string
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated string
    The timestamp of the last update (use with update context).
    metadataMap {[key: string]: string}
    A map containing metadata, for example tags.
    metadataReadOnlies VolumeMetadataReadOnly[]
    A list of read-only metadata items, e.g. tags.
    name string
    The name of the volume.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size number
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId string
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName string
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId string
    The ID of this resource.
    image_id str
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    last_updated str
    The timestamp of the last update (use with update context).
    metadata_map Mapping[str, str]
    A map containing metadata, for example tags.
    metadata_read_onlies Sequence[VolumeMetadataReadOnlyArgs]
    A list of read-only metadata items, e.g. tags.
    name str
    The name of the volume.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size float
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshot_id str
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    type_name str
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volume_id str
    The ID of this resource.
    imageId String
    (ForceNew) The ID of the image to create the volume from. This field is mandatory if creating a volume from an image.
    lastUpdated String
    The timestamp of the last update (use with update context).
    metadataMap Map<String>
    A map containing metadata, for example tags.
    metadataReadOnlies List<Property Map>
    A list of read-only metadata items, e.g. tags.
    name String
    The name of the volume.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    size Number
    The size of the volume, specified in gigabytes (GB). Optional when creating from an image (will use the image's size). Mandatory if not creating from a snapshot or image. Must be greater than the current size when updating.
    snapshotId String
    (ForceNew) The ID of the snapshot to create the volume from. This field is mandatory if creating a volume from a snapshot.
    typeName String
    The type of volume to create. Valid values are 'ssdhiiops', 'standard', 'cold', 'infrassd' and 'ultra'. Defaults to 'standard' if not specified.
    volumeId String
    The ID of this resource.

    Supporting Types

    VolumeMetadataReadOnly, VolumeMetadataReadOnlyArgs

    Key string
    ReadOnly bool
    Value string
    Key string
    ReadOnly bool
    Value string
    key String
    readOnly Boolean
    value String
    key string
    readOnly boolean
    value string
    key str
    read_only bool
    value str
    key String
    readOnly Boolean
    value String

    Import

    import using <project_id>:<region_id>:<volume_id> format

    $ pulumi import edgecenter:index/volume:Volume volume1 1:6:447d2959-8ae0-4ca0-8d47-9f050a3637d7
    

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center