scaleway.InstanceImage
Explore with Pulumi AI
Creates and manages Scaleway Compute Images. For more information, see the documentation.
Example
From a volume
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const volume = new scaleway.InstanceVolume("volume", {
type: "b_ssd",
sizeInGb: 20,
});
const volumeSnapshot = new scaleway.InstanceSnapshot("volumeSnapshot", {volumeId: volume.id});
const volumeImage = new scaleway.InstanceImage("volumeImage", {rootVolumeId: volumeSnapshot.id});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
volume = scaleway.InstanceVolume("volume",
type="b_ssd",
size_in_gb=20)
volume_snapshot = scaleway.InstanceSnapshot("volumeSnapshot", volume_id=volume.id)
volume_image = scaleway.InstanceImage("volumeImage", root_volume_id=volume_snapshot.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var volume = new Scaleway.InstanceVolume("volume", new()
{
Type = "b_ssd",
SizeInGb = 20,
});
var volumeSnapshot = new Scaleway.InstanceSnapshot("volumeSnapshot", new()
{
VolumeId = volume.Id,
});
var volumeImage = new Scaleway.InstanceImage("volumeImage", new()
{
RootVolumeId = volumeSnapshot.Id,
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
volume, err := scaleway.NewInstanceVolume(ctx, "volume", &scaleway.InstanceVolumeArgs{
Type: pulumi.String("b_ssd"),
SizeInGb: pulumi.Int(20),
})
if err != nil {
return err
}
volumeSnapshot, err := scaleway.NewInstanceSnapshot(ctx, "volumeSnapshot", &scaleway.InstanceSnapshotArgs{
VolumeId: volume.ID(),
})
if err != nil {
return err
}
_, err = scaleway.NewInstanceImage(ctx, "volumeImage", &scaleway.InstanceImageArgs{
RootVolumeId: volumeSnapshot.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.InstanceVolume;
import com.pulumi.scaleway.InstanceVolumeArgs;
import com.pulumi.scaleway.InstanceSnapshot;
import com.pulumi.scaleway.InstanceSnapshotArgs;
import com.pulumi.scaleway.InstanceImage;
import com.pulumi.scaleway.InstanceImageArgs;
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 volume = new InstanceVolume("volume", InstanceVolumeArgs.builder()
.type("b_ssd")
.sizeInGb(20)
.build());
var volumeSnapshot = new InstanceSnapshot("volumeSnapshot", InstanceSnapshotArgs.builder()
.volumeId(volume.id())
.build());
var volumeImage = new InstanceImage("volumeImage", InstanceImageArgs.builder()
.rootVolumeId(volumeSnapshot.id())
.build());
}
}
resources:
volume:
type: scaleway:InstanceVolume
properties:
type: b_ssd
sizeInGb: 20
volumeSnapshot:
type: scaleway:InstanceSnapshot
properties:
volumeId: ${volume.id}
volumeImage:
type: scaleway:InstanceImage
properties:
rootVolumeId: ${volumeSnapshot.id}
From a server
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const server = new scaleway.InstanceServer("server", {
image: "ubuntu_jammy",
type: "DEV1-S",
});
const serverSnapshot = new scaleway.InstanceSnapshot("serverSnapshot", {volumeId: scaleway_instance_server.main.root_volume[0].volume_id});
const serverImage = new scaleway.InstanceImage("serverImage", {rootVolumeId: serverSnapshot.id});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
server = scaleway.InstanceServer("server",
image="ubuntu_jammy",
type="DEV1-S")
server_snapshot = scaleway.InstanceSnapshot("serverSnapshot", volume_id=scaleway_instance_server["main"]["root_volume"][0]["volume_id"])
server_image = scaleway.InstanceImage("serverImage", root_volume_id=server_snapshot.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var server = new Scaleway.InstanceServer("server", new()
{
Image = "ubuntu_jammy",
Type = "DEV1-S",
});
var serverSnapshot = new Scaleway.InstanceSnapshot("serverSnapshot", new()
{
VolumeId = scaleway_instance_server.Main.Root_volume[0].Volume_id,
});
var serverImage = new Scaleway.InstanceImage("serverImage", new()
{
RootVolumeId = serverSnapshot.Id,
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewInstanceServer(ctx, "server", &scaleway.InstanceServerArgs{
Image: pulumi.String("ubuntu_jammy"),
Type: pulumi.String("DEV1-S"),
})
if err != nil {
return err
}
serverSnapshot, err := scaleway.NewInstanceSnapshot(ctx, "serverSnapshot", &scaleway.InstanceSnapshotArgs{
VolumeId: pulumi.Any(scaleway_instance_server.Main.Root_volume[0].Volume_id),
})
if err != nil {
return err
}
_, err = scaleway.NewInstanceImage(ctx, "serverImage", &scaleway.InstanceImageArgs{
RootVolumeId: serverSnapshot.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.InstanceServer;
import com.pulumi.scaleway.InstanceServerArgs;
import com.pulumi.scaleway.InstanceSnapshot;
import com.pulumi.scaleway.InstanceSnapshotArgs;
import com.pulumi.scaleway.InstanceImage;
import com.pulumi.scaleway.InstanceImageArgs;
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 server = new InstanceServer("server", InstanceServerArgs.builder()
.image("ubuntu_jammy")
.type("DEV1-S")
.build());
var serverSnapshot = new InstanceSnapshot("serverSnapshot", InstanceSnapshotArgs.builder()
.volumeId(scaleway_instance_server.main().root_volume()[0].volume_id())
.build());
var serverImage = new InstanceImage("serverImage", InstanceImageArgs.builder()
.rootVolumeId(serverSnapshot.id())
.build());
}
}
resources:
server:
type: scaleway:InstanceServer
properties:
image: ubuntu_jammy
type: DEV1-S
serverSnapshot:
type: scaleway:InstanceSnapshot
properties:
volumeId: ${scaleway_instance_server.main.root_volume[0].volume_id}
serverImage:
type: scaleway:InstanceImage
properties:
rootVolumeId: ${serverSnapshot.id}
With additional volumes
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.InstanceServer;
import com.pulumi.scaleway.InstanceServerArgs;
import com.pulumi.scaleway.InstanceVolume;
import com.pulumi.scaleway.InstanceVolumeArgs;
import com.pulumi.scaleway.InstanceSnapshot;
import com.pulumi.scaleway.InstanceSnapshotArgs;
import com.pulumi.scaleway.InstanceImage;
import com.pulumi.scaleway.InstanceImageArgs;
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 server = new InstanceServer("server", InstanceServerArgs.builder()
.image("ubuntu_jammy")
.type("DEV1-S")
.build());
var volume = new InstanceVolume("volume", InstanceVolumeArgs.builder()
.type("b_ssd")
.sizeInGb(20)
.build());
var volumeSnapshot = new InstanceSnapshot("volumeSnapshot", InstanceSnapshotArgs.builder()
.volumeId(volume.id())
.build());
var serverSnapshot = new InstanceSnapshot("serverSnapshot", InstanceSnapshotArgs.builder()
.volumeId(scaleway_instance_server.main().root_volume()[0].volume_id())
.build());
var image = new InstanceImage("image", InstanceImageArgs.builder()
.rootVolumeId(serverSnapshot.id())
.additionalVolumes(volumeSnapshot.id())
.build());
}
}
resources:
server:
type: scaleway:InstanceServer
properties:
image: ubuntu_jammy
type: DEV1-S
volume:
type: scaleway:InstanceVolume
properties:
type: b_ssd
sizeInGb: 20
volumeSnapshot:
type: scaleway:InstanceSnapshot
properties:
volumeId: ${volume.id}
serverSnapshot:
type: scaleway:InstanceSnapshot
properties:
volumeId: ${scaleway_instance_server.main.root_volume[0].volume_id}
image:
type: scaleway:InstanceImage
properties:
rootVolumeId: ${serverSnapshot.id}
additionalVolumes:
- ${volumeSnapshot.id}
Create InstanceImage Resource
new InstanceImage(name: string, args: InstanceImageArgs, opts?: CustomResourceOptions);
@overload
def InstanceImage(resource_name: str,
opts: Optional[ResourceOptions] = None,
additional_volume_ids: Optional[str] = None,
architecture: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
public: Optional[bool] = None,
root_volume_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None)
@overload
def InstanceImage(resource_name: str,
args: InstanceImageArgs,
opts: Optional[ResourceOptions] = None)
func NewInstanceImage(ctx *Context, name string, args InstanceImageArgs, opts ...ResourceOption) (*InstanceImage, error)
public InstanceImage(string name, InstanceImageArgs args, CustomResourceOptions? opts = null)
public InstanceImage(String name, InstanceImageArgs args)
public InstanceImage(String name, InstanceImageArgs args, CustomResourceOptions options)
type: scaleway:InstanceImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceImageArgs
- 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 InstanceImageArgs
- 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 InstanceImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InstanceImage resource accepts the following input properties:
- Root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- Additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- Architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- Name string
The name of the image. If not provided it will be randomly generated.
- Project
Id string The ID of the project the image is associated with.
- Public bool
Set to
true
if the image is public.- List<string>
A list of tags to apply to the image.
- Zone string
The zone in which the image should be created.
- Root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- Additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- Architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- Name string
The name of the image. If not provided it will be randomly generated.
- Project
Id string The ID of the project the image is associated with.
- Public bool
Set to
true
if the image is public.- []string
A list of tags to apply to the image.
- Zone string
The zone in which the image should be created.
- root
Volume StringId The ID of the snapshot of the volume to be used as root in the image.
- additional
Volume StringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- architecture String
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- name String
The name of the image. If not provided it will be randomly generated.
- project
Id String The ID of the project the image is associated with.
- public_ Boolean
Set to
true
if the image is public.- List<String>
A list of tags to apply to the image.
- zone String
The zone in which the image should be created.
- root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- name string
The name of the image. If not provided it will be randomly generated.
- project
Id string The ID of the project the image is associated with.
- public boolean
Set to
true
if the image is public.- string[]
A list of tags to apply to the image.
- zone string
The zone in which the image should be created.
- root_
volume_ strid The ID of the snapshot of the volume to be used as root in the image.
- additional_
volume_ strids List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- architecture str
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- name str
The name of the image. If not provided it will be randomly generated.
- project_
id str The ID of the project the image is associated with.
- public bool
Set to
true
if the image is public.- Sequence[str]
A list of tags to apply to the image.
- zone str
The zone in which the image should be created.
- root
Volume StringId The ID of the snapshot of the volume to be used as root in the image.
- additional
Volume StringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- architecture String
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- name String
The name of the image. If not provided it will be randomly generated.
- project
Id String The ID of the project the image is associated with.
- public Boolean
Set to
true
if the image is public.- List<String>
A list of tags to apply to the image.
- zone String
The zone in which the image should be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceImage resource produces the following output properties:
- Additional
Volumes List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Instance Image Additional Volume> The description of the extra volumes attached to the image.
- Creation
Date string Date of the volume creation.
- From
Server stringId ID of the server the image is based on (in case it is a backup).
- Id string
The provider-assigned unique ID for this managed resource.
- Modification
Date string Date of volume latest update.
- Organization
Id string The organization ID the image is associated with.
- State string
State of the volume.
- Additional
Volumes []InstanceImage Additional Volume The description of the extra volumes attached to the image.
- Creation
Date string Date of the volume creation.
- From
Server stringId ID of the server the image is based on (in case it is a backup).
- Id string
The provider-assigned unique ID for this managed resource.
- Modification
Date string Date of volume latest update.
- Organization
Id string The organization ID the image is associated with.
- State string
State of the volume.
- additional
Volumes List<InstanceImage Additional Volume> The description of the extra volumes attached to the image.
- creation
Date String Date of the volume creation.
- from
Server StringId ID of the server the image is based on (in case it is a backup).
- id String
The provider-assigned unique ID for this managed resource.
- modification
Date String Date of volume latest update.
- organization
Id String The organization ID the image is associated with.
- state String
State of the volume.
- additional
Volumes InstanceImage Additional Volume[] The description of the extra volumes attached to the image.
- creation
Date string Date of the volume creation.
- from
Server stringId ID of the server the image is based on (in case it is a backup).
- id string
The provider-assigned unique ID for this managed resource.
- modification
Date string Date of volume latest update.
- organization
Id string The organization ID the image is associated with.
- state string
State of the volume.
- additional_
volumes Sequence[InstanceImage Additional Volume] The description of the extra volumes attached to the image.
- creation_
date str Date of the volume creation.
- from_
server_ strid ID of the server the image is based on (in case it is a backup).
- id str
The provider-assigned unique ID for this managed resource.
- modification_
date str Date of volume latest update.
- organization_
id str The organization ID the image is associated with.
- state str
State of the volume.
- additional
Volumes List<Property Map> The description of the extra volumes attached to the image.
- creation
Date String Date of the volume creation.
- from
Server StringId ID of the server the image is based on (in case it is a backup).
- id String
The provider-assigned unique ID for this managed resource.
- modification
Date String Date of volume latest update.
- organization
Id String The organization ID the image is associated with.
- state String
State of the volume.
Look up Existing InstanceImage Resource
Get an existing InstanceImage 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?: InstanceImageState, opts?: CustomResourceOptions): InstanceImage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
additional_volume_ids: Optional[str] = None,
additional_volumes: Optional[Sequence[InstanceImageAdditionalVolumeArgs]] = None,
architecture: Optional[str] = None,
creation_date: Optional[str] = None,
from_server_id: Optional[str] = None,
modification_date: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
public: Optional[bool] = None,
root_volume_id: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None) -> InstanceImage
func GetInstanceImage(ctx *Context, name string, id IDInput, state *InstanceImageState, opts ...ResourceOption) (*InstanceImage, error)
public static InstanceImage Get(string name, Input<string> id, InstanceImageState? state, CustomResourceOptions? opts = null)
public static InstanceImage get(String name, Output<String> id, InstanceImageState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- Additional
Volumes List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Instance Image Additional Volume> The description of the extra volumes attached to the image.
- Architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- Creation
Date string Date of the volume creation.
- From
Server stringId ID of the server the image is based on (in case it is a backup).
- Modification
Date string Date of volume latest update.
- Name string
The name of the image. If not provided it will be randomly generated.
- Organization
Id string The organization ID the image is associated with.
- Project
Id string The ID of the project the image is associated with.
- Public bool
Set to
true
if the image is public.- Root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- State string
State of the volume.
- List<string>
A list of tags to apply to the image.
- Zone string
The zone in which the image should be created.
- Additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- Additional
Volumes []InstanceImage Additional Volume Args The description of the extra volumes attached to the image.
- Architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- Creation
Date string Date of the volume creation.
- From
Server stringId ID of the server the image is based on (in case it is a backup).
- Modification
Date string Date of volume latest update.
- Name string
The name of the image. If not provided it will be randomly generated.
- Organization
Id string The organization ID the image is associated with.
- Project
Id string The ID of the project the image is associated with.
- Public bool
Set to
true
if the image is public.- Root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- State string
State of the volume.
- []string
A list of tags to apply to the image.
- Zone string
The zone in which the image should be created.
- additional
Volume StringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- additional
Volumes List<InstanceImage Additional Volume> The description of the extra volumes attached to the image.
- architecture String
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- creation
Date String Date of the volume creation.
- from
Server StringId ID of the server the image is based on (in case it is a backup).
- modification
Date String Date of volume latest update.
- name String
The name of the image. If not provided it will be randomly generated.
- organization
Id String The organization ID the image is associated with.
- project
Id String The ID of the project the image is associated with.
- public_ Boolean
Set to
true
if the image is public.- root
Volume StringId The ID of the snapshot of the volume to be used as root in the image.
- state String
State of the volume.
- List<String>
A list of tags to apply to the image.
- zone String
The zone in which the image should be created.
- additional
Volume stringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- additional
Volumes InstanceImage Additional Volume[] The description of the extra volumes attached to the image.
- architecture string
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- creation
Date string Date of the volume creation.
- from
Server stringId ID of the server the image is based on (in case it is a backup).
- modification
Date string Date of volume latest update.
- name string
The name of the image. If not provided it will be randomly generated.
- organization
Id string The organization ID the image is associated with.
- project
Id string The ID of the project the image is associated with.
- public boolean
Set to
true
if the image is public.- root
Volume stringId The ID of the snapshot of the volume to be used as root in the image.
- state string
State of the volume.
- string[]
A list of tags to apply to the image.
- zone string
The zone in which the image should be created.
- additional_
volume_ strids List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- additional_
volumes Sequence[InstanceImage Additional Volume Args] The description of the extra volumes attached to the image.
- architecture str
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- creation_
date str Date of the volume creation.
- from_
server_ strid ID of the server the image is based on (in case it is a backup).
- modification_
date str Date of volume latest update.
- name str
The name of the image. If not provided it will be randomly generated.
- organization_
id str The organization ID the image is associated with.
- project_
id str The ID of the project the image is associated with.
- public bool
Set to
true
if the image is public.- root_
volume_ strid The ID of the snapshot of the volume to be used as root in the image.
- state str
State of the volume.
- Sequence[str]
A list of tags to apply to the image.
- zone str
The zone in which the image should be created.
- additional
Volume StringIds List of IDs of the snapshots of the additional volumes to be attached to the image.
Important: For now it is only possible to have 1 additional_volume.
- additional
Volumes List<Property Map> The description of the extra volumes attached to the image.
- architecture String
The architecture the image is compatible with. Possible values are:
x86_64
orarm
.- creation
Date String Date of the volume creation.
- from
Server StringId ID of the server the image is based on (in case it is a backup).
- modification
Date String Date of volume latest update.
- name String
The name of the image. If not provided it will be randomly generated.
- organization
Id String The organization ID the image is associated with.
- project
Id String The ID of the project the image is associated with.
- public Boolean
Set to
true
if the image is public.- root
Volume StringId The ID of the snapshot of the volume to be used as root in the image.
- state String
State of the volume.
- List<String>
A list of tags to apply to the image.
- zone String
The zone in which the image should be created.
Supporting Types
InstanceImageAdditionalVolume, InstanceImageAdditionalVolumeArgs
- Creation
Date string Date of the volume creation.
- Export
Uri string The export URI of the volume.
- Id string
ID of the server containing the volume.
- Modification
Date string Date of volume latest update.
- Name string
The name of the image. If not provided it will be randomly generated.
- Organization string
The organization ID the volume is associated with.
- Project string
ID of the project the volume is associated with
- Server Dictionary<string, string>
Description of the server containing the volume (in case the image is a backup from a server).
- Size int
The size of the volume.
- State string
State of the volume.
- List<string>
A list of tags to apply to the image.
- Volume
Type string The type of volume, possible values are
l_ssd
andb_ssd
.- Zone string
The zone in which the image should be created.
- Creation
Date string Date of the volume creation.
- Export
Uri string The export URI of the volume.
- Id string
ID of the server containing the volume.
- Modification
Date string Date of volume latest update.
- Name string
The name of the image. If not provided it will be randomly generated.
- Organization string
The organization ID the volume is associated with.
- Project string
ID of the project the volume is associated with
- Server map[string]string
Description of the server containing the volume (in case the image is a backup from a server).
- Size int
The size of the volume.
- State string
State of the volume.
- []string
A list of tags to apply to the image.
- Volume
Type string The type of volume, possible values are
l_ssd
andb_ssd
.- Zone string
The zone in which the image should be created.
- creation
Date String Date of the volume creation.
- export
Uri String The export URI of the volume.
- id String
ID of the server containing the volume.
- modification
Date String Date of volume latest update.
- name String
The name of the image. If not provided it will be randomly generated.
- organization String
The organization ID the volume is associated with.
- project String
ID of the project the volume is associated with
- server Map<String,String>
Description of the server containing the volume (in case the image is a backup from a server).
- size Integer
The size of the volume.
- state String
State of the volume.
- List<String>
A list of tags to apply to the image.
- volume
Type String The type of volume, possible values are
l_ssd
andb_ssd
.- zone String
The zone in which the image should be created.
- creation
Date string Date of the volume creation.
- export
Uri string The export URI of the volume.
- id string
ID of the server containing the volume.
- modification
Date string Date of volume latest update.
- name string
The name of the image. If not provided it will be randomly generated.
- organization string
The organization ID the volume is associated with.
- project string
ID of the project the volume is associated with
- server {[key: string]: string}
Description of the server containing the volume (in case the image is a backup from a server).
- size number
The size of the volume.
- state string
State of the volume.
- string[]
A list of tags to apply to the image.
- volume
Type string The type of volume, possible values are
l_ssd
andb_ssd
.- zone string
The zone in which the image should be created.
- creation_
date str Date of the volume creation.
- export_
uri str The export URI of the volume.
- id str
ID of the server containing the volume.
- modification_
date str Date of volume latest update.
- name str
The name of the image. If not provided it will be randomly generated.
- organization str
The organization ID the volume is associated with.
- project str
ID of the project the volume is associated with
- server Mapping[str, str]
Description of the server containing the volume (in case the image is a backup from a server).
- size int
The size of the volume.
- state str
State of the volume.
- Sequence[str]
A list of tags to apply to the image.
- volume_
type str The type of volume, possible values are
l_ssd
andb_ssd
.- zone str
The zone in which the image should be created.
- creation
Date String Date of the volume creation.
- export
Uri String The export URI of the volume.
- id String
ID of the server containing the volume.
- modification
Date String Date of volume latest update.
- name String
The name of the image. If not provided it will be randomly generated.
- organization String
The organization ID the volume is associated with.
- project String
ID of the project the volume is associated with
- server Map<String>
Description of the server containing the volume (in case the image is a backup from a server).
- size Number
The size of the volume.
- state String
State of the volume.
- List<String>
A list of tags to apply to the image.
- volume
Type String The type of volume, possible values are
l_ssd
andb_ssd
.- zone String
The zone in which the image should be created.
Import
Images can be imported using the {zone}/{id}
, e.g. bash
$ pulumi import scaleway:index/instanceImage:InstanceImage main fr-par-1/11111111-1111-1111-1111-111111111111
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.