1. Packages
  2. Scaleway
  3. API Docs
  4. instance
  5. Snapshot
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.instance.Snapshot

Explore with Pulumi AI

Creates and manages Scaleway Compute Snapshots. For more information, see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.instance.Snapshot("main", {
    name: "some-snapshot-name",
    volumeId: "11111111-1111-1111-1111-111111111111",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.instance.Snapshot("main",
    name="some-snapshot-name",
    volume_id="11111111-1111-1111-1111-111111111111")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := instance.NewSnapshot(ctx, "main", &instance.SnapshotArgs{
			Name:     pulumi.String("some-snapshot-name"),
			VolumeId: pulumi.String("11111111-1111-1111-1111-111111111111"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Instance.Snapshot("main", new()
    {
        Name = "some-snapshot-name",
        VolumeId = "11111111-1111-1111-1111-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.instance.Snapshot;
import com.pulumi.scaleway.instance.SnapshotArgs;
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 main = new Snapshot("main", SnapshotArgs.builder()
            .name("some-snapshot-name")
            .volumeId("11111111-1111-1111-1111-111111111111")
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:instance:Snapshot
    properties:
      name: some-snapshot-name
      volumeId: 11111111-1111-1111-1111-111111111111
Copy

Example with Unified type snapshot

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.instance.Volume("main", {
    type: "l_ssd",
    sizeInGb: 10,
});
const mainServer = new scaleway.instance.Server("main", {
    image: "ubuntu_jammy",
    type: "DEV1-S",
    rootVolume: {
        sizeInGb: 10,
        volumeType: "l_ssd",
    },
    additionalVolumeIds: [main.id],
});
const mainSnapshot = new scaleway.instance.Snapshot("main", {
    volumeId: main.id,
    type: "unified",
}, {
    dependsOn: [mainServer],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.instance.Volume("main",
    type="l_ssd",
    size_in_gb=10)
main_server = scaleway.instance.Server("main",
    image="ubuntu_jammy",
    type="DEV1-S",
    root_volume={
        "size_in_gb": 10,
        "volume_type": "l_ssd",
    },
    additional_volume_ids=[main.id])
main_snapshot = scaleway.instance.Snapshot("main",
    volume_id=main.id,
    type="unified",
    opts = pulumi.ResourceOptions(depends_on=[main_server]))
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := instance.NewVolume(ctx, "main", &instance.VolumeArgs{
			Type:     pulumi.String("l_ssd"),
			SizeInGb: pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		mainServer, err := instance.NewServer(ctx, "main", &instance.ServerArgs{
			Image: pulumi.String("ubuntu_jammy"),
			Type:  pulumi.String("DEV1-S"),
			RootVolume: &instance.ServerRootVolumeArgs{
				SizeInGb:   pulumi.Int(10),
				VolumeType: pulumi.String("l_ssd"),
			},
			AdditionalVolumeIds: pulumi.StringArray{
				main.ID(),
			},
		})
		if err != nil {
			return err
		}
		_, err = instance.NewSnapshot(ctx, "main", &instance.SnapshotArgs{
			VolumeId: main.ID(),
			Type:     pulumi.String("unified"),
		}, pulumi.DependsOn([]pulumi.Resource{
			mainServer,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Instance.Volume("main", new()
    {
        Type = "l_ssd",
        SizeInGb = 10,
    });

    var mainServer = new Scaleway.Instance.Server("main", new()
    {
        Image = "ubuntu_jammy",
        Type = "DEV1-S",
        RootVolume = new Scaleway.Instance.Inputs.ServerRootVolumeArgs
        {
            SizeInGb = 10,
            VolumeType = "l_ssd",
        },
        AdditionalVolumeIds = new[]
        {
            main.Id,
        },
    });

    var mainSnapshot = new Scaleway.Instance.Snapshot("main", new()
    {
        VolumeId = main.Id,
        Type = "unified",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            mainServer,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.instance.Volume;
import com.pulumi.scaleway.instance.VolumeArgs;
import com.pulumi.scaleway.instance.Server;
import com.pulumi.scaleway.instance.ServerArgs;
import com.pulumi.scaleway.instance.inputs.ServerRootVolumeArgs;
import com.pulumi.scaleway.instance.Snapshot;
import com.pulumi.scaleway.instance.SnapshotArgs;
import com.pulumi.resources.CustomResourceOptions;
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 main = new Volume("main", VolumeArgs.builder()
            .type("l_ssd")
            .sizeInGb(10)
            .build());

        var mainServer = new Server("mainServer", ServerArgs.builder()
            .image("ubuntu_jammy")
            .type("DEV1-S")
            .rootVolume(ServerRootVolumeArgs.builder()
                .sizeInGb(10)
                .volumeType("l_ssd")
                .build())
            .additionalVolumeIds(main.id())
            .build());

        var mainSnapshot = new Snapshot("mainSnapshot", SnapshotArgs.builder()
            .volumeId(main.id())
            .type("unified")
            .build(), CustomResourceOptions.builder()
                .dependsOn(mainServer)
                .build());

    }
}
Copy
resources:
  main:
    type: scaleway:instance:Volume
    properties:
      type: l_ssd
      sizeInGb: 10
  mainServer:
    type: scaleway:instance:Server
    name: main
    properties:
      image: ubuntu_jammy
      type: DEV1-S
      rootVolume:
        sizeInGb: 10
        volumeType: l_ssd
      additionalVolumeIds:
        - ${main.id}
  mainSnapshot:
    type: scaleway:instance:Snapshot
    name: main
    properties:
      volumeId: ${main.id}
      type: unified
    options:
      dependsOn:
        - ${mainServer}
Copy

Example importing a local qcow2 file

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const bucket = new scaleway.object.Bucket("bucket", {name: "snapshot-qcow-import"});
const qcow = new scaleway.object.Item("qcow", {
    bucket: bucket.name,
    key: "server.qcow2",
    file: "myqcow.qcow2",
});
const snapshot = new scaleway.instance.Snapshot("snapshot", {
    type: "unified",
    "import": {
        bucket: qcow.bucket,
        key: qcow.key,
    },
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

bucket = scaleway.object.Bucket("bucket", name="snapshot-qcow-import")
qcow = scaleway.object.Item("qcow",
    bucket=bucket.name,
    key="server.qcow2",
    file="myqcow.qcow2")
snapshot = scaleway.instance.Snapshot("snapshot",
    type="unified",
    import_={
        "bucket": qcow.bucket,
        "key": qcow.key,
    })
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/object"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bucket, err := object.NewBucket(ctx, "bucket", &object.BucketArgs{
			Name: pulumi.String("snapshot-qcow-import"),
		})
		if err != nil {
			return err
		}
		qcow, err := object.NewItem(ctx, "qcow", &object.ItemArgs{
			Bucket: bucket.Name,
			Key:    pulumi.String("server.qcow2"),
			File:   pulumi.String("myqcow.qcow2"),
		})
		if err != nil {
			return err
		}
		_, err = instance.NewSnapshot(ctx, "snapshot", &instance.SnapshotArgs{
			Type: pulumi.String("unified"),
			Import: &instance.SnapshotImportArgs{
				Bucket: qcow.Bucket,
				Key:    qcow.Key,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var bucket = new Scaleway.Object.Bucket("bucket", new()
    {
        Name = "snapshot-qcow-import",
    });

    var qcow = new Scaleway.Object.Item("qcow", new()
    {
        Bucket = bucket.Name,
        Key = "server.qcow2",
        File = "myqcow.qcow2",
    });

    var snapshot = new Scaleway.Instance.Snapshot("snapshot", new()
    {
        Type = "unified",
        Import = new Scaleway.Instance.Inputs.SnapshotImportArgs
        {
            Bucket = qcow.Bucket,
            Key = qcow.Key,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.object.Bucket;
import com.pulumi.scaleway.object.BucketArgs;
import com.pulumi.scaleway.object.Item;
import com.pulumi.scaleway.object.ItemArgs;
import com.pulumi.scaleway.instance.Snapshot;
import com.pulumi.scaleway.instance.SnapshotArgs;
import com.pulumi.scaleway.instance.inputs.SnapshotImportArgs;
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 bucket = new Bucket("bucket", BucketArgs.builder()
            .name("snapshot-qcow-import")
            .build());

        var qcow = new Item("qcow", ItemArgs.builder()
            .bucket(bucket.name())
            .key("server.qcow2")
            .file("myqcow.qcow2")
            .build());

        var snapshot = new Snapshot("snapshot", SnapshotArgs.builder()
            .type("unified")
            .import_(SnapshotImportArgs.builder()
                .bucket(qcow.bucket())
                .key(qcow.key())
                .build())
            .build());

    }
}
Copy
resources:
  bucket:
    type: scaleway:object:Bucket
    properties:
      name: snapshot-qcow-import
  qcow:
    type: scaleway:object:Item
    properties:
      bucket: ${bucket.name}
      key: server.qcow2
      file: myqcow.qcow2
  snapshot:
    type: scaleway:instance:Snapshot
    properties:
      type: unified
      import:
        bucket: ${qcow.bucket}
        key: ${qcow.key}
Copy

Create Snapshot Resource

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

Constructor syntax

new Snapshot(name: string, args?: SnapshotArgs, opts?: CustomResourceOptions);
@overload
def Snapshot(resource_name: str,
             args: Optional[SnapshotArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def Snapshot(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             import_: Optional[SnapshotImportArgs] = None,
             name: Optional[str] = None,
             project_id: Optional[str] = None,
             tags: Optional[Sequence[str]] = None,
             type: Optional[str] = None,
             volume_id: Optional[str] = None,
             zone: Optional[str] = None)
func NewSnapshot(ctx *Context, name string, args *SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)
public Snapshot(string name, SnapshotArgs? args = null, CustomResourceOptions? opts = null)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: scaleway:instance:Snapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SnapshotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SnapshotArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SnapshotArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SnapshotArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SnapshotArgs
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 examplesnapshotResourceResourceFromInstancesnapshot = new Scaleway.Instance.Snapshot("examplesnapshotResourceResourceFromInstancesnapshot", new()
{
    Import = new Scaleway.Instance.Inputs.SnapshotImportArgs
    {
        Bucket = "string",
        Key = "string",
    },
    Name = "string",
    ProjectId = "string",
    Tags = new[]
    {
        "string",
    },
    Type = "string",
    VolumeId = "string",
    Zone = "string",
});
Copy
example, err := instance.NewSnapshot(ctx, "examplesnapshotResourceResourceFromInstancesnapshot", &instance.SnapshotArgs{
	Import: &instance.SnapshotImportArgs{
		Bucket: pulumi.String("string"),
		Key:    pulumi.String("string"),
	},
	Name:      pulumi.String("string"),
	ProjectId: pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Type:     pulumi.String("string"),
	VolumeId: pulumi.String("string"),
	Zone:     pulumi.String("string"),
})
Copy
var examplesnapshotResourceResourceFromInstancesnapshot = new Snapshot("examplesnapshotResourceResourceFromInstancesnapshot", SnapshotArgs.builder()
    .import_(SnapshotImportArgs.builder()
        .bucket("string")
        .key("string")
        .build())
    .name("string")
    .projectId("string")
    .tags("string")
    .type("string")
    .volumeId("string")
    .zone("string")
    .build());
Copy
examplesnapshot_resource_resource_from_instancesnapshot = scaleway.instance.Snapshot("examplesnapshotResourceResourceFromInstancesnapshot",
    import_={
        "bucket": "string",
        "key": "string",
    },
    name="string",
    project_id="string",
    tags=["string"],
    type="string",
    volume_id="string",
    zone="string")
Copy
const examplesnapshotResourceResourceFromInstancesnapshot = new scaleway.instance.Snapshot("examplesnapshotResourceResourceFromInstancesnapshot", {
    "import": {
        bucket: "string",
        key: "string",
    },
    name: "string",
    projectId: "string",
    tags: ["string"],
    type: "string",
    volumeId: "string",
    zone: "string",
});
Copy
type: scaleway:instance:Snapshot
properties:
    import:
        bucket: string
        key: string
    name: string
    projectId: string
    tags:
        - string
    type: string
    volumeId: string
    zone: string
Copy

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

Import Changes to this property will trigger replacement. Pulumiverse.Scaleway.Instance.Inputs.SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
Name string
The name of the snapshot. If not provided it will be randomly generated.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
Tags List<string>
A list of tags to apply to the snapshot.
Type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
VolumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
Import Changes to this property will trigger replacement. SnapshotImportArgs
Import a snapshot from a qcow2 file located in a bucket
Name string
The name of the snapshot. If not provided it will be randomly generated.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
Tags []string
A list of tags to apply to the snapshot.
Type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
VolumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
import_ Changes to this property will trigger replacement. SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
name String
The name of the snapshot. If not provided it will be randomly generated.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the snapshot is associated with.
tags List<String>
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. String
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. String
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. String
zone) The zone in which the snapshot should be created.
import Changes to this property will trigger replacement. SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
name string
The name of the snapshot. If not provided it will be randomly generated.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
tags string[]
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
import_ Changes to this property will trigger replacement. SnapshotImportArgs
Import a snapshot from a qcow2 file located in a bucket
name str
The name of the snapshot. If not provided it will be randomly generated.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the snapshot is associated with.
tags Sequence[str]
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. str
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volume_id Changes to this property will trigger replacement. str
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. str
zone) The zone in which the snapshot should be created.
import Changes to this property will trigger replacement. Property Map
Import a snapshot from a qcow2 file located in a bucket
name String
The name of the snapshot. If not provided it will be randomly generated.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the snapshot is associated with.
tags List<String>
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. String
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. String
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. String
zone) The zone in which the snapshot should be created.

Outputs

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

CreatedAt string
The snapshot creation time.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The organization ID the snapshot is associated with.
SizeInGb int
(Optional) The size of the snapshot.
CreatedAt string
The snapshot creation time.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The organization ID the snapshot is associated with.
SizeInGb int
(Optional) The size of the snapshot.
createdAt String
The snapshot creation time.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The organization ID the snapshot is associated with.
sizeInGb Integer
(Optional) The size of the snapshot.
createdAt string
The snapshot creation time.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
The organization ID the snapshot is associated with.
sizeInGb number
(Optional) The size of the snapshot.
created_at str
The snapshot creation time.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
The organization ID the snapshot is associated with.
size_in_gb int
(Optional) The size of the snapshot.
createdAt String
The snapshot creation time.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The organization ID the snapshot is associated with.
sizeInGb Number
(Optional) The size of the snapshot.

Look up Existing Snapshot Resource

Get an existing Snapshot 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?: SnapshotState, opts?: CustomResourceOptions): Snapshot
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        import_: Optional[SnapshotImportArgs] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        project_id: Optional[str] = None,
        size_in_gb: Optional[int] = None,
        tags: Optional[Sequence[str]] = None,
        type: Optional[str] = None,
        volume_id: Optional[str] = None,
        zone: Optional[str] = None) -> Snapshot
func GetSnapshot(ctx *Context, name string, id IDInput, state *SnapshotState, opts ...ResourceOption) (*Snapshot, error)
public static Snapshot Get(string name, Input<string> id, SnapshotState? state, CustomResourceOptions? opts = null)
public static Snapshot get(String name, Output<String> id, SnapshotState state, CustomResourceOptions options)
resources:  _:    type: scaleway:instance:Snapshot    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CreatedAt string
The snapshot creation time.
Import Changes to this property will trigger replacement. Pulumiverse.Scaleway.Instance.Inputs.SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
Name string
The name of the snapshot. If not provided it will be randomly generated.
OrganizationId string
The organization ID the snapshot is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
SizeInGb int
(Optional) The size of the snapshot.
Tags List<string>
A list of tags to apply to the snapshot.
Type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
VolumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
CreatedAt string
The snapshot creation time.
Import Changes to this property will trigger replacement. SnapshotImportArgs
Import a snapshot from a qcow2 file located in a bucket
Name string
The name of the snapshot. If not provided it will be randomly generated.
OrganizationId string
The organization ID the snapshot is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
SizeInGb int
(Optional) The size of the snapshot.
Tags []string
A list of tags to apply to the snapshot.
Type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
VolumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
createdAt String
The snapshot creation time.
import_ Changes to this property will trigger replacement. SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
name String
The name of the snapshot. If not provided it will be randomly generated.
organizationId String
The organization ID the snapshot is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the snapshot is associated with.
sizeInGb Integer
(Optional) The size of the snapshot.
tags List<String>
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. String
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. String
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. String
zone) The zone in which the snapshot should be created.
createdAt string
The snapshot creation time.
import Changes to this property will trigger replacement. SnapshotImport
Import a snapshot from a qcow2 file located in a bucket
name string
The name of the snapshot. If not provided it will be randomly generated.
organizationId string
The organization ID the snapshot is associated with.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the snapshot is associated with.
sizeInGb number
(Optional) The size of the snapshot.
tags string[]
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. string
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. string
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. string
zone) The zone in which the snapshot should be created.
created_at str
The snapshot creation time.
import_ Changes to this property will trigger replacement. SnapshotImportArgs
Import a snapshot from a qcow2 file located in a bucket
name str
The name of the snapshot. If not provided it will be randomly generated.
organization_id str
The organization ID the snapshot is associated with.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the snapshot is associated with.
size_in_gb int
(Optional) The size of the snapshot.
tags Sequence[str]
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. str
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volume_id Changes to this property will trigger replacement. str
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. str
zone) The zone in which the snapshot should be created.
createdAt String
The snapshot creation time.
import Changes to this property will trigger replacement. Property Map
Import a snapshot from a qcow2 file located in a bucket
name String
The name of the snapshot. If not provided it will be randomly generated.
organizationId String
The organization ID the snapshot is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the snapshot is associated with.
sizeInGb Number
(Optional) The size of the snapshot.
tags List<String>
A list of tags to apply to the snapshot.
type Changes to this property will trigger replacement. String
The snapshot's volume type. The possible values are: b_ssd (Block SSD), l_ssd (Local SSD) and unified. Updates to this field will recreate a new resource.
volumeId Changes to this property will trigger replacement. String
The ID of the volume to take a snapshot from.
zone Changes to this property will trigger replacement. String
zone) The zone in which the snapshot should be created.

Supporting Types

SnapshotImport
, SnapshotImportArgs

Bucket
This property is required.
Changes to this property will trigger replacement.
string
Bucket name containing qcow2 to import
Key
This property is required.
Changes to this property will trigger replacement.
string

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

Bucket
This property is required.
Changes to this property will trigger replacement.
string
Bucket name containing qcow2 to import
Key
This property is required.
Changes to this property will trigger replacement.
string

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

bucket
This property is required.
Changes to this property will trigger replacement.
String
Bucket name containing qcow2 to import
key
This property is required.
Changes to this property will trigger replacement.
String

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

bucket
This property is required.
Changes to this property will trigger replacement.
string
Bucket name containing qcow2 to import
key
This property is required.
Changes to this property will trigger replacement.
string

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

bucket
This property is required.
Changes to this property will trigger replacement.
str
Bucket name containing qcow2 to import
key
This property is required.
Changes to this property will trigger replacement.
str

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

bucket
This property is required.
Changes to this property will trigger replacement.
String
Bucket name containing qcow2 to import
key
This property is required.
Changes to this property will trigger replacement.
String

Key of the object to import

Note: The type unified could be instantiated on both l_ssd and b_ssd volumes.

Import

Snapshots can be imported using the {zone}/{id}, e.g.

bash

$ pulumi import scaleway:instance/snapshot:Snapshot main fr-par-1/11111111-1111-1111-1111-111111111111
Copy

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

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.