1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ecs
  5. ImageImport
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.ecs.ImageImport

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Import a copy of your local on-premise file to ECS, and appear as a custom replacement in the corresponding domain.

    NOTE: You must upload the image file to the object storage OSS in advance.

    NOTE: The region where the image is imported must be the same region as the OSS bucket where the image file is uploaded.

    NOTE: Available in 1.69.0+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _this = new alicloud.ecs.ImageImport("this", {
        architecture: "x86_64",
        description: "test import image",
        diskDeviceMappings: [{
            diskImageSize: 5,
            ossBucket: "testimportimage",
            ossObject: "root.img",
        }],
        imageName: "test-import-image",
        licenseType: "Auto",
        osType: "linux",
        platform: "Ubuntu",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    this = alicloud.ecs.ImageImport("this",
        architecture="x86_64",
        description="test import image",
        disk_device_mappings=[alicloud.ecs.ImageImportDiskDeviceMappingArgs(
            disk_image_size=5,
            oss_bucket="testimportimage",
            oss_object="root.img",
        )],
        image_name="test-import-image",
        license_type="Auto",
        os_type="linux",
        platform="Ubuntu")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.NewImageImport(ctx, "this", &ecs.ImageImportArgs{
    			Architecture: pulumi.String("x86_64"),
    			Description:  pulumi.String("test import image"),
    			DiskDeviceMappings: ecs.ImageImportDiskDeviceMappingArray{
    				&ecs.ImageImportDiskDeviceMappingArgs{
    					DiskImageSize: pulumi.Int(5),
    					OssBucket:     pulumi.String("testimportimage"),
    					OssObject:     pulumi.String("root.img"),
    				},
    			},
    			ImageName:   pulumi.String("test-import-image"),
    			LicenseType: pulumi.String("Auto"),
    			OsType:      pulumi.String("linux"),
    			Platform:    pulumi.String("Ubuntu"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new AliCloud.Ecs.ImageImport("this", new()
        {
            Architecture = "x86_64",
            Description = "test import image",
            DiskDeviceMappings = new[]
            {
                new AliCloud.Ecs.Inputs.ImageImportDiskDeviceMappingArgs
                {
                    DiskImageSize = 5,
                    OssBucket = "testimportimage",
                    OssObject = "root.img",
                },
            },
            ImageName = "test-import-image",
            LicenseType = "Auto",
            OsType = "linux",
            Platform = "Ubuntu",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ecs.ImageImport;
    import com.pulumi.alicloud.ecs.ImageImportArgs;
    import com.pulumi.alicloud.ecs.inputs.ImageImportDiskDeviceMappingArgs;
    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 this_ = new ImageImport("this", ImageImportArgs.builder()        
                .architecture("x86_64")
                .description("test import image")
                .diskDeviceMappings(ImageImportDiskDeviceMappingArgs.builder()
                    .diskImageSize(5)
                    .ossBucket("testimportimage")
                    .ossObject("root.img")
                    .build())
                .imageName("test-import-image")
                .licenseType("Auto")
                .osType("linux")
                .platform("Ubuntu")
                .build());
    
        }
    }
    
    resources:
      this:
        type: alicloud:ecs:ImageImport
        properties:
          architecture: x86_64
          description: test import image
          diskDeviceMappings:
            - diskImageSize: 5
              ossBucket: testimportimage
              ossObject: root.img
          imageName: test-import-image
          licenseType: Auto
          osType: linux
          platform: Ubuntu
    

    Attributes Reference0

    The following attributes are exported:

    • id - ID of the image.

    Create ImageImport Resource

    new ImageImport(name: string, args: ImageImportArgs, opts?: CustomResourceOptions);
    @overload
    def ImageImport(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    architecture: Optional[str] = None,
                    description: Optional[str] = None,
                    disk_device_mappings: Optional[Sequence[ImageImportDiskDeviceMappingArgs]] = None,
                    image_name: Optional[str] = None,
                    license_type: Optional[str] = None,
                    os_type: Optional[str] = None,
                    platform: Optional[str] = None)
    @overload
    def ImageImport(resource_name: str,
                    args: ImageImportArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewImageImport(ctx *Context, name string, args ImageImportArgs, opts ...ResourceOption) (*ImageImport, error)
    public ImageImport(string name, ImageImportArgs args, CustomResourceOptions? opts = null)
    public ImageImport(String name, ImageImportArgs args)
    public ImageImport(String name, ImageImportArgs args, CustomResourceOptions options)
    
    type: alicloud:ecs:ImageImport
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ImageImportArgs
    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 ImageImportArgs
    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 ImageImportArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImageImportArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImageImportArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ImageImport Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ImageImport resource accepts the following input properties:

    DiskDeviceMappings List<Pulumi.AliCloud.Ecs.Inputs.ImageImportDiskDeviceMapping>
    Description of the system with disks and snapshots under the image.
    Architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    Description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    ImageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    LicenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    OsType string
    Operating system platform type. Valid values: windows, Default is linux.
    Platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    DiskDeviceMappings []ImageImportDiskDeviceMappingArgs
    Description of the system with disks and snapshots under the image.
    Architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    Description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    ImageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    LicenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    OsType string
    Operating system platform type. Valid values: windows, Default is linux.
    Platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    diskDeviceMappings List<ImageImportDiskDeviceMapping>
    Description of the system with disks and snapshots under the image.
    architecture String
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description String
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    imageName String
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType String
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType String
    Operating system platform type. Valid values: windows, Default is linux.
    platform String
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    diskDeviceMappings ImageImportDiskDeviceMapping[]
    Description of the system with disks and snapshots under the image.
    architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    imageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType string
    Operating system platform type. Valid values: windows, Default is linux.
    platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    disk_device_mappings Sequence[ImageImportDiskDeviceMappingArgs]
    Description of the system with disks and snapshots under the image.
    architecture str
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description str
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    image_name str
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    license_type str
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    os_type str
    Operating system platform type. Valid values: windows, Default is linux.
    platform str
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    diskDeviceMappings List<Property Map>
    Description of the system with disks and snapshots under the image.
    architecture String
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description String
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    imageName String
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType String
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType String
    Operating system platform type. Valid values: windows, Default is linux.
    platform String
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ImageImport Resource

    Get an existing ImageImport 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?: ImageImportState, opts?: CustomResourceOptions): ImageImport
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            architecture: Optional[str] = None,
            description: Optional[str] = None,
            disk_device_mappings: Optional[Sequence[ImageImportDiskDeviceMappingArgs]] = None,
            image_name: Optional[str] = None,
            license_type: Optional[str] = None,
            os_type: Optional[str] = None,
            platform: Optional[str] = None) -> ImageImport
    func GetImageImport(ctx *Context, name string, id IDInput, state *ImageImportState, opts ...ResourceOption) (*ImageImport, error)
    public static ImageImport Get(string name, Input<string> id, ImageImportState? state, CustomResourceOptions? opts = null)
    public static ImageImport get(String name, Output<String> id, ImageImportState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    Description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    DiskDeviceMappings List<Pulumi.AliCloud.Ecs.Inputs.ImageImportDiskDeviceMapping>
    Description of the system with disks and snapshots under the image.
    ImageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    LicenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    OsType string
    Operating system platform type. Valid values: windows, Default is linux.
    Platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    Architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    Description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    DiskDeviceMappings []ImageImportDiskDeviceMappingArgs
    Description of the system with disks and snapshots under the image.
    ImageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    LicenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    OsType string
    Operating system platform type. Valid values: windows, Default is linux.
    Platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    architecture String
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description String
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    diskDeviceMappings List<ImageImportDiskDeviceMapping>
    Description of the system with disks and snapshots under the image.
    imageName String
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType String
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType String
    Operating system platform type. Valid values: windows, Default is linux.
    platform String
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    architecture string
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description string
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    diskDeviceMappings ImageImportDiskDeviceMapping[]
    Description of the system with disks and snapshots under the image.
    imageName string
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType string
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType string
    Operating system platform type. Valid values: windows, Default is linux.
    platform string
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    architecture str
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description str
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    disk_device_mappings Sequence[ImageImportDiskDeviceMappingArgs]
    Description of the system with disks and snapshots under the image.
    image_name str
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    license_type str
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    os_type str
    Operating system platform type. Valid values: windows, Default is linux.
    platform str
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.
    architecture String
    Specifies the architecture of the system disk after you specify a data disk snapshot as the data source of the system disk for creating an image. Valid values: i386 , Default is x86_64.
    description String
    Description of the image. The length is 2 to 256 English or Chinese characters, and cannot begin with http: // and https: //.
    diskDeviceMappings List<Property Map>
    Description of the system with disks and snapshots under the image.
    imageName String
    The image name. The length is 2 ~ 128 English or Chinese characters. Must start with a english letter or Chinese, and cannot start with http: // and https: //. Can contain numbers, colons (:), underscores (_), or hyphens (-).
    licenseType String
    The type of the license used to activate the operating system after the image is imported. Default value: Auto. Valid values: Auto,Aliyun,BYOL.
    osType String
    Operating system platform type. Valid values: windows, Default is linux.
    platform String
    The operating system distribution. Default value: Others Linux. More valid values refer to ImportImage OpenAPI. NOTE: It's default value is Ubuntu before version 1.197.0.

    Supporting Types

    ImageImportDiskDeviceMapping, ImageImportDiskDeviceMappingArgs

    Device string
    The name of disk N in the custom image.
    DiskImageSize int
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    Format string
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    OssBucket string
    Save the exported OSS bucket.
    OssObject string

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    Device string
    The name of disk N in the custom image.
    DiskImageSize int
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    Format string
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    OssBucket string
    Save the exported OSS bucket.
    OssObject string

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    device String
    The name of disk N in the custom image.
    diskImageSize Integer
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    format String
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    ossBucket String
    Save the exported OSS bucket.
    ossObject String

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    device string
    The name of disk N in the custom image.
    diskImageSize number
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    format string
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    ossBucket string
    Save the exported OSS bucket.
    ossObject string

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    device str
    The name of disk N in the custom image.
    disk_image_size int
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    format str
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    oss_bucket str
    Save the exported OSS bucket.
    oss_object str

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    device String
    The name of disk N in the custom image.
    diskImageSize Number
    Resolution size. You must ensure that the system disk space ≥ file system space. Ranges: When n = 1, the system disk: 5 ~ 500GiB, When n = 2 ~ 17, that is, data disk: 5 ~ 1000GiB, When temporary is introduced, the system automatically detects the size, which is subject to the detection result.
    format String
    Image format. Value range: When the RAW, VHD, qcow2 is imported into the image, the system automatically detects the image format, whichever comes first.
    ossBucket String
    Save the exported OSS bucket.
    ossObject String

    The file name of your OSS Object.

    NOTE: The disk_device_mapping is a list and it's first item will be used to system disk and other items are used to data disks.

    Import

    image can be imported using the id, e.g.

    $ pulumi import alicloud:ecs/imageImport:ImageImport default m-uf66871ape***yg1q***
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi