1. Packages
  2. Scaleway
  3. API Docs
  4. InstanceImage
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

scaleway.InstanceImage

Explore with Pulumi AI

scaleway logo
Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs

    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:

    RootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    AdditionalVolumeIds string

    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 or arm.

    Name string

    The name of the image. If not provided it will be randomly generated.

    ProjectId string

    The ID of the project the image is associated with.

    Public bool

    Set to true if the image is public.

    Tags List<string>

    A list of tags to apply to the image.

    Zone string

    The zone in which the image should be created.

    RootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    AdditionalVolumeIds string

    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 or arm.

    Name string

    The name of the image. If not provided it will be randomly generated.

    ProjectId string

    The ID of the project the image is associated with.

    Public bool

    Set to true if the image is public.

    Tags []string

    A list of tags to apply to the image.

    Zone string

    The zone in which the image should be created.

    rootVolumeId String

    The ID of the snapshot of the volume to be used as root in the image.

    additionalVolumeIds String

    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 or arm.

    name String

    The name of the image. If not provided it will be randomly generated.

    projectId String

    The ID of the project the image is associated with.

    public_ Boolean

    Set to true if the image is public.

    tags List<String>

    A list of tags to apply to the image.

    zone String

    The zone in which the image should be created.

    rootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    additionalVolumeIds string

    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 or arm.

    name string

    The name of the image. If not provided it will be randomly generated.

    projectId string

    The ID of the project the image is associated with.

    public boolean

    Set to true if the image is public.

    tags string[]

    A list of tags to apply to the image.

    zone string

    The zone in which the image should be created.

    root_volume_id str

    The ID of the snapshot of the volume to be used as root in the image.

    additional_volume_ids str

    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 or arm.

    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.

    tags Sequence[str]

    A list of tags to apply to the image.

    zone str

    The zone in which the image should be created.

    rootVolumeId String

    The ID of the snapshot of the volume to be used as root in the image.

    additionalVolumeIds String

    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 or arm.

    name String

    The name of the image. If not provided it will be randomly generated.

    projectId String

    The ID of the project the image is associated with.

    public Boolean

    Set to true if the image is public.

    tags 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:

    AdditionalVolumes List<Lbrlabs.PulumiPackage.Scaleway.Outputs.InstanceImageAdditionalVolume>

    The description of the extra volumes attached to the image.

    CreationDate string

    Date of the volume creation.

    FromServerId string

    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.

    ModificationDate string

    Date of volume latest update.

    OrganizationId string

    The organization ID the image is associated with.

    State string

    State of the volume.

    AdditionalVolumes []InstanceImageAdditionalVolume

    The description of the extra volumes attached to the image.

    CreationDate string

    Date of the volume creation.

    FromServerId string

    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.

    ModificationDate string

    Date of volume latest update.

    OrganizationId string

    The organization ID the image is associated with.

    State string

    State of the volume.

    additionalVolumes List<InstanceImageAdditionalVolume>

    The description of the extra volumes attached to the image.

    creationDate String

    Date of the volume creation.

    fromServerId String

    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.

    modificationDate String

    Date of volume latest update.

    organizationId String

    The organization ID the image is associated with.

    state String

    State of the volume.

    additionalVolumes InstanceImageAdditionalVolume[]

    The description of the extra volumes attached to the image.

    creationDate string

    Date of the volume creation.

    fromServerId string

    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.

    modificationDate string

    Date of volume latest update.

    organizationId string

    The organization ID the image is associated with.

    state string

    State of the volume.

    additional_volumes Sequence[InstanceImageAdditionalVolume]

    The description of the extra volumes attached to the image.

    creation_date str

    Date of the volume creation.

    from_server_id str

    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.

    additionalVolumes List<Property Map>

    The description of the extra volumes attached to the image.

    creationDate String

    Date of the volume creation.

    fromServerId String

    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.

    modificationDate String

    Date of volume latest update.

    organizationId 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.
    The following state arguments are supported:
    AdditionalVolumeIds string

    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.

    AdditionalVolumes List<Lbrlabs.PulumiPackage.Scaleway.Inputs.InstanceImageAdditionalVolume>

    The description of the extra volumes attached to the image.

    Architecture string

    The architecture the image is compatible with. Possible values are: x86_64 or arm.

    CreationDate string

    Date of the volume creation.

    FromServerId string

    ID of the server the image is based on (in case it is a backup).

    ModificationDate string

    Date of volume latest update.

    Name string

    The name of the image. If not provided it will be randomly generated.

    OrganizationId string

    The organization ID the image is associated with.

    ProjectId string

    The ID of the project the image is associated with.

    Public bool

    Set to true if the image is public.

    RootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    State string

    State of the volume.

    Tags List<string>

    A list of tags to apply to the image.

    Zone string

    The zone in which the image should be created.

    AdditionalVolumeIds string

    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.

    AdditionalVolumes []InstanceImageAdditionalVolumeArgs

    The description of the extra volumes attached to the image.

    Architecture string

    The architecture the image is compatible with. Possible values are: x86_64 or arm.

    CreationDate string

    Date of the volume creation.

    FromServerId string

    ID of the server the image is based on (in case it is a backup).

    ModificationDate string

    Date of volume latest update.

    Name string

    The name of the image. If not provided it will be randomly generated.

    OrganizationId string

    The organization ID the image is associated with.

    ProjectId string

    The ID of the project the image is associated with.

    Public bool

    Set to true if the image is public.

    RootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    State string

    State of the volume.

    Tags []string

    A list of tags to apply to the image.

    Zone string

    The zone in which the image should be created.

    additionalVolumeIds String

    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.

    additionalVolumes List<InstanceImageAdditionalVolume>

    The description of the extra volumes attached to the image.

    architecture String

    The architecture the image is compatible with. Possible values are: x86_64 or arm.

    creationDate String

    Date of the volume creation.

    fromServerId String

    ID of the server the image is based on (in case it is a backup).

    modificationDate String

    Date of volume latest update.

    name String

    The name of the image. If not provided it will be randomly generated.

    organizationId String

    The organization ID the image is associated with.

    projectId String

    The ID of the project the image is associated with.

    public_ Boolean

    Set to true if the image is public.

    rootVolumeId String

    The ID of the snapshot of the volume to be used as root in the image.

    state String

    State of the volume.

    tags List<String>

    A list of tags to apply to the image.

    zone String

    The zone in which the image should be created.

    additionalVolumeIds string

    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.

    additionalVolumes InstanceImageAdditionalVolume[]

    The description of the extra volumes attached to the image.

    architecture string

    The architecture the image is compatible with. Possible values are: x86_64 or arm.

    creationDate string

    Date of the volume creation.

    fromServerId string

    ID of the server the image is based on (in case it is a backup).

    modificationDate string

    Date of volume latest update.

    name string

    The name of the image. If not provided it will be randomly generated.

    organizationId string

    The organization ID the image is associated with.

    projectId string

    The ID of the project the image is associated with.

    public boolean

    Set to true if the image is public.

    rootVolumeId string

    The ID of the snapshot of the volume to be used as root in the image.

    state string

    State of the volume.

    tags string[]

    A list of tags to apply to the image.

    zone string

    The zone in which the image should be created.

    additional_volume_ids str

    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[InstanceImageAdditionalVolumeArgs]

    The description of the extra volumes attached to the image.

    architecture str

    The architecture the image is compatible with. Possible values are: x86_64 or arm.

    creation_date str

    Date of the volume creation.

    from_server_id str

    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_id str

    The ID of the snapshot of the volume to be used as root in the image.

    state str

    State of the volume.

    tags Sequence[str]

    A list of tags to apply to the image.

    zone str

    The zone in which the image should be created.

    additionalVolumeIds String

    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.

    additionalVolumes 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 or arm.

    creationDate String

    Date of the volume creation.

    fromServerId String

    ID of the server the image is based on (in case it is a backup).

    modificationDate String

    Date of volume latest update.

    name String

    The name of the image. If not provided it will be randomly generated.

    organizationId String

    The organization ID the image is associated with.

    projectId String

    The ID of the project the image is associated with.

    public Boolean

    Set to true if the image is public.

    rootVolumeId String

    The ID of the snapshot of the volume to be used as root in the image.

    state String

    State of the volume.

    tags 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

    CreationDate string

    Date of the volume creation.

    ExportUri string

    The export URI of the volume.

    Id string

    ID of the server containing the volume.

    ModificationDate 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.

    Tags List<string>

    A list of tags to apply to the image.

    VolumeType string

    The type of volume, possible values are l_ssd and b_ssd.

    Zone string

    The zone in which the image should be created.

    CreationDate string

    Date of the volume creation.

    ExportUri string

    The export URI of the volume.

    Id string

    ID of the server containing the volume.

    ModificationDate 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.

    Tags []string

    A list of tags to apply to the image.

    VolumeType string

    The type of volume, possible values are l_ssd and b_ssd.

    Zone string

    The zone in which the image should be created.

    creationDate String

    Date of the volume creation.

    exportUri String

    The export URI of the volume.

    id String

    ID of the server containing the volume.

    modificationDate 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.

    tags List<String>

    A list of tags to apply to the image.

    volumeType String

    The type of volume, possible values are l_ssd and b_ssd.

    zone String

    The zone in which the image should be created.

    creationDate string

    Date of the volume creation.

    exportUri string

    The export URI of the volume.

    id string

    ID of the server containing the volume.

    modificationDate 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.

    tags string[]

    A list of tags to apply to the image.

    volumeType string

    The type of volume, possible values are l_ssd and b_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.

    tags Sequence[str]

    A list of tags to apply to the image.

    volume_type str

    The type of volume, possible values are l_ssd and b_ssd.

    zone str

    The zone in which the image should be created.

    creationDate String

    Date of the volume creation.

    exportUri String

    The export URI of the volume.

    id String

    ID of the server containing the volume.

    modificationDate 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.

    tags List<String>

    A list of tags to apply to the image.

    volumeType String

    The type of volume, possible values are l_ssd and b_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.

    scaleway logo
    Scaleway v1.10.0 published on Saturday, Jul 1, 2023 by lbrlabs