1. Packages
  2. Outscale Provider
  3. API Docs
  4. Snapshot
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.Snapshot

Explore with Pulumi AI

Manages a snapshot.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

Required resource

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const volume01 = new outscale.Volume("volume01", {
    size: 40,
    subregionName: `${_var.region}a`,
});
Copy
import pulumi
import pulumi_outscale as outscale

volume01 = outscale.Volume("volume01",
    size=40,
    subregion_name=f"{var['region']}a")
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewVolume(ctx, "volume01", &outscale.VolumeArgs{
			Size:          pulumi.Float64(40),
			SubregionName: pulumi.Sprintf("%va", _var.Region),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var volume01 = new Outscale.Volume("volume01", new()
    {
        Size = 40,
        SubregionName = $"{@var.Region}a",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Volume;
import com.pulumi.outscale.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 volume01 = new Volume("volume01", VolumeArgs.builder()
            .size(40)
            .subregionName(String.format("%sa", var_.region()))
            .build());

    }
}
Copy
resources:
  volume01:
    type: outscale:Volume
    properties:
      size: 40
      subregionName: ${var.region}a
Copy

Create a snapshot

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const snapshot01 = new outscale.Snapshot("snapshot01", {volumeId: outscale_volume.volume01.volume_id});
Copy
import pulumi
import pulumi_outscale as outscale

snapshot01 = outscale.Snapshot("snapshot01", volume_id=outscale_volume["volume01"]["volume_id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewSnapshot(ctx, "snapshot01", &outscale.SnapshotArgs{
			VolumeId: pulumi.Any(outscale_volume.Volume01.Volume_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var snapshot01 = new Outscale.Snapshot("snapshot01", new()
    {
        VolumeId = outscale_volume.Volume01.Volume_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Snapshot;
import com.pulumi.outscale.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 snapshot01 = new Snapshot("snapshot01", SnapshotArgs.builder()
            .volumeId(outscale_volume.volume01().volume_id())
            .build());

    }
}
Copy
resources:
  snapshot01:
    type: outscale:Snapshot
    properties:
      volumeId: ${outscale_volume.volume01.volume_id}
Copy

Copy a snapshot

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const snapshot02 = new outscale.Snapshot("snapshot02", {
    description: "Terraform snapshot copy",
    sourceRegionName: "eu-west-2",
    sourceSnapshotId: "snap-12345678",
});
Copy
import pulumi
import pulumi_outscale as outscale

snapshot02 = outscale.Snapshot("snapshot02",
    description="Terraform snapshot copy",
    source_region_name="eu-west-2",
    source_snapshot_id="snap-12345678")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewSnapshot(ctx, "snapshot02", &outscale.SnapshotArgs{
			Description:      pulumi.String("Terraform snapshot copy"),
			SourceRegionName: pulumi.String("eu-west-2"),
			SourceSnapshotId: pulumi.String("snap-12345678"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var snapshot02 = new Outscale.Snapshot("snapshot02", new()
    {
        Description = "Terraform snapshot copy",
        SourceRegionName = "eu-west-2",
        SourceSnapshotId = "snap-12345678",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Snapshot;
import com.pulumi.outscale.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 snapshot02 = new Snapshot("snapshot02", SnapshotArgs.builder()
            .description("Terraform snapshot copy")
            .sourceRegionName("eu-west-2")
            .sourceSnapshotId("snap-12345678")
            .build());

    }
}
Copy
resources:
  snapshot02:
    type: outscale:Snapshot
    properties:
      description: Terraform snapshot copy
      sourceRegionName: eu-west-2
      sourceSnapshotId: snap-12345678
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,
             description: Optional[str] = None,
             file_location: Optional[str] = None,
             outscale_snapshot_id: Optional[str] = None,
             snapshot_size: Optional[float] = None,
             source_region_name: Optional[str] = None,
             source_snapshot_id: Optional[str] = None,
             tags: Optional[Sequence[SnapshotTagArgs]] = None,
             timeouts: Optional[SnapshotTimeoutsArgs] = None,
             volume_id: 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: outscale: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 snapshotResource = new Outscale.Snapshot("snapshotResource", new()
{
    Description = "string",
    FileLocation = "string",
    OutscaleSnapshotId = "string",
    SnapshotSize = 0,
    SourceRegionName = "string",
    SourceSnapshotId = "string",
    Tags = new[]
    {
        new Outscale.Inputs.SnapshotTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    Timeouts = new Outscale.Inputs.SnapshotTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
    VolumeId = "string",
});
Copy
example, err := outscale.NewSnapshot(ctx, "snapshotResource", &outscale.SnapshotArgs{
Description: pulumi.String("string"),
FileLocation: pulumi.String("string"),
OutscaleSnapshotId: pulumi.String("string"),
SnapshotSize: pulumi.Float64(0),
SourceRegionName: pulumi.String("string"),
SourceSnapshotId: pulumi.String("string"),
Tags: .SnapshotTagArray{
&.SnapshotTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &.SnapshotTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VolumeId: pulumi.String("string"),
})
Copy
var snapshotResource = new Snapshot("snapshotResource", SnapshotArgs.builder()
    .description("string")
    .fileLocation("string")
    .outscaleSnapshotId("string")
    .snapshotSize(0)
    .sourceRegionName("string")
    .sourceSnapshotId("string")
    .tags(SnapshotTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeouts(SnapshotTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .volumeId("string")
    .build());
Copy
snapshot_resource = outscale.Snapshot("snapshotResource",
    description="string",
    file_location="string",
    outscale_snapshot_id="string",
    snapshot_size=0,
    source_region_name="string",
    source_snapshot_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    },
    volume_id="string")
Copy
const snapshotResource = new outscale.Snapshot("snapshotResource", {
    description: "string",
    fileLocation: "string",
    outscaleSnapshotId: "string",
    snapshotSize: 0,
    sourceRegionName: "string",
    sourceSnapshotId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
    volumeId: "string",
});
Copy
type: outscale:Snapshot
properties:
    description: string
    fileLocation: string
    outscaleSnapshotId: string
    snapshotSize: 0
    sourceRegionName: string
    sourceSnapshotId: string
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
        update: string
    volumeId: 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:

Description string
A description for the snapshot.
FileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
OutscaleSnapshotId string
SnapshotSize double
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
SourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
SourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
Tags List<SnapshotTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts SnapshotTimeouts
VolumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
Description string
A description for the snapshot.
FileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
OutscaleSnapshotId string
SnapshotSize float64
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
SourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
SourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
Tags []SnapshotTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts SnapshotTimeoutsArgs
VolumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
description String
A description for the snapshot.
fileLocation String
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId String
snapshotSize Double
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName String
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId String
(when copying a snapshot) The ID of the snapshot you want to copy.
tags List<SnapshotTag>
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeouts
volumeId String
(when creating from a volume) The ID of the volume you want to create a snapshot of.
description string
A description for the snapshot.
fileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId string
snapshotSize number
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
tags SnapshotTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeouts
volumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
description str
A description for the snapshot.
file_location str
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscale_snapshot_id str
snapshot_size float
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
source_region_name str
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
source_snapshot_id str
(when copying a snapshot) The ID of the snapshot you want to copy.
tags Sequence[SnapshotTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeoutsArgs
volume_id str
(when creating from a volume) The ID of the volume you want to create a snapshot of.
description String
A description for the snapshot.
fileLocation String
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId String
snapshotSize Number
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName String
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId String
(when copying a snapshot) The ID of the snapshot you want to copy.
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
volumeId String
(when creating from a volume) The ID of the volume you want to create a snapshot of.

Outputs

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

AccountAlias string
The account alias of the owner of the snapshot.
AccountId string
The account ID of the owner of the snapshot.
CreationDate string
The date and time (UTC) at which the snapshot was created.
Id string
The provider-assigned unique ID for this managed resource.
PermissionsToCreateVolumes List<SnapshotPermissionsToCreateVolume>
Permissions for the resource.
Progress double
The progress of the snapshot, as a percentage.
RequestId string
SnapshotId string
The ID of the snapshot.
State string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
VolumeSize double
The size of the volume used to create the snapshot, in gibibytes (GiB).
AccountAlias string
The account alias of the owner of the snapshot.
AccountId string
The account ID of the owner of the snapshot.
CreationDate string
The date and time (UTC) at which the snapshot was created.
Id string
The provider-assigned unique ID for this managed resource.
PermissionsToCreateVolumes []SnapshotPermissionsToCreateVolume
Permissions for the resource.
Progress float64
The progress of the snapshot, as a percentage.
RequestId string
SnapshotId string
The ID of the snapshot.
State string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
VolumeSize float64
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias String
The account alias of the owner of the snapshot.
accountId String
The account ID of the owner of the snapshot.
creationDate String
The date and time (UTC) at which the snapshot was created.
id String
The provider-assigned unique ID for this managed resource.
permissionsToCreateVolumes List<SnapshotPermissionsToCreateVolume>
Permissions for the resource.
progress Double
The progress of the snapshot, as a percentage.
requestId String
snapshotId String
The ID of the snapshot.
state String
The state of the snapshot (in-queue | pending | completed | error | deleting)).
volumeSize Double
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias string
The account alias of the owner of the snapshot.
accountId string
The account ID of the owner of the snapshot.
creationDate string
The date and time (UTC) at which the snapshot was created.
id string
The provider-assigned unique ID for this managed resource.
permissionsToCreateVolumes SnapshotPermissionsToCreateVolume[]
Permissions for the resource.
progress number
The progress of the snapshot, as a percentage.
requestId string
snapshotId string
The ID of the snapshot.
state string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
volumeSize number
The size of the volume used to create the snapshot, in gibibytes (GiB).
account_alias str
The account alias of the owner of the snapshot.
account_id str
The account ID of the owner of the snapshot.
creation_date str
The date and time (UTC) at which the snapshot was created.
id str
The provider-assigned unique ID for this managed resource.
permissions_to_create_volumes Sequence[SnapshotPermissionsToCreateVolume]
Permissions for the resource.
progress float
The progress of the snapshot, as a percentage.
request_id str
snapshot_id str
The ID of the snapshot.
state str
The state of the snapshot (in-queue | pending | completed | error | deleting)).
volume_size float
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias String
The account alias of the owner of the snapshot.
accountId String
The account ID of the owner of the snapshot.
creationDate String
The date and time (UTC) at which the snapshot was created.
id String
The provider-assigned unique ID for this managed resource.
permissionsToCreateVolumes List<Property Map>
Permissions for the resource.
progress Number
The progress of the snapshot, as a percentage.
requestId String
snapshotId String
The ID of the snapshot.
state String
The state of the snapshot (in-queue | pending | completed | error | deleting)).
volumeSize Number
The size of the volume used to create the snapshot, in gibibytes (GiB).

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,
        account_alias: Optional[str] = None,
        account_id: Optional[str] = None,
        creation_date: Optional[str] = None,
        description: Optional[str] = None,
        file_location: Optional[str] = None,
        outscale_snapshot_id: Optional[str] = None,
        permissions_to_create_volumes: Optional[Sequence[SnapshotPermissionsToCreateVolumeArgs]] = None,
        progress: Optional[float] = None,
        request_id: Optional[str] = None,
        snapshot_id: Optional[str] = None,
        snapshot_size: Optional[float] = None,
        source_region_name: Optional[str] = None,
        source_snapshot_id: Optional[str] = None,
        state: Optional[str] = None,
        tags: Optional[Sequence[SnapshotTagArgs]] = None,
        timeouts: Optional[SnapshotTimeoutsArgs] = None,
        volume_id: Optional[str] = None,
        volume_size: Optional[float] = 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: outscale: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:
AccountAlias string
The account alias of the owner of the snapshot.
AccountId string
The account ID of the owner of the snapshot.
CreationDate string
The date and time (UTC) at which the snapshot was created.
Description string
A description for the snapshot.
FileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
OutscaleSnapshotId string
PermissionsToCreateVolumes List<SnapshotPermissionsToCreateVolume>
Permissions for the resource.
Progress double
The progress of the snapshot, as a percentage.
RequestId string
SnapshotId string
The ID of the snapshot.
SnapshotSize double
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
SourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
SourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
State string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
Tags List<SnapshotTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts SnapshotTimeouts
VolumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
VolumeSize double
The size of the volume used to create the snapshot, in gibibytes (GiB).
AccountAlias string
The account alias of the owner of the snapshot.
AccountId string
The account ID of the owner of the snapshot.
CreationDate string
The date and time (UTC) at which the snapshot was created.
Description string
A description for the snapshot.
FileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
OutscaleSnapshotId string
PermissionsToCreateVolumes []SnapshotPermissionsToCreateVolumeArgs
Permissions for the resource.
Progress float64
The progress of the snapshot, as a percentage.
RequestId string
SnapshotId string
The ID of the snapshot.
SnapshotSize float64
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
SourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
SourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
State string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
Tags []SnapshotTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts SnapshotTimeoutsArgs
VolumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
VolumeSize float64
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias String
The account alias of the owner of the snapshot.
accountId String
The account ID of the owner of the snapshot.
creationDate String
The date and time (UTC) at which the snapshot was created.
description String
A description for the snapshot.
fileLocation String
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId String
permissionsToCreateVolumes List<SnapshotPermissionsToCreateVolume>
Permissions for the resource.
progress Double
The progress of the snapshot, as a percentage.
requestId String
snapshotId String
The ID of the snapshot.
snapshotSize Double
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName String
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId String
(when copying a snapshot) The ID of the snapshot you want to copy.
state String
The state of the snapshot (in-queue | pending | completed | error | deleting)).
tags List<SnapshotTag>
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeouts
volumeId String
(when creating from a volume) The ID of the volume you want to create a snapshot of.
volumeSize Double
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias string
The account alias of the owner of the snapshot.
accountId string
The account ID of the owner of the snapshot.
creationDate string
The date and time (UTC) at which the snapshot was created.
description string
A description for the snapshot.
fileLocation string
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId string
permissionsToCreateVolumes SnapshotPermissionsToCreateVolume[]
Permissions for the resource.
progress number
The progress of the snapshot, as a percentage.
requestId string
snapshotId string
The ID of the snapshot.
snapshotSize number
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName string
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId string
(when copying a snapshot) The ID of the snapshot you want to copy.
state string
The state of the snapshot (in-queue | pending | completed | error | deleting)).
tags SnapshotTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeouts
volumeId string
(when creating from a volume) The ID of the volume you want to create a snapshot of.
volumeSize number
The size of the volume used to create the snapshot, in gibibytes (GiB).
account_alias str
The account alias of the owner of the snapshot.
account_id str
The account ID of the owner of the snapshot.
creation_date str
The date and time (UTC) at which the snapshot was created.
description str
A description for the snapshot.
file_location str
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscale_snapshot_id str
permissions_to_create_volumes Sequence[SnapshotPermissionsToCreateVolumeArgs]
Permissions for the resource.
progress float
The progress of the snapshot, as a percentage.
request_id str
snapshot_id str
The ID of the snapshot.
snapshot_size float
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
source_region_name str
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
source_snapshot_id str
(when copying a snapshot) The ID of the snapshot you want to copy.
state str
The state of the snapshot (in-queue | pending | completed | error | deleting)).
tags Sequence[SnapshotTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts SnapshotTimeoutsArgs
volume_id str
(when creating from a volume) The ID of the volume you want to create a snapshot of.
volume_size float
The size of the volume used to create the snapshot, in gibibytes (GiB).
accountAlias String
The account alias of the owner of the snapshot.
accountId String
The account ID of the owner of the snapshot.
creationDate String
The date and time (UTC) at which the snapshot was created.
description String
A description for the snapshot.
fileLocation String
(when importing from a bucket) The pre-signed URL of the snapshot you want to import. For more information, see Creating a Pre-signed URL.
outscaleSnapshotId String
permissionsToCreateVolumes List<Property Map>
Permissions for the resource.
progress Number
The progress of the snapshot, as a percentage.
requestId String
snapshotId String
The ID of the snapshot.
snapshotSize Number
(when importing from a bucket) The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
sourceRegionName String
(when copying a snapshot) The name of the source Region, which must be the same as the Region of your account.
sourceSnapshotId String
(when copying a snapshot) The ID of the snapshot you want to copy.
state String
The state of the snapshot (in-queue | pending | completed | error | deleting)).
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
volumeId String
(when creating from a volume) The ID of the volume you want to create a snapshot of.
volumeSize Number
The size of the volume used to create the snapshot, in gibibytes (GiB).

Supporting Types

SnapshotPermissionsToCreateVolume
, SnapshotPermissionsToCreateVolumeArgs

AccountId This property is required. string
The account ID of the owner of the snapshot.
GlobalPermission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
AccountId This property is required. string
The account ID of the owner of the snapshot.
GlobalPermission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountId This property is required. String
The account ID of the owner of the snapshot.
globalPermission This property is required. Boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountId This property is required. string
The account ID of the owner of the snapshot.
globalPermission This property is required. boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
account_id This property is required. str
The account ID of the owner of the snapshot.
global_permission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountId This property is required. String
The account ID of the owner of the snapshot.
globalPermission This property is required. Boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.

SnapshotTag
, SnapshotTagArgs

Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
Key string
The key of the tag, with a minimum of 1 character.
Value string
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.
key string
The key of the tag, with a minimum of 1 character.
value string
The value of the tag, between 0 and 255 characters.
key str
The key of the tag, with a minimum of 1 character.
value str
The value of the tag, between 0 and 255 characters.
key String
The key of the tag, with a minimum of 1 character.
value String
The value of the tag, between 0 and 255 characters.

SnapshotTimeouts
, SnapshotTimeoutsArgs

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

Import

A snapshot can be imported using its ID. For example:

console

$ pulumi import outscale:index/snapshot:Snapshot ImportedSnapshot snap-12345678
Copy

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

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.