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,
});
import pulumi
import pulumi_outscale as outscale
image01 = outscale.Image("image01",
    image_name="terraform-omi-create",
    vm_id=var["vm_id"],
    no_reboot=True)
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
	})
}
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,
    });
});
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());
    }
}
resources:
  image01:
    type: outscale:Image
    properties:
      imageName: terraform-omi-create
      vmId: ${var.vm_id}
      noReboot: 'true'
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",
});
import pulumi
import pulumi_outscale as outscale
image02 = outscale.Image("image02",
    description="Terraform register OMI",
    file_location="<URL>",
    image_name="terraform-omi-register")
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
	})
}
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",
    });
});
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());
    }
}
resources:
  image02:
    type: outscale:Image
    properties:
      description: Terraform register OMI
      fileLocation: <URL>
      imageName: terraform-omi-register
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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
resources:
  image03:
    type: outscale:Image
    properties:
      description: Terraform copy OMI
      imageName: terraform-omi-copy
      sourceImageId: ami-12345678
      sourceRegionName: eu-west-2
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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
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
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)type: outscale:Image
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 ImageArgs
- 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 (i386orx86_64).
- BlockDevice List<ImageMappings Block Device Mapping> 
- (when registering from a snapshot) One or more block device mappings.
- Description string
- A description for the new OMI.
- FileLocation string
- (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 (()), 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.
- OutscaleImage stringId 
- RootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- SourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- SourceRegion stringName 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- 
List<ImageTag> 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
ImageTimeouts 
- VmId string
- (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 (i386orx86_64).
- BlockDevice []ImageMappings Block Device Mapping Args 
- (when registering from a snapshot) One or more block device mappings.
- Description string
- A description for the new OMI.
- FileLocation string
- (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 (()), 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.
- OutscaleImage stringId 
- RootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- SourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- SourceRegion stringName 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- 
[]ImageTag Args 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
ImageTimeouts Args 
- VmId string
- (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 (i386orx86_64).
- blockDevice List<ImageMappings Block Device Mapping> 
- (when registering from a snapshot) One or more block device mappings.
- description String
- A description for the new OMI.
- fileLocation String
- (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 (()), 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.
- outscaleImage StringId 
- rootDevice StringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- sourceImage StringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion StringName 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- 
List<ImageTag> 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts 
- vmId String
- (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 (i386orx86_64).
- blockDevice ImageMappings Block Device Mapping[] 
- (when registering from a snapshot) One or more block device mappings.
- description string
- A description for the new OMI.
- fileLocation string
- (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 (()), 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.
- outscaleImage stringId 
- rootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- sourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion stringName 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- 
ImageTag[] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts 
- vmId string
- (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 (i386orx86_64).
- block_device_ Sequence[Imagemappings Block Device Mapping Args] 
- (when registering from a snapshot) One or more block device mappings.
- description str
- A description for the new OMI.
- file_location str
- (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 (()), 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_ strid 
- root_device_ strname 
- (when registering from a snapshot) The name of the root device for the new OMI.
- source_image_ strid 
- (when copying an OMI) The ID of the OMI you want to copy.
- source_region_ strname 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- 
Sequence[ImageTag Args] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts Args 
- vm_id str
- (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 (i386orx86_64).
- blockDevice List<Property Map>Mappings 
- (when registering from a snapshot) One or more block device mappings.
- description String
- A description for the new OMI.
- fileLocation String
- (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 (()), 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.
- outscaleImage StringId 
- rootDevice StringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- sourceImage StringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion StringName 
- (when copying an OMI) The name of the source Region (always the same as the Region of your account).
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
- vmId String
- (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
- PermissionsTo List<ImageLaunches Permissions To Launch> 
- Permissions for the resource.
- ProductCodes List<string>
- The product codes associated with the OMI.
- RequestId string
- RootDevice stringType 
- The type of root device used by the OMI (always bsu).
- State string
- The state of the OMI (pending|available|failed).
- StateComments List<ImageState Comment> 
- 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
- PermissionsTo []ImageLaunches Permissions To Launch 
- Permissions for the resource.
- ProductCodes []string
- The product codes associated with the OMI.
- RequestId string
- RootDevice stringType 
- The type of root device used by the OMI (always bsu).
- State string
- The state of the OMI (pending|available|failed).
- StateComments []ImageState Comment 
- 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
- permissionsTo List<ImageLaunches Permissions To Launch> 
- Permissions for the resource.
- productCodes List<String>
- The product codes associated with the OMI.
- requestId String
- rootDevice StringType 
- The type of root device used by the OMI (always bsu).
- state String
- The state of the OMI (pending|available|failed).
- stateComments List<ImageState Comment> 
- 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
- permissionsTo ImageLaunches Permissions To Launch[] 
- Permissions for the resource.
- productCodes string[]
- The product codes associated with the OMI.
- requestId string
- rootDevice stringType 
- The type of root device used by the OMI (always bsu).
- state string
- The state of the OMI (pending|available|failed).
- stateComments ImageState Comment[] 
- 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_ Sequence[Imagelaunches Permissions To Launch] 
- Permissions for the resource.
- product_codes Sequence[str]
- The product codes associated with the OMI.
- request_id str
- root_device_ strtype 
- The type of root device used by the OMI (always bsu).
- state str
- The state of the OMI (pending|available|failed).
- state_comments Sequence[ImageState Comment] 
- 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
- permissionsTo List<Property Map>Launches 
- Permissions for the resource.
- productCodes List<String>
- The product codes associated with the OMI.
- requestId String
- rootDevice StringType 
- 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) -> Imagefunc 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
- 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.
- 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 (i386orx86_64).
- BlockDevice List<ImageMappings Block Device Mapping> 
- (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
- (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 (()), 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.
- OutscaleImage stringId 
- PermissionsTo List<ImageLaunches Permissions To Launch> 
- Permissions for the resource.
- ProductCodes List<string>
- The product codes associated with the OMI.
- RequestId string
- RootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- RootDevice stringType 
- The type of root device used by the OMI (always bsu).
- SourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- SourceRegion stringName 
- (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<ImageState Comment> 
- Information about the change of state.
- 
List<ImageTag> 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
ImageTimeouts 
- VmId string
- (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 (i386orx86_64).
- BlockDevice []ImageMappings Block Device Mapping Args 
- (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
- (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 (()), 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.
- OutscaleImage stringId 
- PermissionsTo []ImageLaunches Permissions To Launch Args 
- Permissions for the resource.
- ProductCodes []string
- The product codes associated with the OMI.
- RequestId string
- RootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- RootDevice stringType 
- The type of root device used by the OMI (always bsu).
- SourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- SourceRegion stringName 
- (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 []ImageState Comment Args 
- Information about the change of state.
- 
[]ImageTag Args 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
ImageTimeouts Args 
- VmId string
- (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 (i386orx86_64).
- blockDevice List<ImageMappings Block Device Mapping> 
- (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
- (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 (()), 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.
- outscaleImage StringId 
- permissionsTo List<ImageLaunches Permissions To Launch> 
- Permissions for the resource.
- productCodes List<String>
- The product codes associated with the OMI.
- requestId String
- rootDevice StringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- rootDevice StringType 
- The type of root device used by the OMI (always bsu).
- sourceImage StringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion StringName 
- (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<ImageState Comment> 
- Information about the change of state.
- 
List<ImageTag> 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts 
- vmId String
- (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 (i386orx86_64).
- blockDevice ImageMappings Block Device Mapping[] 
- (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
- (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 (()), 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.
- outscaleImage stringId 
- permissionsTo ImageLaunches Permissions To Launch[] 
- Permissions for the resource.
- productCodes string[]
- The product codes associated with the OMI.
- requestId string
- rootDevice stringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- rootDevice stringType 
- The type of root device used by the OMI (always bsu).
- sourceImage stringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion stringName 
- (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 ImageState Comment[] 
- Information about the change of state.
- 
ImageTag[] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts 
- vmId string
- (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 (i386orx86_64).
- block_device_ Sequence[Imagemappings Block Device Mapping Args] 
- (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
- (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 (()), 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_ strid 
- permissions_to_ Sequence[Imagelaunches Permissions To Launch Args] 
- Permissions for the resource.
- product_codes Sequence[str]
- The product codes associated with the OMI.
- request_id str
- root_device_ strname 
- (when registering from a snapshot) The name of the root device for the new OMI.
- root_device_ strtype 
- The type of root device used by the OMI (always bsu).
- source_image_ strid 
- (when copying an OMI) The ID of the OMI you want to copy.
- source_region_ strname 
- (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[ImageState Comment Args] 
- Information about the change of state.
- 
Sequence[ImageTag Args] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
ImageTimeouts Args 
- vm_id str
- (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 (i386orx86_64).
- blockDevice List<Property Map>Mappings 
- (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
- (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 (()), 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.
- outscaleImage StringId 
- permissionsTo List<Property Map>Launches 
- Permissions for the resource.
- productCodes List<String>
- The product codes associated with the OMI.
- requestId String
- rootDevice StringName 
- (when registering from a snapshot) The name of the root device for the new OMI.
- rootDevice StringType 
- The type of root device used by the OMI (always bsu).
- sourceImage StringId 
- (when copying an OMI) The ID of the OMI you want to copy.
- sourceRegion StringName 
- (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.
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
- vmId String
- (when creating from a VM) The ID of the VM from which you want to create the OMI.
Supporting Types
ImageBlockDeviceMapping, ImageBlockDeviceMappingArgs        
- Bsus
List<ImageBlock Device Mapping Bsus> 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- VirtualDevice stringName 
- The name of the virtual device (ephemeralN).
- Bsus
[]ImageBlock Device Mapping Bsus 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- VirtualDevice stringName 
- The name of the virtual device (ephemeralN).
- bsus
List<ImageBlock Device Mapping Bsus> 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- virtualDevice StringName 
- The name of the virtual device (ephemeralN).
- bsus
ImageBlock Device Mapping Bsus[] 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- virtualDevice stringName 
- The name of the virtual device (ephemeralN).
- bsus
Sequence[ImageBlock Device Mapping Bsus] 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- virtual_device_ strname 
- 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 firstXis a letter betweenbandz, and the secondXis a letter betweenaandz).
- virtualDevice StringName 
- The name of the virtual device (ephemeralN).
ImageBlockDeviceMappingBsus, ImageBlockDeviceMappingBsusArgs          
- DeleteOn boolVm Deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
- DeleteOn boolVm Deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
- deleteOn BooleanVm Deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
- deleteOn booleanVm Deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
- delete_on_ boolvm_ deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
- deleteOn BooleanVm Deletion 
- 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 io1volume. The maximum number of IOPS allowed forio1volumes is13000with 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, astandardvolume is created. For more information about volume types, see About Volumes > Volume Types and IOPS.
ImagePermissionsToLaunch, ImagePermissionsToLaunchArgs        
- AccountIds List<string>
- One or more account IDs that the permission is associated with.
- GlobalPermission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
- AccountIds []string
- One or more account IDs that the permission is associated with.
- GlobalPermission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
- accountIds List<String>
- One or more account IDs that the permission is associated with.
- globalPermission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
- accountIds string[]
- One or more account IDs that the permission is associated with.
- globalPermission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
- account_ids Sequence[str]
- One or more account IDs that the permission is associated with.
- global_permission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
- accountIds List<String>
- One or more account IDs that the permission is associated with.
- globalPermission 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 isRemovals). (Response) If true, the resource is public. If false, the resource is private.
ImageStateComment, ImageStateCommentArgs      
- StateCode string
- The code of the change of state.
- StateMessage string
- A message explaining the change of state.
- StateCode string
- The code of the change of state.
- StateMessage string
- A message explaining the change of state.
- stateCode String
- The code of the change of state.
- stateMessage String
- A message explaining the change of state.
- stateCode string
- The code of the change of state.
- stateMessage string
- A message explaining the change of state.
- state_code str
- The code of the change of state.
- state_message str
- A message explaining the change of state.
- stateCode String
- The code of the change of state.
- stateMessage String
- A message explaining the change of state.
ImageTag, ImageTagArgs    
ImageTimeouts, ImageTimeoutsArgs    
Import
An image can be imported using its ID. For example:
console
$ pulumi import outscale:index/image:Image ImportedImage ami-12345678
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 outscaleTerraform Provider.