ionoscloud.compute.Snapshot
Explore with Pulumi AI
Manages Snapshots on IonosCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
import * as random from "@pulumi/random";
const example = ionoscloud.compute.getImage({
type: "HDD",
imageAlias: "ubuntu:latest",
location: "us/las",
});
const exampleDatacenter = new ionoscloud.compute.Datacenter("example", {
name: "Datacenter Example",
location: "us/las",
description: "Datacenter Description",
secAuthProtection: false,
});
const exampleLan = new ionoscloud.compute.Lan("example", {
datacenterId: exampleDatacenter.id,
"public": true,
name: "Lan Example",
});
const serverImagePassword = new random.index.Password("server_image_password", {
length: 16,
special: false,
});
const exampleServer = new ionoscloud.compute.Server("example", {
name: "Server Example",
datacenterId: exampleDatacenter.id,
cores: 1,
ram: 1024,
availabilityZone: "ZONE_1",
cpuFamily: "INTEL_XEON",
imageName: example.then(example => example.id),
imagePassword: serverImagePassword.result,
type: "ENTERPRISE",
volume: {
name: "system",
size: 5,
diskType: "SSD Standard",
userData: "foo",
bus: "VIRTIO",
availabilityZone: "ZONE_1",
},
});
const testSnapshot = new ionoscloud.compute.Snapshot("test_snapshot", {
datacenterId: exampleDatacenter.id,
volumeId: exampleServer.bootVolume,
name: "Snapshot Example",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
import pulumi_random as random
example = ionoscloud.compute.get_image(type="HDD",
image_alias="ubuntu:latest",
location="us/las")
example_datacenter = ionoscloud.compute.Datacenter("example",
name="Datacenter Example",
location="us/las",
description="Datacenter Description",
sec_auth_protection=False)
example_lan = ionoscloud.compute.Lan("example",
datacenter_id=example_datacenter.id,
public=True,
name="Lan Example")
server_image_password = random.index.Password("server_image_password",
length=16,
special=False)
example_server = ionoscloud.compute.Server("example",
name="Server Example",
datacenter_id=example_datacenter.id,
cores=1,
ram=1024,
availability_zone="ZONE_1",
cpu_family="INTEL_XEON",
image_name=example.id,
image_password=server_image_password["result"],
type="ENTERPRISE",
volume={
"name": "system",
"size": 5,
"disk_type": "SSD Standard",
"user_data": "foo",
"bus": "VIRTIO",
"availability_zone": "ZONE_1",
})
test_snapshot = ionoscloud.compute.Snapshot("test_snapshot",
datacenter_id=example_datacenter.id,
volume_id=example_server.boot_volume,
name="Snapshot Example")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi-random/sdk/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := compute.GetImage(ctx, &compute.GetImageArgs{
Type: pulumi.StringRef("HDD"),
ImageAlias: pulumi.StringRef("ubuntu:latest"),
Location: pulumi.StringRef("us/las"),
}, nil)
if err != nil {
return err
}
exampleDatacenter, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
Name: pulumi.String("Datacenter Example"),
Location: pulumi.String("us/las"),
Description: pulumi.String("Datacenter Description"),
SecAuthProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = compute.NewLan(ctx, "example", &compute.LanArgs{
DatacenterId: exampleDatacenter.ID(),
Public: pulumi.Bool(true),
Name: pulumi.String("Lan Example"),
})
if err != nil {
return err
}
serverImagePassword, err := random.NewPassword(ctx, "server_image_password", &random.PasswordArgs{
Length: 16,
Special: false,
})
if err != nil {
return err
}
exampleServer, err := compute.NewServer(ctx, "example", &compute.ServerArgs{
Name: pulumi.String("Server Example"),
DatacenterId: exampleDatacenter.ID(),
Cores: pulumi.Int(1),
Ram: pulumi.Int(1024),
AvailabilityZone: pulumi.String("ZONE_1"),
CpuFamily: pulumi.String("INTEL_XEON"),
ImageName: pulumi.String(example.Id),
ImagePassword: serverImagePassword.Result,
Type: pulumi.String("ENTERPRISE"),
Volume: &compute.ServerVolumeArgs{
Name: pulumi.String("system"),
Size: pulumi.Int(5),
DiskType: pulumi.String("SSD Standard"),
UserData: pulumi.String("foo"),
Bus: pulumi.String("VIRTIO"),
AvailabilityZone: pulumi.String("ZONE_1"),
},
})
if err != nil {
return err
}
_, err = compute.NewSnapshot(ctx, "test_snapshot", &compute.SnapshotArgs{
DatacenterId: exampleDatacenter.ID(),
VolumeId: exampleServer.BootVolume,
Name: pulumi.String("Snapshot Example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
using Ionoscloud = Pulumi.Ionoscloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Compute.GetImage.Invoke(new()
{
Type = "HDD",
ImageAlias = "ubuntu:latest",
Location = "us/las",
});
var exampleDatacenter = new Ionoscloud.Compute.Datacenter("example", new()
{
Name = "Datacenter Example",
Location = "us/las",
Description = "Datacenter Description",
SecAuthProtection = false,
});
var exampleLan = new Ionoscloud.Compute.Lan("example", new()
{
DatacenterId = exampleDatacenter.Id,
Public = true,
Name = "Lan Example",
});
var serverImagePassword = new Random.Index.Password("server_image_password", new()
{
Length = 16,
Special = false,
});
var exampleServer = new Ionoscloud.Compute.Server("example", new()
{
Name = "Server Example",
DatacenterId = exampleDatacenter.Id,
Cores = 1,
Ram = 1024,
AvailabilityZone = "ZONE_1",
CpuFamily = "INTEL_XEON",
ImageName = example.Apply(getImageResult => getImageResult.Id),
ImagePassword = serverImagePassword.Result,
Type = "ENTERPRISE",
Volume = new Ionoscloud.Compute.Inputs.ServerVolumeArgs
{
Name = "system",
Size = 5,
DiskType = "SSD Standard",
UserData = "foo",
Bus = "VIRTIO",
AvailabilityZone = "ZONE_1",
},
});
var testSnapshot = new Ionoscloud.Compute.Snapshot("test_snapshot", new()
{
DatacenterId = exampleDatacenter.Id,
VolumeId = exampleServer.BootVolume,
Name = "Snapshot Example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.compute.ComputeFunctions;
import com.pulumi.ionoscloud.compute.inputs.GetImageArgs;
import com.pulumi.ionoscloud.compute.Datacenter;
import com.pulumi.ionoscloud.compute.DatacenterArgs;
import com.pulumi.ionoscloud.compute.Lan;
import com.pulumi.ionoscloud.compute.LanArgs;
import com.pulumi.random.password;
import com.pulumi.random.PasswordArgs;
import com.pulumi.ionoscloud.compute.Server;
import com.pulumi.ionoscloud.compute.ServerArgs;
import com.pulumi.ionoscloud.compute.inputs.ServerVolumeArgs;
import com.pulumi.ionoscloud.compute.Snapshot;
import com.pulumi.ionoscloud.compute.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) {
final var example = ComputeFunctions.getImage(GetImageArgs.builder()
.type("HDD")
.imageAlias("ubuntu:latest")
.location("us/las")
.build());
var exampleDatacenter = new Datacenter("exampleDatacenter", DatacenterArgs.builder()
.name("Datacenter Example")
.location("us/las")
.description("Datacenter Description")
.secAuthProtection(false)
.build());
var exampleLan = new Lan("exampleLan", LanArgs.builder()
.datacenterId(exampleDatacenter.id())
.public_(true)
.name("Lan Example")
.build());
var serverImagePassword = new Password("serverImagePassword", PasswordArgs.builder()
.length(16)
.special(false)
.build());
var exampleServer = new Server("exampleServer", ServerArgs.builder()
.name("Server Example")
.datacenterId(exampleDatacenter.id())
.cores(1)
.ram(1024)
.availabilityZone("ZONE_1")
.cpuFamily("INTEL_XEON")
.imageName(example.applyValue(getImageResult -> getImageResult.id()))
.imagePassword(serverImagePassword.result())
.type("ENTERPRISE")
.volume(ServerVolumeArgs.builder()
.name("system")
.size(5)
.diskType("SSD Standard")
.userData("foo")
.bus("VIRTIO")
.availabilityZone("ZONE_1")
.build())
.build());
var testSnapshot = new Snapshot("testSnapshot", SnapshotArgs.builder()
.datacenterId(exampleDatacenter.id())
.volumeId(exampleServer.bootVolume())
.name("Snapshot Example")
.build());
}
}
resources:
exampleDatacenter:
type: ionoscloud:compute:Datacenter
name: example
properties:
name: Datacenter Example
location: us/las
description: Datacenter Description
secAuthProtection: false
exampleLan:
type: ionoscloud:compute:Lan
name: example
properties:
datacenterId: ${exampleDatacenter.id}
public: true
name: Lan Example
exampleServer:
type: ionoscloud:compute:Server
name: example
properties:
name: Server Example
datacenterId: ${exampleDatacenter.id}
cores: 1
ram: 1024
availabilityZone: ZONE_1
cpuFamily: INTEL_XEON
imageName: ${example.id}
imagePassword: ${serverImagePassword.result}
type: ENTERPRISE
volume:
name: system
size: 5
diskType: SSD Standard
userData: foo
bus: VIRTIO
availabilityZone: ZONE_1
testSnapshot:
type: ionoscloud:compute:Snapshot
name: test_snapshot
properties:
datacenterId: ${exampleDatacenter.id}
volumeId: ${exampleServer.bootVolume}
name: Snapshot Example
serverImagePassword:
type: random:password
name: server_image_password
properties:
length: 16
special: false
variables:
example:
fn::invoke:
function: ionoscloud:compute:getImage
arguments:
type: HDD
imageAlias: ubuntu:latest
location: us/las
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,
datacenter_id: Optional[str] = None,
volume_id: Optional[str] = None,
cpu_hot_plug: Optional[bool] = None,
description: Optional[str] = None,
disc_virtio_hot_plug: Optional[bool] = None,
disc_virtio_hot_unplug: Optional[bool] = None,
licence_type: Optional[str] = None,
name: Optional[str] = None,
nic_hot_plug: Optional[bool] = None,
nic_hot_unplug: Optional[bool] = None,
ram_hot_plug: Optional[bool] = None,
sec_auth_protection: Optional[bool] = 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: ionoscloud:compute: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 snapshotResource = new Ionoscloud.Compute.Snapshot("snapshotResource", new()
{
DatacenterId = "string",
VolumeId = "string",
CpuHotPlug = false,
Description = "string",
DiscVirtioHotPlug = false,
DiscVirtioHotUnplug = false,
LicenceType = "string",
Name = "string",
NicHotPlug = false,
NicHotUnplug = false,
RamHotPlug = false,
SecAuthProtection = false,
});
example, err := compute.NewSnapshot(ctx, "snapshotResource", &compute.SnapshotArgs{
DatacenterId: pulumi.String("string"),
VolumeId: pulumi.String("string"),
CpuHotPlug: pulumi.Bool(false),
Description: pulumi.String("string"),
DiscVirtioHotPlug: pulumi.Bool(false),
DiscVirtioHotUnplug: pulumi.Bool(false),
LicenceType: pulumi.String("string"),
Name: pulumi.String("string"),
NicHotPlug: pulumi.Bool(false),
NicHotUnplug: pulumi.Bool(false),
RamHotPlug: pulumi.Bool(false),
SecAuthProtection: pulumi.Bool(false),
})
var snapshotResource = new Snapshot("snapshotResource", SnapshotArgs.builder()
.datacenterId("string")
.volumeId("string")
.cpuHotPlug(false)
.description("string")
.discVirtioHotPlug(false)
.discVirtioHotUnplug(false)
.licenceType("string")
.name("string")
.nicHotPlug(false)
.nicHotUnplug(false)
.ramHotPlug(false)
.secAuthProtection(false)
.build());
snapshot_resource = ionoscloud.compute.Snapshot("snapshotResource",
datacenter_id="string",
volume_id="string",
cpu_hot_plug=False,
description="string",
disc_virtio_hot_plug=False,
disc_virtio_hot_unplug=False,
licence_type="string",
name="string",
nic_hot_plug=False,
nic_hot_unplug=False,
ram_hot_plug=False,
sec_auth_protection=False)
const snapshotResource = new ionoscloud.compute.Snapshot("snapshotResource", {
datacenterId: "string",
volumeId: "string",
cpuHotPlug: false,
description: "string",
discVirtioHotPlug: false,
discVirtioHotUnplug: false,
licenceType: "string",
name: "string",
nicHotPlug: false,
nicHotUnplug: false,
ramHotPlug: false,
secAuthProtection: false,
});
type: ionoscloud:compute:Snapshot
properties:
cpuHotPlug: false
datacenterId: string
description: string
discVirtioHotPlug: false
discVirtioHotUnplug: false
licenceType: string
name: string
nicHotPlug: false
nicHotUnplug: false
ramHotPlug: false
secAuthProtection: false
volumeId: 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:
- Datacenter
Id string - [string] The ID of the Virtual Data Center.
- Volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- Cpu
Hot boolPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- Description string
- (Computed)[string] Human readable description
- Disc
Virtio boolHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- Disc
Virtio boolHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- Licence
Type string - (Computed)[string] OS type of this Snapshot
- Name string
- [string] The name of the snapshot.
- Nic
Hot boolPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- Nic
Hot boolUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- Ram
Hot boolPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- Sec
Auth boolProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- Datacenter
Id string - [string] The ID of the Virtual Data Center.
- Volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- Cpu
Hot boolPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- Description string
- (Computed)[string] Human readable description
- Disc
Virtio boolHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- Disc
Virtio boolHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- Licence
Type string - (Computed)[string] OS type of this Snapshot
- Name string
- [string] The name of the snapshot.
- Nic
Hot boolPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- Nic
Hot boolUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- Ram
Hot boolPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- Sec
Auth boolProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- datacenter
Id String - [string] The ID of the Virtual Data Center.
- volume
Id String - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot BooleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- description String
- (Computed)[string] Human readable description
- disc
Virtio BooleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio BooleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type String - (Computed)[string] OS type of this Snapshot
- name String
- [string] The name of the snapshot.
- nic
Hot BooleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot BooleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot BooleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- sec
Auth BooleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- datacenter
Id string - [string] The ID of the Virtual Data Center.
- volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot booleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- description string
- (Computed)[string] Human readable description
- disc
Virtio booleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio booleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type string - (Computed)[string] OS type of this Snapshot
- name string
- [string] The name of the snapshot.
- nic
Hot booleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot booleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot booleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- sec
Auth booleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- datacenter_
id str - [string] The ID of the Virtual Data Center.
- volume_
id str - [string] The ID of the specific volume to take the snapshot from.
- cpu_
hot_ boolplug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- description str
- (Computed)[string] Human readable description
- disc_
virtio_ boolhot_ plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc_
virtio_ boolhot_ unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence_
type str - (Computed)[string] OS type of this Snapshot
- name str
- [string] The name of the snapshot.
- nic_
hot_ boolplug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic_
hot_ boolunplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram_
hot_ boolplug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- sec_
auth_ boolprotection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- datacenter
Id String - [string] The ID of the Virtual Data Center.
- volume
Id String - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot BooleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- description String
- (Computed)[string] Human readable description
- disc
Virtio BooleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio BooleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type String - (Computed)[string] OS type of this Snapshot
- name String
- [string] The name of the snapshot.
- nic
Hot BooleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot BooleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot BooleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- sec
Auth BooleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Cpu
Hot boolUnplug - Is capable of CPU hot unplug (no reboot required)
- Disc
Scsi boolHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- Disc
Scsi boolHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Location of that image/snapshot
- Ram
Hot boolUnplug - Is capable of memory hot unplug (no reboot required)
- Size int
- The size of the image in GB
- Cpu
Hot boolUnplug - Is capable of CPU hot unplug (no reboot required)
- Disc
Scsi boolHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- Disc
Scsi boolHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Location of that image/snapshot
- Ram
Hot boolUnplug - Is capable of memory hot unplug (no reboot required)
- Size int
- The size of the image in GB
- cpu
Hot BooleanUnplug - Is capable of CPU hot unplug (no reboot required)
- disc
Scsi BooleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi BooleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Location of that image/snapshot
- ram
Hot BooleanUnplug - Is capable of memory hot unplug (no reboot required)
- size Integer
- The size of the image in GB
- cpu
Hot booleanUnplug - Is capable of CPU hot unplug (no reboot required)
- disc
Scsi booleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi booleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- Location of that image/snapshot
- ram
Hot booleanUnplug - Is capable of memory hot unplug (no reboot required)
- size number
- The size of the image in GB
- cpu_
hot_ boolunplug - Is capable of CPU hot unplug (no reboot required)
- disc_
scsi_ boolhot_ plug - Is capable of SCSI drive hot plug (no reboot required)
- disc_
scsi_ boolhot_ unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- Location of that image/snapshot
- ram_
hot_ boolunplug - Is capable of memory hot unplug (no reboot required)
- size int
- The size of the image in GB
- cpu
Hot BooleanUnplug - Is capable of CPU hot unplug (no reboot required)
- disc
Scsi BooleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi BooleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Location of that image/snapshot
- ram
Hot BooleanUnplug - Is capable of memory hot unplug (no reboot required)
- size Number
- The size of the image in GB
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,
cpu_hot_plug: Optional[bool] = None,
cpu_hot_unplug: Optional[bool] = None,
datacenter_id: Optional[str] = None,
description: Optional[str] = None,
disc_scsi_hot_plug: Optional[bool] = None,
disc_scsi_hot_unplug: Optional[bool] = None,
disc_virtio_hot_plug: Optional[bool] = None,
disc_virtio_hot_unplug: Optional[bool] = None,
licence_type: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
nic_hot_plug: Optional[bool] = None,
nic_hot_unplug: Optional[bool] = None,
ram_hot_plug: Optional[bool] = None,
ram_hot_unplug: Optional[bool] = None,
sec_auth_protection: Optional[bool] = None,
size: Optional[int] = None,
volume_id: 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: ionoscloud:compute: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.
- Cpu
Hot boolPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- Cpu
Hot boolUnplug - Is capable of CPU hot unplug (no reboot required)
- Datacenter
Id string - [string] The ID of the Virtual Data Center.
- Description string
- (Computed)[string] Human readable description
- Disc
Scsi boolHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- Disc
Scsi boolHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- Disc
Virtio boolHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- Disc
Virtio boolHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- Licence
Type string - (Computed)[string] OS type of this Snapshot
- Location string
- Location of that image/snapshot
- Name string
- [string] The name of the snapshot.
- Nic
Hot boolPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- Nic
Hot boolUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- Ram
Hot boolPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- Ram
Hot boolUnplug - Is capable of memory hot unplug (no reboot required)
- Sec
Auth boolProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- Size int
- The size of the image in GB
- Volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- Cpu
Hot boolPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- Cpu
Hot boolUnplug - Is capable of CPU hot unplug (no reboot required)
- Datacenter
Id string - [string] The ID of the Virtual Data Center.
- Description string
- (Computed)[string] Human readable description
- Disc
Scsi boolHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- Disc
Scsi boolHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- Disc
Virtio boolHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- Disc
Virtio boolHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- Licence
Type string - (Computed)[string] OS type of this Snapshot
- Location string
- Location of that image/snapshot
- Name string
- [string] The name of the snapshot.
- Nic
Hot boolPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- Nic
Hot boolUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- Ram
Hot boolPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- Ram
Hot boolUnplug - Is capable of memory hot unplug (no reboot required)
- Sec
Auth boolProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- Size int
- The size of the image in GB
- Volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot BooleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- cpu
Hot BooleanUnplug - Is capable of CPU hot unplug (no reboot required)
- datacenter
Id String - [string] The ID of the Virtual Data Center.
- description String
- (Computed)[string] Human readable description
- disc
Scsi BooleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi BooleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- disc
Virtio BooleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio BooleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type String - (Computed)[string] OS type of this Snapshot
- location String
- Location of that image/snapshot
- name String
- [string] The name of the snapshot.
- nic
Hot BooleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot BooleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot BooleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- ram
Hot BooleanUnplug - Is capable of memory hot unplug (no reboot required)
- sec
Auth BooleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- size Integer
- The size of the image in GB
- volume
Id String - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot booleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- cpu
Hot booleanUnplug - Is capable of CPU hot unplug (no reboot required)
- datacenter
Id string - [string] The ID of the Virtual Data Center.
- description string
- (Computed)[string] Human readable description
- disc
Scsi booleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi booleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- disc
Virtio booleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio booleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type string - (Computed)[string] OS type of this Snapshot
- location string
- Location of that image/snapshot
- name string
- [string] The name of the snapshot.
- nic
Hot booleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot booleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot booleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- ram
Hot booleanUnplug - Is capable of memory hot unplug (no reboot required)
- sec
Auth booleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- size number
- The size of the image in GB
- volume
Id string - [string] The ID of the specific volume to take the snapshot from.
- cpu_
hot_ boolplug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- cpu_
hot_ boolunplug - Is capable of CPU hot unplug (no reboot required)
- datacenter_
id str - [string] The ID of the Virtual Data Center.
- description str
- (Computed)[string] Human readable description
- disc_
scsi_ boolhot_ plug - Is capable of SCSI drive hot plug (no reboot required)
- disc_
scsi_ boolhot_ unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- disc_
virtio_ boolhot_ plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc_
virtio_ boolhot_ unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence_
type str - (Computed)[string] OS type of this Snapshot
- location str
- Location of that image/snapshot
- name str
- [string] The name of the snapshot.
- nic_
hot_ boolplug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic_
hot_ boolunplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram_
hot_ boolplug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- ram_
hot_ boolunplug - Is capable of memory hot unplug (no reboot required)
- sec_
auth_ boolprotection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- size int
- The size of the image in GB
- volume_
id str - [string] The ID of the specific volume to take the snapshot from.
- cpu
Hot BooleanPlug - (Computed)[string] Is capable of CPU hot plug (no reboot required). Can only be updated.
- cpu
Hot BooleanUnplug - Is capable of CPU hot unplug (no reboot required)
- datacenter
Id String - [string] The ID of the Virtual Data Center.
- description String
- (Computed)[string] Human readable description
- disc
Scsi BooleanHot Plug - Is capable of SCSI drive hot plug (no reboot required)
- disc
Scsi BooleanHot Unplug - Is capable of SCSI drive hot unplug (no reboot required). This works only for non-Windows virtual Machines.
- disc
Virtio BooleanHot Plug - (Computed)[string] Is capable of Virt-IO drive hot plug (no reboot required). Can only be updated.
- disc
Virtio BooleanHot Unplug - (Computed)[string] Is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. Can only be updated.
- licence
Type String - (Computed)[string] OS type of this Snapshot
- location String
- Location of that image/snapshot
- name String
- [string] The name of the snapshot.
- nic
Hot BooleanPlug - (Computed)[string] Is capable of nic hot plug (no reboot required). Can only be updated.
- nic
Hot BooleanUnplug - (Computed)[string] Is capable of nic hot unplug (no reboot required). Can only be updated.
- ram
Hot BooleanPlug - (Computed)[string] Is capable of memory hot plug (no reboot required). Can only be updated.
- ram
Hot BooleanUnplug - Is capable of memory hot unplug (no reboot required)
- sec
Auth BooleanProtection - Boolean value representing if the snapshot requires extra protection e.g. two factor protection
- size Number
- The size of the image in GB
- volume
Id String - [string] The ID of the specific volume to take the snapshot from.
Import
Resource Snapshot can be imported using the snapshot id
, e.g.
$ pulumi import ionoscloud:compute/snapshot:Snapshot mysnapshot snapshot uuid
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.