scaleway.databases.Snapshot
Explore with Pulumi AI
Creates and manages Scaleway RDB (Relational Database) Snapshots. Snapshots are point-in-time backups of a database instance that can be used for recovery or duplication. For more information, refer to the API documentation.
Example Usage
Example Basic Snapshot
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.databases.Instance("main", {
    name: "test-rdb-instance",
    nodeType: "db-dev-s",
    engine: "PostgreSQL-15",
    isHaCluster: false,
    disableBackup: true,
    userName: "my_initial_user",
    password: "thiZ_is_v&ry_s3cret",
    tags: [
        "terraform-test",
        "scaleway_rdb_instance",
        "minimal",
    ],
    volumeType: "bssd",
    volumeSizeInGb: 10,
});
const test = new scaleway.databases.Snapshot("test", {
    name: "initial-snapshot",
    instanceId: main.id,
}, {
    dependsOn: [main],
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.databases.Instance("main",
    name="test-rdb-instance",
    node_type="db-dev-s",
    engine="PostgreSQL-15",
    is_ha_cluster=False,
    disable_backup=True,
    user_name="my_initial_user",
    password="thiZ_is_v&ry_s3cret",
    tags=[
        "terraform-test",
        "scaleway_rdb_instance",
        "minimal",
    ],
    volume_type="bssd",
    volume_size_in_gb=10)
test = scaleway.databases.Snapshot("test",
    name="initial-snapshot",
    instance_id=main.id,
    opts = pulumi.ResourceOptions(depends_on=[main]))
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/databases"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := databases.NewInstance(ctx, "main", &databases.InstanceArgs{
			Name:          pulumi.String("test-rdb-instance"),
			NodeType:      pulumi.String("db-dev-s"),
			Engine:        pulumi.String("PostgreSQL-15"),
			IsHaCluster:   pulumi.Bool(false),
			DisableBackup: pulumi.Bool(true),
			UserName:      pulumi.String("my_initial_user"),
			Password:      pulumi.String("thiZ_is_v&ry_s3cret"),
			Tags: pulumi.StringArray{
				pulumi.String("terraform-test"),
				pulumi.String("scaleway_rdb_instance"),
				pulumi.String("minimal"),
			},
			VolumeType:     pulumi.String("bssd"),
			VolumeSizeInGb: pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		_, err = databases.NewSnapshot(ctx, "test", &databases.SnapshotArgs{
			Name:       pulumi.String("initial-snapshot"),
			InstanceId: main.ID(),
		}, pulumi.DependsOn([]pulumi.Resource{
			main,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.Databases.Instance("main", new()
    {
        Name = "test-rdb-instance",
        NodeType = "db-dev-s",
        Engine = "PostgreSQL-15",
        IsHaCluster = false,
        DisableBackup = true,
        UserName = "my_initial_user",
        Password = "thiZ_is_v&ry_s3cret",
        Tags = new[]
        {
            "terraform-test",
            "scaleway_rdb_instance",
            "minimal",
        },
        VolumeType = "bssd",
        VolumeSizeInGb = 10,
    });
    var test = new Scaleway.Databases.Snapshot("test", new()
    {
        Name = "initial-snapshot",
        InstanceId = main.Id,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            main,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.databases.Instance;
import com.pulumi.scaleway.databases.InstanceArgs;
import com.pulumi.scaleway.databases.Snapshot;
import com.pulumi.scaleway.databases.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 Instance("main", InstanceArgs.builder()
            .name("test-rdb-instance")
            .nodeType("db-dev-s")
            .engine("PostgreSQL-15")
            .isHaCluster(false)
            .disableBackup(true)
            .userName("my_initial_user")
            .password("thiZ_is_v&ry_s3cret")
            .tags(            
                "terraform-test",
                "scaleway_rdb_instance",
                "minimal")
            .volumeType("bssd")
            .volumeSizeInGb(10)
            .build());
        var test = new Snapshot("test", SnapshotArgs.builder()
            .name("initial-snapshot")
            .instanceId(main.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(main)
                .build());
    }
}
resources:
  main:
    type: scaleway:databases:Instance
    properties:
      name: test-rdb-instance
      nodeType: db-dev-s
      engine: PostgreSQL-15
      isHaCluster: false
      disableBackup: true
      userName: my_initial_user
      password: thiZ_is_v&ry_s3cret
      tags:
        - terraform-test
        - scaleway_rdb_instance
        - minimal
      volumeType: bssd
      volumeSizeInGb: 10
  test:
    type: scaleway:databases:Snapshot
    properties:
      name: initial-snapshot
      instanceId: ${main.id}
    options:
      dependsOn:
        - ${main}
Example with Expiration
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const snapshotWithExpiration = new scaleway.databases.Snapshot("snapshot_with_expiration", {
    name: "snapshot-with-expiration",
    instanceId: main.id,
    expiresAt: "2025-01-31T00:00:00Z",
});
import pulumi
import pulumiverse_scaleway as scaleway
snapshot_with_expiration = scaleway.databases.Snapshot("snapshot_with_expiration",
    name="snapshot-with-expiration",
    instance_id=main["id"],
    expires_at="2025-01-31T00:00:00Z")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/databases"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databases.NewSnapshot(ctx, "snapshot_with_expiration", &databases.SnapshotArgs{
			Name:       pulumi.String("snapshot-with-expiration"),
			InstanceId: pulumi.Any(main.Id),
			ExpiresAt:  pulumi.String("2025-01-31T00:00:00Z"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() => 
{
    var snapshotWithExpiration = new Scaleway.Databases.Snapshot("snapshot_with_expiration", new()
    {
        Name = "snapshot-with-expiration",
        InstanceId = main.Id,
        ExpiresAt = "2025-01-31T00:00:00Z",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.databases.Snapshot;
import com.pulumi.scaleway.databases.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 snapshotWithExpiration = new Snapshot("snapshotWithExpiration", SnapshotArgs.builder()
            .name("snapshot-with-expiration")
            .instanceId(main.id())
            .expiresAt("2025-01-31T00:00:00Z")
            .build());
    }
}
resources:
  snapshotWithExpiration:
    type: scaleway:databases:Snapshot
    name: snapshot_with_expiration
    properties:
      name: snapshot-with-expiration
      instanceId: ${main.id}
      expiresAt: 2025-01-31T00:00:00Z
Example with Multiple Snapshots
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const snapshotA = new scaleway.databases.Snapshot("snapshot_a", {
    name: "snapshot_a",
    instanceId: main.id,
}, {
    dependsOn: [main],
});
const snapshotB = new scaleway.databases.Snapshot("snapshot_b", {
    name: "snapshot_b",
    instanceId: main.id,
    expiresAt: "2025-02-07T00:00:00Z",
}, {
    dependsOn: [main],
});
import pulumi
import pulumiverse_scaleway as scaleway
snapshot_a = scaleway.databases.Snapshot("snapshot_a",
    name="snapshot_a",
    instance_id=main["id"],
    opts = pulumi.ResourceOptions(depends_on=[main]))
snapshot_b = scaleway.databases.Snapshot("snapshot_b",
    name="snapshot_b",
    instance_id=main["id"],
    expires_at="2025-02-07T00:00:00Z",
    opts = pulumi.ResourceOptions(depends_on=[main]))
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/databases"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databases.NewSnapshot(ctx, "snapshot_a", &databases.SnapshotArgs{
			Name:       pulumi.String("snapshot_a"),
			InstanceId: pulumi.Any(main.Id),
		}, pulumi.DependsOn([]pulumi.Resource{
			main,
		}))
		if err != nil {
			return err
		}
		_, err = databases.NewSnapshot(ctx, "snapshot_b", &databases.SnapshotArgs{
			Name:       pulumi.String("snapshot_b"),
			InstanceId: pulumi.Any(main.Id),
			ExpiresAt:  pulumi.String("2025-02-07T00:00:00Z"),
		}, pulumi.DependsOn([]pulumi.Resource{
			main,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() => 
{
    var snapshotA = new Scaleway.Databases.Snapshot("snapshot_a", new()
    {
        Name = "snapshot_a",
        InstanceId = main.Id,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            main,
        },
    });
    var snapshotB = new Scaleway.Databases.Snapshot("snapshot_b", new()
    {
        Name = "snapshot_b",
        InstanceId = main.Id,
        ExpiresAt = "2025-02-07T00:00:00Z",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            main,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.databases.Snapshot;
import com.pulumi.scaleway.databases.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 snapshotA = new Snapshot("snapshotA", SnapshotArgs.builder()
            .name("snapshot_a")
            .instanceId(main.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(main)
                .build());
        var snapshotB = new Snapshot("snapshotB", SnapshotArgs.builder()
            .name("snapshot_b")
            .instanceId(main.id())
            .expiresAt("2025-02-07T00:00:00Z")
            .build(), CustomResourceOptions.builder()
                .dependsOn(main)
                .build());
    }
}
resources:
  snapshotA:
    type: scaleway:databases:Snapshot
    name: snapshot_a
    properties:
      name: snapshot_a
      instanceId: ${main.id}
    options:
      dependsOn:
        - ${main}
  snapshotB:
    type: scaleway:databases:Snapshot
    name: snapshot_b
    properties:
      name: snapshot_b
      instanceId: ${main.id}
      expiresAt: 2025-02-07T00:00:00Z
    options:
      dependsOn:
        - ${main}
Limitations
- Snapshots are tied to the database instance and region where they are created.
- Expired snapshots are automatically deleted and cannot be restored.
Notes
- Ensure the instance_idcorresponds to an existing database instance.
- Use the depends_onargument when creating snapshots right after creating an instance to ensure proper dependency management.
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: SnapshotArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Snapshot(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             instance_id: Optional[str] = None,
             expires_at: Optional[str] = None,
             name: Optional[str] = None,
             region: Optional[str] = None)func NewSnapshot(ctx *Context, name string, args SnapshotArgs, opts ...ResourceOption) (*Snapshot, error)public Snapshot(string name, SnapshotArgs args, CustomResourceOptions? opts = null)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: scaleway:databases:Snapshot
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 SnapshotArgs
- 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 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 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 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 String
- The unique name of the resource.
- args 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 scalewaySnapshotResource = new Scaleway.Databases.Snapshot("scalewaySnapshotResource", new()
{
    InstanceId = "string",
    ExpiresAt = "string",
    Name = "string",
    Region = "string",
});
example, err := databases.NewSnapshot(ctx, "scalewaySnapshotResource", &databases.SnapshotArgs{
	InstanceId: pulumi.String("string"),
	ExpiresAt:  pulumi.String("string"),
	Name:       pulumi.String("string"),
	Region:     pulumi.String("string"),
})
var scalewaySnapshotResource = new Snapshot("scalewaySnapshotResource", SnapshotArgs.builder()
    .instanceId("string")
    .expiresAt("string")
    .name("string")
    .region("string")
    .build());
scaleway_snapshot_resource = scaleway.databases.Snapshot("scalewaySnapshotResource",
    instance_id="string",
    expires_at="string",
    name="string",
    region="string")
const scalewaySnapshotResource = new scaleway.databases.Snapshot("scalewaySnapshotResource", {
    instanceId: "string",
    expiresAt: "string",
    name: "string",
    region: "string",
});
type: scaleway:databases:Snapshot
properties:
    expiresAt: string
    instanceId: string
    name: string
    region: string
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:
- InstanceId string
- The UUID of the database instance for which the snapshot is created.
- ExpiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- Name string
- The name of the snapshot.
- Region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- InstanceId string
- The UUID of the database instance for which the snapshot is created.
- ExpiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- Name string
- The name of the snapshot.
- Region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- instanceId String
- The UUID of the database instance for which the snapshot is created.
- expiresAt String
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- name String
- The name of the snapshot.
- region String
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- instanceId string
- The UUID of the database instance for which the snapshot is created.
- expiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- name string
- The name of the snapshot.
- region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- instance_id str
- The UUID of the database instance for which the snapshot is created.
- expires_at str
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- name str
- The name of the snapshot.
- region str
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- instanceId String
- The UUID of the database instance for which the snapshot is created.
- expiresAt String
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- name String
- The name of the snapshot.
- region String
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- CreatedAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeType string
- The type of the database instance for which the snapshot was created.
- Size int
- The size of the snapshot in bytes.
- Status string
- The current status of the snapshot (e.g., ready,creating,error).
- UpdatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- VolumeType string
- The type of volume used by the snapshot.
- CreatedAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeType string
- The type of the database instance for which the snapshot was created.
- Size int
- The size of the snapshot in bytes.
- Status string
- The current status of the snapshot (e.g., ready,creating,error).
- UpdatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- VolumeType string
- The type of volume used by the snapshot.
- createdAt String
- The timestamp when the snapshot was created, in ISO 8601 format.
- id String
- The provider-assigned unique ID for this managed resource.
- nodeType String
- The type of the database instance for which the snapshot was created.
- size Integer
- The size of the snapshot in bytes.
- status String
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt String
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType String
- The type of volume used by the snapshot.
- createdAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- id string
- The provider-assigned unique ID for this managed resource.
- nodeType string
- The type of the database instance for which the snapshot was created.
- size number
- The size of the snapshot in bytes.
- status string
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType string
- The type of volume used by the snapshot.
- created_at str
- The timestamp when the snapshot was created, in ISO 8601 format.
- id str
- The provider-assigned unique ID for this managed resource.
- node_type str
- The type of the database instance for which the snapshot was created.
- size int
- The size of the snapshot in bytes.
- status str
- The current status of the snapshot (e.g., ready,creating,error).
- updated_at str
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volume_type str
- The type of volume used by the snapshot.
- createdAt String
- The timestamp when the snapshot was created, in ISO 8601 format.
- id String
- The provider-assigned unique ID for this managed resource.
- nodeType String
- The type of the database instance for which the snapshot was created.
- size Number
- The size of the snapshot in bytes.
- status String
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt String
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType String
- The type of volume used by 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,
        expires_at: Optional[str] = None,
        instance_id: Optional[str] = None,
        name: Optional[str] = None,
        node_type: Optional[str] = None,
        region: Optional[str] = None,
        size: Optional[int] = None,
        status: Optional[str] = None,
        updated_at: Optional[str] = None,
        volume_type: Optional[str] = None) -> Snapshotfunc 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:databases:Snapshot    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.
- CreatedAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- ExpiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- InstanceId string
- The UUID of the database instance for which the snapshot is created.
- Name string
- The name of the snapshot.
- NodeType string
- The type of the database instance for which the snapshot was created.
- Region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- Size int
- The size of the snapshot in bytes.
- Status string
- The current status of the snapshot (e.g., ready,creating,error).
- UpdatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- VolumeType string
- The type of volume used by the snapshot.
- CreatedAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- ExpiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- InstanceId string
- The UUID of the database instance for which the snapshot is created.
- Name string
- The name of the snapshot.
- NodeType string
- The type of the database instance for which the snapshot was created.
- Region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- Size int
- The size of the snapshot in bytes.
- Status string
- The current status of the snapshot (e.g., ready,creating,error).
- UpdatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- VolumeType string
- The type of volume used by the snapshot.
- createdAt String
- The timestamp when the snapshot was created, in ISO 8601 format.
- expiresAt String
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- instanceId String
- The UUID of the database instance for which the snapshot is created.
- name String
- The name of the snapshot.
- nodeType String
- The type of the database instance for which the snapshot was created.
- region String
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- size Integer
- The size of the snapshot in bytes.
- status String
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt String
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType String
- The type of volume used by the snapshot.
- createdAt string
- The timestamp when the snapshot was created, in ISO 8601 format.
- expiresAt string
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- instanceId string
- The UUID of the database instance for which the snapshot is created.
- name string
- The name of the snapshot.
- nodeType string
- The type of the database instance for which the snapshot was created.
- region string
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- size number
- The size of the snapshot in bytes.
- status string
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt string
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType string
- The type of volume used by the snapshot.
- created_at str
- The timestamp when the snapshot was created, in ISO 8601 format.
- expires_at str
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- instance_id str
- The UUID of the database instance for which the snapshot is created.
- name str
- The name of the snapshot.
- node_type str
- The type of the database instance for which the snapshot was created.
- region str
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- size int
- The size of the snapshot in bytes.
- status str
- The current status of the snapshot (e.g., ready,creating,error).
- updated_at str
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volume_type str
- The type of volume used by the snapshot.
- createdAt String
- The timestamp when the snapshot was created, in ISO 8601 format.
- expiresAt String
- Expiration date of the snapshot in ISO 8601 format (e.g., 2025-01-31T00:00:00Z). If not set, the snapshot will not expire automatically.
- instanceId String
- The UUID of the database instance for which the snapshot is created.
- name String
- The name of the snapshot.
- nodeType String
- The type of the database instance for which the snapshot was created.
- region String
- The region where the snapshot is stored. Defaults to the region set in the provider configuration.
- size Number
- The size of the snapshot in bytes.
- status String
- The current status of the snapshot (e.g., ready,creating,error).
- updatedAt String
- The timestamp when the snapshot was last updated, in ISO 8601 format.
- volumeType String
- The type of volume used by the snapshot.
Import
RDB Snapshots can be imported using the {region}/{snapshot_id} format.
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 scalewayTerraform Provider.
