published on Thursday, Aug 6, 2026 by g-core
published on Thursday, Aug 6, 2026 by g-core
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudVolumeSnapshot = new gcore.CloudVolumeSnapshot("example_cloud_volume_snapshot", {
projectId: 1,
regionId: 1,
name: "my-snapshot",
volumeId: "67baa7d1-08ea-4fc5-bef2-6b2465b7d227",
description: "Snapshot description",
tags: {
"my-tag": "my-tag-value",
},
});
import pulumi
import pulumi_gcore as gcore
example_cloud_volume_snapshot = gcore.CloudVolumeSnapshot("example_cloud_volume_snapshot",
project_id=1,
region_id=1,
name="my-snapshot",
volume_id="67baa7d1-08ea-4fc5-bef2-6b2465b7d227",
description="Snapshot description",
tags={
"my-tag": "my-tag-value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewCloudVolumeSnapshot(ctx, "example_cloud_volume_snapshot", &gcore.CloudVolumeSnapshotArgs{
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Name: pulumi.String("my-snapshot"),
VolumeId: pulumi.String("67baa7d1-08ea-4fc5-bef2-6b2465b7d227"),
Description: pulumi.String("Snapshot description"),
Tags: pulumi.StringMap{
"my-tag": pulumi.String("my-tag-value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCloudVolumeSnapshot = new Gcore.CloudVolumeSnapshot("example_cloud_volume_snapshot", new()
{
ProjectId = 1,
RegionId = 1,
Name = "my-snapshot",
VolumeId = "67baa7d1-08ea-4fc5-bef2-6b2465b7d227",
Description = "Snapshot description",
Tags =
{
{ "my-tag", "my-tag-value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CloudVolumeSnapshot;
import com.pulumi.gcore.CloudVolumeSnapshotArgs;
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 exampleCloudVolumeSnapshot = new CloudVolumeSnapshot("exampleCloudVolumeSnapshot", CloudVolumeSnapshotArgs.builder()
.projectId(1.0)
.regionId(1.0)
.name("my-snapshot")
.volumeId("67baa7d1-08ea-4fc5-bef2-6b2465b7d227")
.description("Snapshot description")
.tags(Map.of("my-tag", "my-tag-value"))
.build());
}
}
resources:
exampleCloudVolumeSnapshot:
type: gcore:CloudVolumeSnapshot
name: example_cloud_volume_snapshot
properties:
projectId: 1
regionId: 1
name: my-snapshot
volumeId: 67baa7d1-08ea-4fc5-bef2-6b2465b7d227
description: Snapshot description
tags:
my-tag: my-tag-value
Example coming soon!
Create CloudVolumeSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudVolumeSnapshot(name: string, args: CloudVolumeSnapshotArgs, opts?: CustomResourceOptions);@overload
def CloudVolumeSnapshot(resource_name: str,
args: CloudVolumeSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudVolumeSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
volume_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None)func NewCloudVolumeSnapshot(ctx *Context, name string, args CloudVolumeSnapshotArgs, opts ...ResourceOption) (*CloudVolumeSnapshot, error)public CloudVolumeSnapshot(string name, CloudVolumeSnapshotArgs args, CustomResourceOptions? opts = null)
public CloudVolumeSnapshot(String name, CloudVolumeSnapshotArgs args)
public CloudVolumeSnapshot(String name, CloudVolumeSnapshotArgs args, CustomResourceOptions options)
type: gcore:CloudVolumeSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcore_cloud_volume_snapshot" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudVolumeSnapshotArgs
- 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 CloudVolumeSnapshotArgs
- 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 CloudVolumeSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudVolumeSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudVolumeSnapshotArgs
- 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 cloudVolumeSnapshotResource = new Gcore.CloudVolumeSnapshot("cloudVolumeSnapshotResource", new()
{
VolumeId = "string",
Description = "string",
Name = "string",
ProjectId = 0,
RegionId = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := gcore.NewCloudVolumeSnapshot(ctx, "cloudVolumeSnapshotResource", &gcore.CloudVolumeSnapshotArgs{
VolumeId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.Float64(0),
RegionId: pulumi.Float64(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "gcore_cloud_volume_snapshot" "cloudVolumeSnapshotResource" {
lifecycle {
create_before_destroy = true
}
volume_id = "string"
description = "string"
name = "string"
project_id = 0
region_id = 0
tags = {
"string" = "string"
}
}
var cloudVolumeSnapshotResource = new CloudVolumeSnapshot("cloudVolumeSnapshotResource", CloudVolumeSnapshotArgs.builder()
.volumeId("string")
.description("string")
.name("string")
.projectId(0.0)
.regionId(0.0)
.tags(Map.of("string", "string"))
.build());
cloud_volume_snapshot_resource = gcore.CloudVolumeSnapshot("cloudVolumeSnapshotResource",
volume_id="string",
description="string",
name="string",
project_id=float(0),
region_id=float(0),
tags={
"string": "string",
})
const cloudVolumeSnapshotResource = new gcore.CloudVolumeSnapshot("cloudVolumeSnapshotResource", {
volumeId: "string",
description: "string",
name: "string",
projectId: 0,
regionId: 0,
tags: {
string: "string",
},
});
type: gcore:CloudVolumeSnapshot
properties:
description: string
name: string
projectId: 0
regionId: 0
tags:
string: string
volumeId: string
CloudVolumeSnapshot 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 CloudVolumeSnapshot resource accepts the following input properties:
- Volume
Id string - Volume ID to make snapshot of
- Description string
- Snapshot description
- Name string
- Snapshot name
- Project
Id double - Project ID
- Region
Id double - Region ID
- Dictionary<string, string>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Volume
Id string - Volume ID to make snapshot of
- Description string
- Snapshot description
- Name string
- Snapshot name
- Project
Id float64 - Project ID
- Region
Id float64 - Region ID
- map[string]string
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- volume_
id string - Volume ID to make snapshot of
- description string
- Snapshot description
- name string
- Snapshot name
- project_
id number - Project ID
- region_
id number - Region ID
- map(string)
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- volume
Id String - Volume ID to make snapshot of
- description String
- Snapshot description
- name String
- Snapshot name
- project
Id Double - Project ID
- region
Id Double - Region ID
- Map<String,String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- volume
Id string - Volume ID to make snapshot of
- description string
- Snapshot description
- name string
- Snapshot name
- project
Id number - Project ID
- region
Id number - Region ID
- {[key: string]: string}
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- volume_
id str - Volume ID to make snapshot of
- description str
- Snapshot description
- name str
- Snapshot name
- project_
id float - Project ID
- region_
id float - Region ID
- Mapping[str, str]
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- volume
Id String - Volume ID to make snapshot of
- description String
- Snapshot description
- name String
- Snapshot name
- project
Id Number - Project ID
- region
Id Number - Region ID
- Map<String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudVolumeSnapshot resource produces the following output properties:
- Created
At string - Datetime when the snapshot was created
- Creator
Task stringId - Task that created this entity
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region name
- Size double
- Snapshot size, GiB
- Status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Updated
At string - Datetime when the snapshot was last updated
- Created
At string - Datetime when the snapshot was created
- Creator
Task stringId - Task that created this entity
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Region name
- Size float64
- Snapshot size, GiB
- Status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Updated
At string - Datetime when the snapshot was last updated
- created_
at string - Datetime when the snapshot was created
- creator_
task_ stringid - Task that created this entity
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region name
- size number
- Snapshot size, GiB
- status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- updated_
at string - Datetime when the snapshot was last updated
- created
At String - Datetime when the snapshot was created
- creator
Task StringId - Task that created this entity
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region name
- size Double
- Snapshot size, GiB
- status String
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- updated
At String - Datetime when the snapshot was last updated
- created
At string - Datetime when the snapshot was created
- creator
Task stringId - Task that created this entity
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- Region name
- size number
- Snapshot size, GiB
- status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- updated
At string - Datetime when the snapshot was last updated
- created_
at str - Datetime when the snapshot was created
- creator_
task_ strid - Task that created this entity
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- Region name
- size float
- Snapshot size, GiB
- status str
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- updated_
at str - Datetime when the snapshot was last updated
- created
At String - Datetime when the snapshot was created
- creator
Task StringId - Task that created this entity
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- Region name
- size Number
- Snapshot size, GiB
- status String
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- updated
At String - Datetime when the snapshot was last updated
Look up Existing CloudVolumeSnapshot Resource
Get an existing CloudVolumeSnapshot 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?: CloudVolumeSnapshotState, opts?: CustomResourceOptions): CloudVolumeSnapshot@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
creator_task_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
region: Optional[str] = None,
region_id: Optional[float] = None,
size: Optional[float] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
updated_at: Optional[str] = None,
volume_id: Optional[str] = None) -> CloudVolumeSnapshotfunc GetCloudVolumeSnapshot(ctx *Context, name string, id IDInput, state *CloudVolumeSnapshotState, opts ...ResourceOption) (*CloudVolumeSnapshot, error)public static CloudVolumeSnapshot Get(string name, Input<string> id, CloudVolumeSnapshotState? state, CustomResourceOptions? opts = null)public static CloudVolumeSnapshot get(String name, Output<String> id, CloudVolumeSnapshotState state, CustomResourceOptions options)resources: _: type: gcore:CloudVolumeSnapshot get: id: ${id}import {
to = gcore_cloud_volume_snapshot.example
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.
- Created
At string - Datetime when the snapshot was created
- Creator
Task stringId - Task that created this entity
- Description string
- Snapshot description
- Name string
- Snapshot name
- Project
Id double - Project ID
- Region string
- Region name
- Region
Id double - Region ID
- Size double
- Snapshot size, GiB
- Status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Dictionary<string, string>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Updated
At string - Datetime when the snapshot was last updated
- Volume
Id string - Volume ID to make snapshot of
- Created
At string - Datetime when the snapshot was created
- Creator
Task stringId - Task that created this entity
- Description string
- Snapshot description
- Name string
- Snapshot name
- Project
Id float64 - Project ID
- Region string
- Region name
- Region
Id float64 - Region ID
- Size float64
- Snapshot size, GiB
- Status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- map[string]string
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Updated
At string - Datetime when the snapshot was last updated
- Volume
Id string - Volume ID to make snapshot of
- created_
at string - Datetime when the snapshot was created
- creator_
task_ stringid - Task that created this entity
- description string
- Snapshot description
- name string
- Snapshot name
- project_
id number - Project ID
- region string
- Region name
- region_
id number - Region ID
- size number
- Snapshot size, GiB
- status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- map(string)
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- updated_
at string - Datetime when the snapshot was last updated
- volume_
id string - Volume ID to make snapshot of
- created
At String - Datetime when the snapshot was created
- creator
Task StringId - Task that created this entity
- description String
- Snapshot description
- name String
- Snapshot name
- project
Id Double - Project ID
- region String
- Region name
- region
Id Double - Region ID
- size Double
- Snapshot size, GiB
- status String
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Map<String,String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- updated
At String - Datetime when the snapshot was last updated
- volume
Id String - Volume ID to make snapshot of
- created
At string - Datetime when the snapshot was created
- creator
Task stringId - Task that created this entity
- description string
- Snapshot description
- name string
- Snapshot name
- project
Id number - Project ID
- region string
- Region name
- region
Id number - Region ID
- size number
- Snapshot size, GiB
- status string
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- {[key: string]: string}
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- updated
At string - Datetime when the snapshot was last updated
- volume
Id string - Volume ID to make snapshot of
- created_
at str - Datetime when the snapshot was created
- creator_
task_ strid - Task that created this entity
- description str
- Snapshot description
- name str
- Snapshot name
- project_
id float - Project ID
- region str
- Region name
- region_
id float - Region ID
- size float
- Snapshot size, GiB
- status str
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Mapping[str, str]
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- updated_
at str - Datetime when the snapshot was last updated
- volume_
id str - Volume ID to make snapshot of
- created
At String - Datetime when the snapshot was created
- creator
Task StringId - Task that created this entity
- description String
- Snapshot description
- name String
- Snapshot name
- project
Id Number - Project ID
- region String
- Region name
- region
Id Number - Region ID
- size Number
- Snapshot size, GiB
- status String
- Snapshot status Available values: "available", "backing-up", "creating", "deleted", "deleting", "error", "error_deleting", "restoring", "unmanaging".
- Map<String>
- Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Both tag keys and values have a maximum length of 255 characters. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- updated
At String - Datetime when the snapshot was last updated
- volume
Id String - Volume ID to make snapshot of
Import
The pulumi import command can be used, for example:
$ pulumi import gcore:index/cloudVolumeSnapshot:CloudVolumeSnapshot example '<project_id>/<region_id>/<snapshot_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Thursday, Aug 6, 2026 by g-core