1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ImsDataImageV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ImsDataImageV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for IMS data image you can get at documentation portal

    Manages a V2 Data Image resource within OpenTelekomCloud IMS.

    Example Usage

    Creating a data disk image using an ECS

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const imsTest = new opentelekomcloud.ImsDataImageV2("imsTest", {
        description: "Create an image using an ECS.",
        tags: {
            foo: "bar",
            key: "value",
        },
        volumeId: "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    ims_test = opentelekomcloud.ImsDataImageV2("imsTest",
        description="Create an image using an ECS.",
        tags={
            "foo": "bar",
            "key": "value",
        },
        volume_id="54a6c3a4-8511-4d01-818f-3fe5177cbb06")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsTest", &opentelekomcloud.ImsDataImageV2Args{
    			Description: pulumi.String("Create an image using an ECS."),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    				"key": pulumi.String("value"),
    			},
    			VolumeId: pulumi.String("54a6c3a4-8511-4d01-818f-3fe5177cbb06"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var imsTest = new Opentelekomcloud.ImsDataImageV2("imsTest", new()
        {
            Description = "Create an image using an ECS.",
            Tags = 
            {
                { "foo", "bar" },
                { "key", "value" },
            },
            VolumeId = "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ImsDataImageV2;
    import com.pulumi.opentelekomcloud.ImsDataImageV2Args;
    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 imsTest = new ImsDataImageV2("imsTest", ImsDataImageV2Args.builder()
                .description("Create an image using an ECS.")
                .tags(Map.ofEntries(
                    Map.entry("foo", "bar"),
                    Map.entry("key", "value")
                ))
                .volumeId("54a6c3a4-8511-4d01-818f-3fe5177cbb06")
                .build());
    
        }
    }
    
    resources:
      imsTest:
        type: opentelekomcloud:ImsDataImageV2
        properties:
          description: Create an image using an ECS.
          tags:
            foo: bar
            key: value
          volumeId: 54a6c3a4-8511-4d01-818f-3fe5177cbb06
    

    Creating a data disk image in the OBS bucket

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const imsTestFile = new opentelekomcloud.ImsDataImageV2("imsTestFile", {
        description: "Create an image using a file in the OBS bucket.",
        imageUrl: "ims-image:centos70.qcow2",
        minDisk: 40,
        osType: "Linux",
        tags: {
            foo: "bar1",
            key: "value",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    ims_test_file = opentelekomcloud.ImsDataImageV2("imsTestFile",
        description="Create an image using a file in the OBS bucket.",
        image_url="ims-image:centos70.qcow2",
        min_disk=40,
        os_type="Linux",
        tags={
            "foo": "bar1",
            "key": "value",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsTestFile", &opentelekomcloud.ImsDataImageV2Args{
    			Description: pulumi.String("Create an image using a file in the OBS bucket."),
    			ImageUrl:    pulumi.String("ims-image:centos70.qcow2"),
    			MinDisk:     pulumi.Float64(40),
    			OsType:      pulumi.String("Linux"),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar1"),
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var imsTestFile = new Opentelekomcloud.ImsDataImageV2("imsTestFile", new()
        {
            Description = "Create an image using a file in the OBS bucket.",
            ImageUrl = "ims-image:centos70.qcow2",
            MinDisk = 40,
            OsType = "Linux",
            Tags = 
            {
                { "foo", "bar1" },
                { "key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ImsDataImageV2;
    import com.pulumi.opentelekomcloud.ImsDataImageV2Args;
    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 imsTestFile = new ImsDataImageV2("imsTestFile", ImsDataImageV2Args.builder()
                .description("Create an image using a file in the OBS bucket.")
                .imageUrl("ims-image:centos70.qcow2")
                .minDisk(40)
                .osType("Linux")
                .tags(Map.ofEntries(
                    Map.entry("foo", "bar1"),
                    Map.entry("key", "value")
                ))
                .build());
    
        }
    }
    
    resources:
      imsTestFile:
        type: opentelekomcloud:ImsDataImageV2
        properties:
          description: Create an image using a file in the OBS bucket.
          imageUrl: ims-image:centos70.qcow2
          minDisk: 40
          osType: Linux
          tags:
            foo: bar1
            key: value
    

    Create ImsDataImageV2 Resource

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

    Constructor syntax

    new ImsDataImageV2(name: string, args?: ImsDataImageV2Args, opts?: CustomResourceOptions);
    @overload
    def ImsDataImageV2(resource_name: str,
                       args: Optional[ImsDataImageV2Args] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ImsDataImageV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cmk_id: Optional[str] = None,
                       description: Optional[str] = None,
                       image_url: Optional[str] = None,
                       ims_data_image_v2_id: Optional[str] = None,
                       min_disk: Optional[float] = None,
                       name: Optional[str] = None,
                       os_type: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       timeouts: Optional[ImsDataImageV2TimeoutsArgs] = None,
                       volume_id: Optional[str] = None)
    func NewImsDataImageV2(ctx *Context, name string, args *ImsDataImageV2Args, opts ...ResourceOption) (*ImsDataImageV2, error)
    public ImsDataImageV2(string name, ImsDataImageV2Args? args = null, CustomResourceOptions? opts = null)
    public ImsDataImageV2(String name, ImsDataImageV2Args args)
    public ImsDataImageV2(String name, ImsDataImageV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:ImsDataImageV2
    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 ImsDataImageV2Args
    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 ImsDataImageV2Args
    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 ImsDataImageV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImsDataImageV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImsDataImageV2Args
    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 imsDataImageV2Resource = new Opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource", new()
    {
        CmkId = "string",
        Description = "string",
        ImageUrl = "string",
        ImsDataImageV2Id = "string",
        MinDisk = 0,
        Name = "string",
        OsType = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Opentelekomcloud.Inputs.ImsDataImageV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VolumeId = "string",
    });
    
    example, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsDataImageV2Resource", &opentelekomcloud.ImsDataImageV2Args{
    	CmkId:            pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	ImageUrl:         pulumi.String("string"),
    	ImsDataImageV2Id: pulumi.String("string"),
    	MinDisk:          pulumi.Float64(0),
    	Name:             pulumi.String("string"),
    	OsType:           pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.ImsDataImageV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VolumeId: pulumi.String("string"),
    })
    
    var imsDataImageV2Resource = new ImsDataImageV2("imsDataImageV2Resource", ImsDataImageV2Args.builder()
        .cmkId("string")
        .description("string")
        .imageUrl("string")
        .imsDataImageV2Id("string")
        .minDisk(0)
        .name("string")
        .osType("string")
        .tags(Map.of("string", "string"))
        .timeouts(ImsDataImageV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .volumeId("string")
        .build());
    
    ims_data_image_v2_resource = opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource",
        cmk_id="string",
        description="string",
        image_url="string",
        ims_data_image_v2_id="string",
        min_disk=0,
        name="string",
        os_type="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        },
        volume_id="string")
    
    const imsDataImageV2Resource = new opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource", {
        cmkId: "string",
        description: "string",
        imageUrl: "string",
        imsDataImageV2Id: "string",
        minDisk: 0,
        name: "string",
        osType: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
        volumeId: "string",
    });
    
    type: opentelekomcloud:ImsDataImageV2
    properties:
        cmkId: string
        description: string
        imageUrl: string
        imsDataImageV2Id: string
        minDisk: 0
        name: string
        osType: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
        volumeId: string
    

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

    CmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    Description string
    A description of the image. Changing this creates a new image.
    ImageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ImsDataImageV2Id string
    A unique ID assigned by IMS.
    MinDisk double
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    Name string
    The name of the image.
    OsType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    Tags Dictionary<string, string>
    The tags of the image.
    Timeouts ImsDataImageV2Timeouts
    VolumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    CmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    Description string
    A description of the image. Changing this creates a new image.
    ImageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ImsDataImageV2Id string
    A unique ID assigned by IMS.
    MinDisk float64
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    Name string
    The name of the image.
    OsType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    Tags map[string]string
    The tags of the image.
    Timeouts ImsDataImageV2TimeoutsArgs
    VolumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId String
    The master key used for encrypting an image. Changing this creates a new image.
    description String
    A description of the image. Changing this creates a new image.
    imageUrl String
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id String
    A unique ID assigned by IMS.
    minDisk Double
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name String
    The name of the image.
    osType String
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Map<String,String>
    The tags of the image.
    timeouts ImsDataImageV2Timeouts
    volumeId String
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    description string
    A description of the image. Changing this creates a new image.
    imageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id string
    A unique ID assigned by IMS.
    minDisk number
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name string
    The name of the image.
    osType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags {[key: string]: string}
    The tags of the image.
    timeouts ImsDataImageV2Timeouts
    volumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmk_id str
    The master key used for encrypting an image. Changing this creates a new image.
    description str
    A description of the image. Changing this creates a new image.
    image_url str
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ims_data_image_v2_id str
    A unique ID assigned by IMS.
    min_disk float
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name str
    The name of the image.
    os_type str
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Mapping[str, str]
    The tags of the image.
    timeouts ImsDataImageV2TimeoutsArgs
    volume_id str
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId String
    The master key used for encrypting an image. Changing this creates a new image.
    description String
    A description of the image. Changing this creates a new image.
    imageUrl String
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id String
    A unique ID assigned by IMS.
    minDisk Number
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name String
    The name of the image.
    osType String
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Map<String>
    The tags of the image.
    timeouts Property Map
    volumeId String
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.

    Outputs

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

    DataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    DiskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageSize string
    The size(bytes) of the image file format.
    Visibility string
    Whether the image is visible to other tenants.
    DataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    DiskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageSize string
    The size(bytes) of the image file format.
    Visibility string
    Whether the image is visible to other tenants.
    dataOrigin String
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    diskFormat String
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    id String
    The provider-assigned unique ID for this managed resource.
    imageSize String
    The size(bytes) of the image file format.
    visibility String
    Whether the image is visible to other tenants.
    dataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    diskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    id string
    The provider-assigned unique ID for this managed resource.
    imageSize string
    The size(bytes) of the image file format.
    visibility string
    Whether the image is visible to other tenants.
    data_origin str
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    disk_format str
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    id str
    The provider-assigned unique ID for this managed resource.
    image_size str
    The size(bytes) of the image file format.
    visibility str
    Whether the image is visible to other tenants.
    dataOrigin String
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    diskFormat String
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    id String
    The provider-assigned unique ID for this managed resource.
    imageSize String
    The size(bytes) of the image file format.
    visibility String
    Whether the image is visible to other tenants.

    Look up Existing ImsDataImageV2 Resource

    Get an existing ImsDataImageV2 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?: ImsDataImageV2State, opts?: CustomResourceOptions): ImsDataImageV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cmk_id: Optional[str] = None,
            data_origin: Optional[str] = None,
            description: Optional[str] = None,
            disk_format: Optional[str] = None,
            image_size: Optional[str] = None,
            image_url: Optional[str] = None,
            ims_data_image_v2_id: Optional[str] = None,
            min_disk: Optional[float] = None,
            name: Optional[str] = None,
            os_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[ImsDataImageV2TimeoutsArgs] = None,
            visibility: Optional[str] = None,
            volume_id: Optional[str] = None) -> ImsDataImageV2
    func GetImsDataImageV2(ctx *Context, name string, id IDInput, state *ImsDataImageV2State, opts ...ResourceOption) (*ImsDataImageV2, error)
    public static ImsDataImageV2 Get(string name, Input<string> id, ImsDataImageV2State? state, CustomResourceOptions? opts = null)
    public static ImsDataImageV2 get(String name, Output<String> id, ImsDataImageV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ImsDataImageV2    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.
    The following state arguments are supported:
    CmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    DataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    Description string
    A description of the image. Changing this creates a new image.
    DiskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    ImageSize string
    The size(bytes) of the image file format.
    ImageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ImsDataImageV2Id string
    A unique ID assigned by IMS.
    MinDisk double
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    Name string
    The name of the image.
    OsType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    Tags Dictionary<string, string>
    The tags of the image.
    Timeouts ImsDataImageV2Timeouts
    Visibility string
    Whether the image is visible to other tenants.
    VolumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    CmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    DataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    Description string
    A description of the image. Changing this creates a new image.
    DiskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    ImageSize string
    The size(bytes) of the image file format.
    ImageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ImsDataImageV2Id string
    A unique ID assigned by IMS.
    MinDisk float64
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    Name string
    The name of the image.
    OsType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    Tags map[string]string
    The tags of the image.
    Timeouts ImsDataImageV2TimeoutsArgs
    Visibility string
    Whether the image is visible to other tenants.
    VolumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId String
    The master key used for encrypting an image. Changing this creates a new image.
    dataOrigin String
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    description String
    A description of the image. Changing this creates a new image.
    diskFormat String
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    imageSize String
    The size(bytes) of the image file format.
    imageUrl String
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id String
    A unique ID assigned by IMS.
    minDisk Double
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name String
    The name of the image.
    osType String
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Map<String,String>
    The tags of the image.
    timeouts ImsDataImageV2Timeouts
    visibility String
    Whether the image is visible to other tenants.
    volumeId String
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId string
    The master key used for encrypting an image. Changing this creates a new image.
    dataOrigin string
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    description string
    A description of the image. Changing this creates a new image.
    diskFormat string
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    imageSize string
    The size(bytes) of the image file format.
    imageUrl string
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id string
    A unique ID assigned by IMS.
    minDisk number
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name string
    The name of the image.
    osType string
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags {[key: string]: string}
    The tags of the image.
    timeouts ImsDataImageV2Timeouts
    visibility string
    Whether the image is visible to other tenants.
    volumeId string
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmk_id str
    The master key used for encrypting an image. Changing this creates a new image.
    data_origin str
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    description str
    A description of the image. Changing this creates a new image.
    disk_format str
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    image_size str
    The size(bytes) of the image file format.
    image_url str
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    ims_data_image_v2_id str
    A unique ID assigned by IMS.
    min_disk float
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name str
    The name of the image.
    os_type str
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Mapping[str, str]
    The tags of the image.
    timeouts ImsDataImageV2TimeoutsArgs
    visibility str
    Whether the image is visible to other tenants.
    volume_id str
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
    cmkId String
    The master key used for encrypting an image. Changing this creates a new image.
    dataOrigin String
    The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
    description String
    A description of the image. Changing this creates a new image.
    diskFormat String
    The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
    imageSize String
    The size(bytes) of the image file format.
    imageUrl String
    The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
    imsDataImageV2Id String
    A unique ID assigned by IMS.
    minDisk Number
    The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
    name String
    The name of the image.
    osType String
    The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
    tags Map<String>
    The tags of the image.
    timeouts Property Map
    visibility String
    Whether the image is visible to other tenants.
    volumeId String
    The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.

    Supporting Types

    ImsDataImageV2Timeouts, ImsDataImageV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

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

    $ pulumi import opentelekomcloud:index/imsDataImageV2:ImsDataImageV2 my_image 7886e623-f1b3-473e-b882-67ba1c35887f
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud