1. Packages
  2. Scaleway
  3. API Docs
  4. InstanceImage
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.InstanceImage

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Creates and manages Scaleway Compute Images. For more information, see the documentation.

    Example Usage

    From a volume

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const volume = new scaleway.InstanceVolume("volume", {
        type: "b_ssd",
        sizeInGb: 20,
    });
    const volumeSnapshot = new scaleway.InstanceSnapshot("volume_snapshot", {volumeId: volume.id});
    const volumeImage = new scaleway.InstanceImage("volume_image", {
        name: "image_from_volume",
        rootVolumeId: volumeSnapshot.id,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    volume = scaleway.InstanceVolume("volume",
        type="b_ssd",
        size_in_gb=20)
    volume_snapshot = scaleway.InstanceSnapshot("volume_snapshot", volume_id=volume.id)
    volume_image = scaleway.InstanceImage("volume_image",
        name="image_from_volume",
        root_volume_id=volume_snapshot.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    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, "volume_snapshot", &scaleway.InstanceSnapshotArgs{
    			VolumeId: volume.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewInstanceImage(ctx, "volume_image", &scaleway.InstanceImageArgs{
    			Name:         pulumi.String("image_from_volume"),
    			RootVolumeId: volumeSnapshot.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new Scaleway.InstanceVolume("volume", new()
        {
            Type = "b_ssd",
            SizeInGb = 20,
        });
    
        var volumeSnapshot = new Scaleway.InstanceSnapshot("volume_snapshot", new()
        {
            VolumeId = volume.Id,
        });
    
        var volumeImage = new Scaleway.InstanceImage("volume_image", new()
        {
            Name = "image_from_volume",
            RootVolumeId = volumeSnapshot.Id,
        });
    
    });
    
    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()
                .name("image_from_volume")
                .rootVolumeId(volumeSnapshot.id())
                .build());
    
        }
    }
    
    resources:
      volume:
        type: scaleway:InstanceVolume
        properties:
          type: b_ssd
          sizeInGb: 20
      volumeSnapshot:
        type: scaleway:InstanceSnapshot
        name: volume_snapshot
        properties:
          volumeId: ${volume.id}
      volumeImage:
        type: scaleway:InstanceImage
        name: volume_image
        properties:
          name: image_from_volume
          rootVolumeId: ${volumeSnapshot.id}
    

    From a server

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const server = new scaleway.InstanceServer("server", {
        image: "ubuntu_jammy",
        type: "DEV1-S",
    });
    const serverSnapshot = new scaleway.InstanceSnapshot("server_snapshot", {volumeId: main.rootVolume[0].volumeId});
    const serverImage = new scaleway.InstanceImage("server_image", {
        name: "image_from_server",
        rootVolumeId: serverSnapshot.id,
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    server = scaleway.InstanceServer("server",
        image="ubuntu_jammy",
        type="DEV1-S")
    server_snapshot = scaleway.InstanceSnapshot("server_snapshot", volume_id=main["rootVolume"][0]["volumeId"])
    server_image = scaleway.InstanceImage("server_image",
        name="image_from_server",
        root_volume_id=server_snapshot.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    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, "server_snapshot", &scaleway.InstanceSnapshotArgs{
    			VolumeId: pulumi.Any(main.RootVolume[0].VolumeId),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewInstanceImage(ctx, "server_image", &scaleway.InstanceImageArgs{
    			Name:         pulumi.String("image_from_server"),
    			RootVolumeId: serverSnapshot.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var server = new Scaleway.InstanceServer("server", new()
        {
            Image = "ubuntu_jammy",
            Type = "DEV1-S",
        });
    
        var serverSnapshot = new Scaleway.InstanceSnapshot("server_snapshot", new()
        {
            VolumeId = main.RootVolume[0].VolumeId,
        });
    
        var serverImage = new Scaleway.InstanceImage("server_image", new()
        {
            Name = "image_from_server",
            RootVolumeId = serverSnapshot.Id,
        });
    
    });
    
    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(main.rootVolume()[0].volumeId())
                .build());
    
            var serverImage = new InstanceImage("serverImage", InstanceImageArgs.builder()
                .name("image_from_server")
                .rootVolumeId(serverSnapshot.id())
                .build());
    
        }
    }
    
    resources:
      server:
        type: scaleway:InstanceServer
        properties:
          image: ubuntu_jammy
          type: DEV1-S
      serverSnapshot:
        type: scaleway:InstanceSnapshot
        name: server_snapshot
        properties:
          volumeId: ${main.rootVolume[0].volumeId}
      serverImage:
        type: scaleway:InstanceImage
        name: server_image
        properties:
          name: image_from_server
          rootVolumeId: ${serverSnapshot.id}
    

    With additional volumes

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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
        name: volume_snapshot
        properties:
          volumeId: ${volume.id}
      serverSnapshot:
        type: scaleway:InstanceSnapshot
        name: server_snapshot
        properties:
          volumeId: ${main.rootVolume[0].volumeId}
      image:
        type: scaleway:InstanceImage
        properties:
          name: image_with_extra_volumes
          rootVolumeId: ${serverSnapshot.id}
          additionalVolumes:
            - ${volumeSnapshot.id}
    

    Create InstanceImage Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InstanceImage(name: string, args: InstanceImageArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceImage(resource_name: str,
                      args: InstanceImageArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceImage(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      root_volume_id: Optional[str] = None,
                      additional_volume_ids: Optional[str] = None,
                      architecture: Optional[str] = None,
                      name: Optional[str] = None,
                      project_id: Optional[str] = None,
                      public: Optional[bool] = None,
                      tags: Optional[Sequence[str]] = None,
                      zone: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var instanceImageResource = new Scaleway.InstanceImage("instanceImageResource", new()
    {
        RootVolumeId = "string",
        AdditionalVolumeIds = "string",
        Architecture = "string",
        Name = "string",
        ProjectId = "string",
        Public = false,
        Tags = new[]
        {
            "string",
        },
        Zone = "string",
    });
    
    example, err := scaleway.NewInstanceImage(ctx, "instanceImageResource", &scaleway.InstanceImageArgs{
    	RootVolumeId:        pulumi.String("string"),
    	AdditionalVolumeIds: pulumi.String("string"),
    	Architecture:        pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	ProjectId:           pulumi.String("string"),
    	Public:              pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Zone: pulumi.String("string"),
    })
    
    var instanceImageResource = new InstanceImage("instanceImageResource", InstanceImageArgs.builder()
        .rootVolumeId("string")
        .additionalVolumeIds("string")
        .architecture("string")
        .name("string")
        .projectId("string")
        .public_(false)
        .tags("string")
        .zone("string")
        .build());
    
    instance_image_resource = scaleway.InstanceImage("instanceImageResource",
        root_volume_id="string",
        additional_volume_ids="string",
        architecture="string",
        name="string",
        project_id="string",
        public=False,
        tags=["string"],
        zone="string")
    
    const instanceImageResource = new scaleway.InstanceImage("instanceImageResource", {
        rootVolumeId: "string",
        additionalVolumeIds: "string",
        architecture: "string",
        name: "string",
        projectId: "string",
        "public": false,
        tags: ["string"],
        zone: "string",
    });
    
    type: scaleway:InstanceImage
    properties:
        additionalVolumeIds: string
        architecture: string
        name: string
        projectId: string
        public: false
        rootVolumeId: string
        tags:
            - string
        zone: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

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

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

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse