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

outscale.Image

Explore with Pulumi AI

Manages an image.

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

Example Usage

Create an image

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

const image01 = new outscale.Image("image01", {
    imageName: "terraform-omi-create",
    vmId: _var.vm_id,
    noReboot: true,
});
Copy
import pulumi
import pulumi_outscale as outscale

image01 = outscale.Image("image01",
    image_name="terraform-omi-create",
    vm_id=var["vm_id"],
    no_reboot=True)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewImage(ctx, "image01", &outscale.ImageArgs{
			ImageName: pulumi.String("terraform-omi-create"),
			VmId:      pulumi.Any(_var.Vm_id),
			NoReboot:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var image01 = new Outscale.Image("image01", new()
    {
        ImageName = "terraform-omi-create",
        VmId = @var.Vm_id,
        NoReboot = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Image;
import com.pulumi.outscale.ImageArgs;
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 image01 = new Image("image01", ImageArgs.builder()
            .imageName("terraform-omi-create")
            .vmId(var_.vm_id())
            .noReboot("true")
            .build());

    }
}
Copy
resources:
  image01:
    type: outscale:Image
    properties:
      imageName: terraform-omi-create
      vmId: ${var.vm_id}
      noReboot: 'true'
Copy

Import an image

Important Make sure the manifest file is still valid.

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

const image02 = new outscale.Image("image02", {
    description: "Terraform register OMI",
    fileLocation: "<URL>",
    imageName: "terraform-omi-register",
});
Copy
import pulumi
import pulumi_outscale as outscale

image02 = outscale.Image("image02",
    description="Terraform register OMI",
    file_location="<URL>",
    image_name="terraform-omi-register")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewImage(ctx, "image02", &outscale.ImageArgs{
			Description:  pulumi.String("Terraform register OMI"),
			FileLocation: pulumi.String("<URL>"),
			ImageName:    pulumi.String("terraform-omi-register"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var image02 = new Outscale.Image("image02", new()
    {
        Description = "Terraform register OMI",
        FileLocation = "<URL>",
        ImageName = "terraform-omi-register",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Image;
import com.pulumi.outscale.ImageArgs;
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 image02 = new Image("image02", ImageArgs.builder()
            .description("Terraform register OMI")
            .fileLocation("<URL>")
            .imageName("terraform-omi-register")
            .build());

    }
}
Copy
resources:
  image02:
    type: outscale:Image
    properties:
      description: Terraform register OMI
      fileLocation: <URL>
      imageName: terraform-omi-register
Copy

Copy an image

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

const image03 = new outscale.Image("image03", {
    description: "Terraform copy OMI",
    imageName: "terraform-omi-copy",
    sourceImageId: "ami-12345678",
    sourceRegionName: "eu-west-2",
});
Copy
import pulumi
import pulumi_outscale as outscale

image03 = outscale.Image("image03",
    description="Terraform copy OMI",
    image_name="terraform-omi-copy",
    source_image_id="ami-12345678",
    source_region_name="eu-west-2")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewImage(ctx, "image03", &outscale.ImageArgs{
			Description:      pulumi.String("Terraform copy OMI"),
			ImageName:        pulumi.String("terraform-omi-copy"),
			SourceImageId:    pulumi.String("ami-12345678"),
			SourceRegionName: pulumi.String("eu-west-2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var image03 = new Outscale.Image("image03", new()
    {
        Description = "Terraform copy OMI",
        ImageName = "terraform-omi-copy",
        SourceImageId = "ami-12345678",
        SourceRegionName = "eu-west-2",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Image;
import com.pulumi.outscale.ImageArgs;
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 image03 = new Image("image03", ImageArgs.builder()
            .description("Terraform copy OMI")
            .imageName("terraform-omi-copy")
            .sourceImageId("ami-12345678")
            .sourceRegionName("eu-west-2")
            .build());

    }
}
Copy
resources:
  image03:
    type: outscale:Image
    properties:
      description: Terraform copy OMI
      imageName: terraform-omi-copy
      sourceImageId: ami-12345678
      sourceRegionName: eu-west-2
Copy

Create an image with a Block Storage Unit (BSU) volume

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

const image04 = new outscale.Image("image04", {
    blockDeviceMappings: [{
        bsus: [{
            deleteOnVmDeletion: true,
            iops: 150,
            snapshotId: "snap-12345678",
            volumeSize: 120,
            volumeType: "io1",
        }],
        deviceName: "/dev/sda1",
    }],
    description: "Terraform OMI with BSU",
    imageName: "terraform-omi-bsu",
    rootDeviceName: "/dev/sda1",
});
Copy
import pulumi
import pulumi_outscale as outscale

image04 = outscale.Image("image04",
    block_device_mappings=[{
        "bsus": [{
            "delete_on_vm_deletion": True,
            "iops": 150,
            "snapshot_id": "snap-12345678",
            "volume_size": 120,
            "volume_type": "io1",
        }],
        "device_name": "/dev/sda1",
    }],
    description="Terraform OMI with BSU",
    image_name="terraform-omi-bsu",
    root_device_name="/dev/sda1")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewImage(ctx, "image04", &outscale.ImageArgs{
			BlockDeviceMappings: outscale.ImageBlockDeviceMappingArray{
				&outscale.ImageBlockDeviceMappingArgs{
					Bsus: outscale.ImageBlockDeviceMappingBsusArray{
						&outscale.ImageBlockDeviceMappingBsusArgs{
							DeleteOnVmDeletion: pulumi.Bool(true),
							Iops:               pulumi.Float64(150),
							SnapshotId:         pulumi.String("snap-12345678"),
							VolumeSize:         pulumi.Float64(120),
							VolumeType:         pulumi.String("io1"),
						},
					},
					DeviceName: pulumi.String("/dev/sda1"),
				},
			},
			Description:    pulumi.String("Terraform OMI with BSU"),
			ImageName:      pulumi.String("terraform-omi-bsu"),
			RootDeviceName: pulumi.String("/dev/sda1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var image04 = new Outscale.Image("image04", new()
    {
        BlockDeviceMappings = new[]
        {
            new Outscale.Inputs.ImageBlockDeviceMappingArgs
            {
                Bsus = new[]
                {
                    new Outscale.Inputs.ImageBlockDeviceMappingBsusArgs
                    {
                        DeleteOnVmDeletion = true,
                        Iops = 150,
                        SnapshotId = "snap-12345678",
                        VolumeSize = 120,
                        VolumeType = "io1",
                    },
                },
                DeviceName = "/dev/sda1",
            },
        },
        Description = "Terraform OMI with BSU",
        ImageName = "terraform-omi-bsu",
        RootDeviceName = "/dev/sda1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Image;
import com.pulumi.outscale.ImageArgs;
import com.pulumi.outscale.inputs.ImageBlockDeviceMappingArgs;
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 image04 = new Image("image04", ImageArgs.builder()
            .blockDeviceMappings(ImageBlockDeviceMappingArgs.builder()
                .bsus(ImageBlockDeviceMappingBsusArgs.builder()
                    .deleteOnVmDeletion("true")
                    .iops(150)
                    .snapshotId("snap-12345678")
                    .volumeSize("120")
                    .volumeType("io1")
                    .build())
                .deviceName("/dev/sda1")
                .build())
            .description("Terraform OMI with BSU")
            .imageName("terraform-omi-bsu")
            .rootDeviceName("/dev/sda1")
            .build());

    }
}
Copy
resources:
  image04:
    type: outscale:Image
    properties:
      blockDeviceMappings:
        - bsus:
            - deleteOnVmDeletion: 'true'
              iops: 150
              snapshotId: snap-12345678
              volumeSize: '120'
              volumeType: io1
          deviceName: /dev/sda1
      description: Terraform OMI with BSU
      imageName: terraform-omi-bsu
      rootDeviceName: /dev/sda1
Copy

Create Image Resource

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

Constructor syntax

new Image(name: string, args?: ImageArgs, opts?: CustomResourceOptions);
@overload
def Image(resource_name: str,
          args: Optional[ImageArgs] = None,
          opts: Optional[ResourceOptions] = None)

@overload
def Image(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          architecture: Optional[str] = None,
          block_device_mappings: Optional[Sequence[ImageBlockDeviceMappingArgs]] = None,
          description: Optional[str] = None,
          file_location: Optional[str] = None,
          image_name: Optional[str] = None,
          no_reboot: Optional[bool] = None,
          outscale_image_id: Optional[str] = None,
          root_device_name: Optional[str] = None,
          source_image_id: Optional[str] = None,
          source_region_name: Optional[str] = None,
          tags: Optional[Sequence[ImageTagArgs]] = None,
          timeouts: Optional[ImageTimeoutsArgs] = None,
          vm_id: Optional[str] = None)
func NewImage(ctx *Context, name string, args *ImageArgs, opts ...ResourceOption) (*Image, error)
public Image(string name, ImageArgs? args = null, CustomResourceOptions? opts = null)
public Image(String name, ImageArgs args)
public Image(String name, ImageArgs args, CustomResourceOptions options)
type: outscale:Image
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ImageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ImageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ImageArgs
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 imageResource = new Outscale.Image("imageResource", new()
{
    Architecture = "string",
    BlockDeviceMappings = new[]
    {
        new Outscale.Inputs.ImageBlockDeviceMappingArgs
        {
            Bsus = new[]
            {
                new Outscale.Inputs.ImageBlockDeviceMappingBsusArgs
                {
                    DeleteOnVmDeletion = false,
                    Iops = 0,
                    SnapshotId = "string",
                    VolumeSize = 0,
                    VolumeType = "string",
                },
            },
            DeviceName = "string",
            VirtualDeviceName = "string",
        },
    },
    Description = "string",
    FileLocation = "string",
    ImageName = "string",
    NoReboot = false,
    OutscaleImageId = "string",
    RootDeviceName = "string",
    SourceImageId = "string",
    SourceRegionName = "string",
    Tags = new[]
    {
        new Outscale.Inputs.ImageTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    Timeouts = new Outscale.Inputs.ImageTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
    VmId = "string",
});
Copy
example, err := outscale.NewImage(ctx, "imageResource", &outscale.ImageArgs{
Architecture: pulumi.String("string"),
BlockDeviceMappings: .ImageBlockDeviceMappingArray{
&.ImageBlockDeviceMappingArgs{
Bsus: .ImageBlockDeviceMappingBsusArray{
&.ImageBlockDeviceMappingBsusArgs{
DeleteOnVmDeletion: pulumi.Bool(false),
Iops: pulumi.Float64(0),
SnapshotId: pulumi.String("string"),
VolumeSize: pulumi.Float64(0),
VolumeType: pulumi.String("string"),
},
},
DeviceName: pulumi.String("string"),
VirtualDeviceName: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
FileLocation: pulumi.String("string"),
ImageName: pulumi.String("string"),
NoReboot: pulumi.Bool(false),
OutscaleImageId: pulumi.String("string"),
RootDeviceName: pulumi.String("string"),
SourceImageId: pulumi.String("string"),
SourceRegionName: pulumi.String("string"),
Tags: .ImageTagArray{
&.ImageTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &.ImageTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VmId: pulumi.String("string"),
})
Copy
var imageResource = new Image("imageResource", ImageArgs.builder()
    .architecture("string")
    .blockDeviceMappings(ImageBlockDeviceMappingArgs.builder()
        .bsus(ImageBlockDeviceMappingBsusArgs.builder()
            .deleteOnVmDeletion(false)
            .iops(0)
            .snapshotId("string")
            .volumeSize(0)
            .volumeType("string")
            .build())
        .deviceName("string")
        .virtualDeviceName("string")
        .build())
    .description("string")
    .fileLocation("string")
    .imageName("string")
    .noReboot(false)
    .outscaleImageId("string")
    .rootDeviceName("string")
    .sourceImageId("string")
    .sourceRegionName("string")
    .tags(ImageTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeouts(ImageTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .vmId("string")
    .build());
Copy
image_resource = outscale.Image("imageResource",
    architecture="string",
    block_device_mappings=[{
        "bsus": [{
            "delete_on_vm_deletion": False,
            "iops": 0,
            "snapshot_id": "string",
            "volume_size": 0,
            "volume_type": "string",
        }],
        "device_name": "string",
        "virtual_device_name": "string",
    }],
    description="string",
    file_location="string",
    image_name="string",
    no_reboot=False,
    outscale_image_id="string",
    root_device_name="string",
    source_image_id="string",
    source_region_name="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    },
    vm_id="string")
Copy
const imageResource = new outscale.Image("imageResource", {
    architecture: "string",
    blockDeviceMappings: [{
        bsus: [{
            deleteOnVmDeletion: false,
            iops: 0,
            snapshotId: "string",
            volumeSize: 0,
            volumeType: "string",
        }],
        deviceName: "string",
        virtualDeviceName: "string",
    }],
    description: "string",
    fileLocation: "string",
    imageName: "string",
    noReboot: false,
    outscaleImageId: "string",
    rootDeviceName: "string",
    sourceImageId: "string",
    sourceRegionName: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
    vmId: "string",
});
Copy
type: outscale:Image
properties:
    architecture: string
    blockDeviceMappings:
        - bsus:
            - deleteOnVmDeletion: false
              iops: 0
              snapshotId: string
              volumeSize: 0
              volumeType: string
          deviceName: string
          virtualDeviceName: string
    description: string
    fileLocation: string
    imageName: string
    noReboot: false
    outscaleImageId: string
    rootDeviceName: string
    sourceImageId: string
    sourceRegionName: string
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
        update: string
    vmId: string
Copy

Image 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 Image resource accepts the following input properties:

Architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
BlockDeviceMappings List<ImageBlockDeviceMapping>
(required) When registering from a snapshot: One or more block device mappings.
Description string
A description for the new OMI.
FileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
ImageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
NoReboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
OutscaleImageId string
RootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
SourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
SourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
Tags List<ImageTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts ImageTimeouts
VmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
Architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
BlockDeviceMappings []ImageBlockDeviceMappingArgs
(required) When registering from a snapshot: One or more block device mappings.
Description string
A description for the new OMI.
FileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
ImageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
NoReboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
OutscaleImageId string
RootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
SourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
SourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
Tags []ImageTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts ImageTimeoutsArgs
VmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
architecture String
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings List<ImageBlockDeviceMapping>
(required) When registering from a snapshot: One or more block device mappings.
description String
A description for the new OMI.
fileLocation String
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageName String
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
noReboot Boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId String
rootDeviceName String
(required) When registering from a snapshot: The name of the root device for the new OMI.
sourceImageId String
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName String
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
tags List<ImageTag>
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeouts
vmId String
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings ImageBlockDeviceMapping[]
(required) When registering from a snapshot: One or more block device mappings.
description string
A description for the new OMI.
fileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
noReboot boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId string
rootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
sourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
tags ImageTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeouts
vmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
architecture str
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
block_device_mappings Sequence[ImageBlockDeviceMappingArgs]
(required) When registering from a snapshot: One or more block device mappings.
description str
A description for the new OMI.
file_location str
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
image_name str
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
no_reboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscale_image_id str
root_device_name str
(required) When registering from a snapshot: The name of the root device for the new OMI.
source_image_id str
(required) When copying an OMI: The ID of the OMI you want to copy.
source_region_name str
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
tags Sequence[ImageTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeoutsArgs
vm_id str
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
architecture String
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings List<Property Map>
(required) When registering from a snapshot: One or more block device mappings.
description String
A description for the new OMI.
fileLocation String
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageName String
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
noReboot Boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId String
rootDeviceName String
(required) When registering from a snapshot: The name of the root device for the new OMI.
sourceImageId String
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName String
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
vmId String
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.

Outputs

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

AccountAlias string
The account alias of the owner of the OMI.
AccountId string
The account ID of the owner of the OMI.
CreationDate string
The date and time (UTC) at which the OMI was created.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
The ID of the OMI.
ImageType string
The type of the OMI.
IsPublic bool
PermissionsToLaunches List<ImagePermissionsToLaunch>
Permissions for the resource.
ProductCodes List<string>
The product codes associated with the OMI.
RequestId string
RootDeviceType string
The type of root device used by the OMI (always bsu).
State string
The state of the OMI (pending | available | failed).
StateComments List<ImageStateComment>
Information about the change of state.
AccountAlias string
The account alias of the owner of the OMI.
AccountId string
The account ID of the owner of the OMI.
CreationDate string
The date and time (UTC) at which the OMI was created.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
The ID of the OMI.
ImageType string
The type of the OMI.
IsPublic bool
PermissionsToLaunches []ImagePermissionsToLaunch
Permissions for the resource.
ProductCodes []string
The product codes associated with the OMI.
RequestId string
RootDeviceType string
The type of root device used by the OMI (always bsu).
State string
The state of the OMI (pending | available | failed).
StateComments []ImageStateComment
Information about the change of state.
accountAlias String
The account alias of the owner of the OMI.
accountId String
The account ID of the owner of the OMI.
creationDate String
The date and time (UTC) at which the OMI was created.
id String
The provider-assigned unique ID for this managed resource.
imageId String
The ID of the OMI.
imageType String
The type of the OMI.
isPublic Boolean
permissionsToLaunches List<ImagePermissionsToLaunch>
Permissions for the resource.
productCodes List<String>
The product codes associated with the OMI.
requestId String
rootDeviceType String
The type of root device used by the OMI (always bsu).
state String
The state of the OMI (pending | available | failed).
stateComments List<ImageStateComment>
Information about the change of state.
accountAlias string
The account alias of the owner of the OMI.
accountId string
The account ID of the owner of the OMI.
creationDate string
The date and time (UTC) at which the OMI was created.
id string
The provider-assigned unique ID for this managed resource.
imageId string
The ID of the OMI.
imageType string
The type of the OMI.
isPublic boolean
permissionsToLaunches ImagePermissionsToLaunch[]
Permissions for the resource.
productCodes string[]
The product codes associated with the OMI.
requestId string
rootDeviceType string
The type of root device used by the OMI (always bsu).
state string
The state of the OMI (pending | available | failed).
stateComments ImageStateComment[]
Information about the change of state.
account_alias str
The account alias of the owner of the OMI.
account_id str
The account ID of the owner of the OMI.
creation_date str
The date and time (UTC) at which the OMI was created.
id str
The provider-assigned unique ID for this managed resource.
image_id str
The ID of the OMI.
image_type str
The type of the OMI.
is_public bool
permissions_to_launches Sequence[ImagePermissionsToLaunch]
Permissions for the resource.
product_codes Sequence[str]
The product codes associated with the OMI.
request_id str
root_device_type str
The type of root device used by the OMI (always bsu).
state str
The state of the OMI (pending | available | failed).
state_comments Sequence[ImageStateComment]
Information about the change of state.
accountAlias String
The account alias of the owner of the OMI.
accountId String
The account ID of the owner of the OMI.
creationDate String
The date and time (UTC) at which the OMI was created.
id String
The provider-assigned unique ID for this managed resource.
imageId String
The ID of the OMI.
imageType String
The type of the OMI.
isPublic Boolean
permissionsToLaunches List<Property Map>
Permissions for the resource.
productCodes List<String>
The product codes associated with the OMI.
requestId String
rootDeviceType String
The type of root device used by the OMI (always bsu).
state String
The state of the OMI (pending | available | failed).
stateComments List<Property Map>
Information about the change of state.

Look up Existing Image Resource

Get an existing Image 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?: ImageState, opts?: CustomResourceOptions): Image
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_alias: Optional[str] = None,
        account_id: Optional[str] = None,
        architecture: Optional[str] = None,
        block_device_mappings: Optional[Sequence[ImageBlockDeviceMappingArgs]] = None,
        creation_date: Optional[str] = None,
        description: Optional[str] = None,
        file_location: Optional[str] = None,
        image_id: Optional[str] = None,
        image_name: Optional[str] = None,
        image_type: Optional[str] = None,
        is_public: Optional[bool] = None,
        no_reboot: Optional[bool] = None,
        outscale_image_id: Optional[str] = None,
        permissions_to_launches: Optional[Sequence[ImagePermissionsToLaunchArgs]] = None,
        product_codes: Optional[Sequence[str]] = None,
        request_id: Optional[str] = None,
        root_device_name: Optional[str] = None,
        root_device_type: Optional[str] = None,
        source_image_id: Optional[str] = None,
        source_region_name: Optional[str] = None,
        state: Optional[str] = None,
        state_comments: Optional[Sequence[ImageStateCommentArgs]] = None,
        tags: Optional[Sequence[ImageTagArgs]] = None,
        timeouts: Optional[ImageTimeoutsArgs] = None,
        vm_id: Optional[str] = None) -> Image
func GetImage(ctx *Context, name string, id IDInput, state *ImageState, opts ...ResourceOption) (*Image, error)
public static Image Get(string name, Input<string> id, ImageState? state, CustomResourceOptions? opts = null)
public static Image get(String name, Output<String> id, ImageState state, CustomResourceOptions options)
resources:  _:    type: outscale:Image    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountAlias string
The account alias of the owner of the OMI.
AccountId string
The account ID of the owner of the OMI.
Architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
BlockDeviceMappings List<ImageBlockDeviceMapping>
(required) When registering from a snapshot: One or more block device mappings.
CreationDate string
The date and time (UTC) at which the OMI was created.
Description string
A description for the new OMI.
FileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
ImageId string
The ID of the OMI.
ImageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
ImageType string
The type of the OMI.
IsPublic bool
NoReboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
OutscaleImageId string
PermissionsToLaunches List<ImagePermissionsToLaunch>
Permissions for the resource.
ProductCodes List<string>
The product codes associated with the OMI.
RequestId string
RootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
RootDeviceType string
The type of root device used by the OMI (always bsu).
SourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
SourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
State string
The state of the OMI (pending | available | failed).
StateComments List<ImageStateComment>
Information about the change of state.
Tags List<ImageTag>
A tag to add to this resource. You can specify this argument several times.
Timeouts ImageTimeouts
VmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
AccountAlias string
The account alias of the owner of the OMI.
AccountId string
The account ID of the owner of the OMI.
Architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
BlockDeviceMappings []ImageBlockDeviceMappingArgs
(required) When registering from a snapshot: One or more block device mappings.
CreationDate string
The date and time (UTC) at which the OMI was created.
Description string
A description for the new OMI.
FileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
ImageId string
The ID of the OMI.
ImageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
ImageType string
The type of the OMI.
IsPublic bool
NoReboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
OutscaleImageId string
PermissionsToLaunches []ImagePermissionsToLaunchArgs
Permissions for the resource.
ProductCodes []string
The product codes associated with the OMI.
RequestId string
RootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
RootDeviceType string
The type of root device used by the OMI (always bsu).
SourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
SourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
State string
The state of the OMI (pending | available | failed).
StateComments []ImageStateCommentArgs
Information about the change of state.
Tags []ImageTagArgs
A tag to add to this resource. You can specify this argument several times.
Timeouts ImageTimeoutsArgs
VmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
accountAlias String
The account alias of the owner of the OMI.
accountId String
The account ID of the owner of the OMI.
architecture String
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings List<ImageBlockDeviceMapping>
(required) When registering from a snapshot: One or more block device mappings.
creationDate String
The date and time (UTC) at which the OMI was created.
description String
A description for the new OMI.
fileLocation String
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageId String
The ID of the OMI.
imageName String
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
imageType String
The type of the OMI.
isPublic Boolean
noReboot Boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId String
permissionsToLaunches List<ImagePermissionsToLaunch>
Permissions for the resource.
productCodes List<String>
The product codes associated with the OMI.
requestId String
rootDeviceName String
(required) When registering from a snapshot: The name of the root device for the new OMI.
rootDeviceType String
The type of root device used by the OMI (always bsu).
sourceImageId String
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName String
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
state String
The state of the OMI (pending | available | failed).
stateComments List<ImageStateComment>
Information about the change of state.
tags List<ImageTag>
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeouts
vmId String
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
accountAlias string
The account alias of the owner of the OMI.
accountId string
The account ID of the owner of the OMI.
architecture string
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings ImageBlockDeviceMapping[]
(required) When registering from a snapshot: One or more block device mappings.
creationDate string
The date and time (UTC) at which the OMI was created.
description string
A description for the new OMI.
fileLocation string
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageId string
The ID of the OMI.
imageName string
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
imageType string
The type of the OMI.
isPublic boolean
noReboot boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId string
permissionsToLaunches ImagePermissionsToLaunch[]
Permissions for the resource.
productCodes string[]
The product codes associated with the OMI.
requestId string
rootDeviceName string
(required) When registering from a snapshot: The name of the root device for the new OMI.
rootDeviceType string
The type of root device used by the OMI (always bsu).
sourceImageId string
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName string
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
state string
The state of the OMI (pending | available | failed).
stateComments ImageStateComment[]
Information about the change of state.
tags ImageTag[]
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeouts
vmId string
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
account_alias str
The account alias of the owner of the OMI.
account_id str
The account ID of the owner of the OMI.
architecture str
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
block_device_mappings Sequence[ImageBlockDeviceMappingArgs]
(required) When registering from a snapshot: One or more block device mappings.
creation_date str
The date and time (UTC) at which the OMI was created.
description str
A description for the new OMI.
file_location str
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
image_id str
The ID of the OMI.
image_name str
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
image_type str
The type of the OMI.
is_public bool
no_reboot bool
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscale_image_id str
permissions_to_launches Sequence[ImagePermissionsToLaunchArgs]
Permissions for the resource.
product_codes Sequence[str]
The product codes associated with the OMI.
request_id str
root_device_name str
(required) When registering from a snapshot: The name of the root device for the new OMI.
root_device_type str
The type of root device used by the OMI (always bsu).
source_image_id str
(required) When copying an OMI: The ID of the OMI you want to copy.
source_region_name str
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
state str
The state of the OMI (pending | available | failed).
state_comments Sequence[ImageStateCommentArgs]
Information about the change of state.
tags Sequence[ImageTagArgs]
A tag to add to this resource. You can specify this argument several times.
timeouts ImageTimeoutsArgs
vm_id str
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.
accountAlias String
The account alias of the owner of the OMI.
accountId String
The account ID of the owner of the OMI.
architecture String
When registering from a snapshot: The architecture of the OMI (i386 or x86_64).
blockDeviceMappings List<Property Map>
(required) When registering from a snapshot: One or more block device mappings.
creationDate String
The date and time (UTC) at which the OMI was created.
description String
A description for the new OMI.
fileLocation String
(required) When registering from a bucket by using a manifest file: The pre-signed URL of the manifest file for the OMI you want to register. For more information, see Creating a Pre-signed URL.
imageId String
The ID of the OMI.
imageName String
A unique name for the new OMI. Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).
imageType String
The type of the OMI.
isPublic Boolean
noReboot Boolean
When creating from a VM: If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
outscaleImageId String
permissionsToLaunches List<Property Map>
Permissions for the resource.
productCodes List<String>
The product codes associated with the OMI.
requestId String
rootDeviceName String
(required) When registering from a snapshot: The name of the root device for the new OMI.
rootDeviceType String
The type of root device used by the OMI (always bsu).
sourceImageId String
(required) When copying an OMI: The ID of the OMI you want to copy.
sourceRegionName String
(required) When copying an OMI: The name of the source Region (always the same as the Region of your account).
state String
The state of the OMI (pending | available | failed).
stateComments List<Property Map>
Information about the change of state.
tags List<Property Map>
A tag to add to this resource. You can specify this argument several times.
timeouts Property Map
vmId String
(required) When creating from a VM: The ID of the VM from which you want to create the OMI.

Supporting Types

ImageBlockDeviceMapping
, ImageBlockDeviceMappingArgs

Bsus List<ImageBlockDeviceMappingBsus>
Information about the BSU volume to create.
DeviceName string
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
VirtualDeviceName string
The name of the virtual device (ephemeralN).
Bsus []ImageBlockDeviceMappingBsus
Information about the BSU volume to create.
DeviceName string
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
VirtualDeviceName string
The name of the virtual device (ephemeralN).
bsus List<ImageBlockDeviceMappingBsus>
Information about the BSU volume to create.
deviceName String
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
virtualDeviceName String
The name of the virtual device (ephemeralN).
bsus ImageBlockDeviceMappingBsus[]
Information about the BSU volume to create.
deviceName string
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
virtualDeviceName string
The name of the virtual device (ephemeralN).
bsus Sequence[ImageBlockDeviceMappingBsus]
Information about the BSU volume to create.
device_name str
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
virtual_device_name str
The name of the virtual device (ephemeralN).
bsus List<Property Map>
Information about the BSU volume to create.
deviceName String
The device name for the volume. For a root device, you must use /dev/sda1. For other volumes, you must use /dev/sdX, /dev/sdXX, /dev/xvdX, or /dev/xvdXX (where the first X is a letter between b and z, and the second X is a letter between a and z).
virtualDeviceName String
The name of the virtual device (ephemeralN).

ImageBlockDeviceMappingBsus
, ImageBlockDeviceMappingBsusArgs

DeleteOnVmDeletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
Iops double
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
SnapshotId string
The ID of the snapshot used to create the volume.
VolumeSize double
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
VolumeType string
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
DeleteOnVmDeletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
Iops float64
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
SnapshotId string
The ID of the snapshot used to create the volume.
VolumeSize float64
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
VolumeType string
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
deleteOnVmDeletion Boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops Double
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId String
The ID of the snapshot used to create the volume.
volumeSize Double
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
volumeType String
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
deleteOnVmDeletion boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops number
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId string
The ID of the snapshot used to create the volume.
volumeSize number
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
volumeType string
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
delete_on_vm_deletion bool
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops float
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshot_id str
The ID of the snapshot used to create the volume.
volume_size float
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
volume_type str
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
deleteOnVmDeletion Boolean
By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
iops Number
The number of I/O operations per second (IOPS). This parameter must be specified only if you create an io1 volume. The maximum number of IOPS allowed for io1 volumes is 13000 with a maximum performance ratio of 300 IOPS per gibibyte.
snapshotId String
The ID of the snapshot used to create the volume.
volumeSize Number
The size of the volume, in gibibytes (GiB). If you specify a snapshot ID, the volume size must be at least equal to the snapshot size. If you specify a snapshot ID but no volume size, the volume is created with a size similar to the snapshot one.
volumeType String
The type of the volume (standard | io1 | gp2). If not specified in the request, a standard volume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.

ImagePermissionsToLaunch
, ImagePermissionsToLaunchArgs

AccountIds This property is required. List<string>
One or more account IDs that the permission is associated with.
GlobalPermission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
AccountIds This property is required. []string
One or more account IDs that the permission is associated with.
GlobalPermission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountIds This property is required. List<String>
One or more account IDs that the permission is associated with.
globalPermission This property is required. Boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountIds This property is required. string[]
One or more account IDs that the permission is associated with.
globalPermission This property is required. boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
account_ids This property is required. Sequence[str]
One or more account IDs that the permission is associated with.
global_permission This property is required. bool
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.
accountIds This property is required. List<String>
One or more account IDs that the permission is associated with.
globalPermission This property is required. Boolean
A global permission for all accounts. (Request) Set this parameter to true to make the resource public (if the parent parameter is Additions) or to make the resource private (if the parent parameter is Removals). (Response) If true, the resource is public. If false, the resource is private.

ImageStateComment
, ImageStateCommentArgs

StateCode This property is required. string
The code of the change of state.
StateMessage This property is required. string
A message explaining the change of state.
StateCode This property is required. string
The code of the change of state.
StateMessage This property is required. string
A message explaining the change of state.
stateCode This property is required. String
The code of the change of state.
stateMessage This property is required. String
A message explaining the change of state.
stateCode This property is required. string
The code of the change of state.
stateMessage This property is required. string
A message explaining the change of state.
state_code This property is required. str
The code of the change of state.
state_message This property is required. str
A message explaining the change of state.
stateCode This property is required. String
The code of the change of state.
stateMessage This property is required. String
A message explaining the change of state.

ImageTag
, ImageTagArgs

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

ImageTimeouts
, ImageTimeoutsArgs

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

Import

An image can be imported using its ID. For example:

console

$ pulumi import outscale:index/image:Image ImportedImage ami-12345678
Copy

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

Package Details

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