1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. ImagesImage
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.ImagesImage

Explore with Pulumi AI

Manages an Image resource within FlexibleEngine IMS.

Example Usage

Creating an image from OBS bucket

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

const imsTestFile = new flexibleengine.ImagesImage("imsTestFile", {
    description: "Create an image from the OBS bucket.",
    imageUrl: "ims-image:centos70.qcow2",
    minDisk: 40,
    tags: {
        foo: "bar1",
        key: "value",
    },
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

ims_test_file = flexibleengine.ImagesImage("imsTestFile",
    description="Create an image from the OBS bucket.",
    image_url="ims-image:centos70.qcow2",
    min_disk=40,
    tags={
        "foo": "bar1",
        "key": "value",
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.NewImagesImage(ctx, "imsTestFile", &flexibleengine.ImagesImageArgs{
			Description: pulumi.String("Create an image from the OBS bucket."),
			ImageUrl:    pulumi.String("ims-image:centos70.qcow2"),
			MinDisk:     pulumi.Float64(40),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar1"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var imsTestFile = new Flexibleengine.ImagesImage("imsTestFile", new()
    {
        Description = "Create an image from the OBS bucket.",
        ImageUrl = "ims-image:centos70.qcow2",
        MinDisk = 40,
        Tags = 
        {
            { "foo", "bar1" },
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImage;
import com.pulumi.flexibleengine.ImagesImageArgs;
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 ImagesImage("imsTestFile", ImagesImageArgs.builder()
            .description("Create an image from the OBS bucket.")
            .imageUrl("ims-image:centos70.qcow2")
            .minDisk(40)
            .tags(Map.ofEntries(
                Map.entry("foo", "bar1"),
                Map.entry("key", "value")
            ))
            .build());

    }
}
Copy
resources:
  imsTestFile:
    type: flexibleengine:ImagesImage
    properties:
      description: Create an image from the OBS bucket.
      imageUrl: ims-image:centos70.qcow2
      minDisk: 40
      tags:
        foo: bar1
        key: value
Copy

Creating a whole image from an existing ECS

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

const config = new pulumi.Config();
const vaultId = config.requireObject("vaultId");
const instanceId = config.requireObject("instanceId");
const test = new flexibleengine.ImagesImage("test", {
    instanceId: instanceId,
    vaultId: vaultId,
    tags: {
        foo: "bar2",
        key: "value",
    },
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
vault_id = config.require_object("vaultId")
instance_id = config.require_object("instanceId")
test = flexibleengine.ImagesImage("test",
    instance_id=instance_id,
    vault_id=vault_id,
    tags={
        "foo": "bar2",
        "key": "value",
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		vaultId := cfg.RequireObject("vaultId")
		instanceId := cfg.RequireObject("instanceId")
		_, err := flexibleengine.NewImagesImage(ctx, "test", &flexibleengine.ImagesImageArgs{
			InstanceId: pulumi.Any(instanceId),
			VaultId:    pulumi.Any(vaultId),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar2"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var vaultId = config.RequireObject<dynamic>("vaultId");
    var instanceId = config.RequireObject<dynamic>("instanceId");
    var test = new Flexibleengine.ImagesImage("test", new()
    {
        InstanceId = instanceId,
        VaultId = vaultId,
        Tags = 
        {
            { "foo", "bar2" },
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImage;
import com.pulumi.flexibleengine.ImagesImageArgs;
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) {
        final var config = ctx.config();
        final var vaultId = config.get("vaultId");
        final var instanceId = config.get("instanceId");
        var test = new ImagesImage("test", ImagesImageArgs.builder()
            .instanceId(instanceId)
            .vaultId(vaultId)
            .tags(Map.ofEntries(
                Map.entry("foo", "bar2"),
                Map.entry("key", "value")
            ))
            .build());

    }
}
Copy
configuration:
  vaultId:
    type: dynamic
  instanceId:
    type: dynamic
resources:
  test:
    type: flexibleengine:ImagesImage
    properties:
      instanceId: ${instanceId}
      vaultId: ${vaultId}
      tags:
        foo: bar2
        key: value
Copy

Creating a whole image from CBR backup

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

const config = new pulumi.Config();
const backupId = config.requireObject("backupId");
const test = new flexibleengine.ImagesImage("test", {
    backupId: backupId,
    tags: {
        foo: "bar1",
        key: "value",
    },
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
backup_id = config.require_object("backupId")
test = flexibleengine.ImagesImage("test",
    backup_id=backup_id,
    tags={
        "foo": "bar1",
        "key": "value",
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		backupId := cfg.RequireObject("backupId")
		_, err := flexibleengine.NewImagesImage(ctx, "test", &flexibleengine.ImagesImageArgs{
			BackupId: pulumi.Any(backupId),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar1"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var backupId = config.RequireObject<dynamic>("backupId");
    var test = new Flexibleengine.ImagesImage("test", new()
    {
        BackupId = backupId,
        Tags = 
        {
            { "foo", "bar1" },
            { "key", "value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImage;
import com.pulumi.flexibleengine.ImagesImageArgs;
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) {
        final var config = ctx.config();
        final var backupId = config.get("backupId");
        var test = new ImagesImage("test", ImagesImageArgs.builder()
            .backupId(backupId)
            .tags(Map.ofEntries(
                Map.entry("foo", "bar1"),
                Map.entry("key", "value")
            ))
            .build());

    }
}
Copy
configuration:
  backupId:
    type: dynamic
resources:
  test:
    type: flexibleengine:ImagesImage
    properties:
      backupId: ${backupId}
      tags:
        foo: bar1
        key: value
Copy

Create ImagesImage Resource

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

Constructor syntax

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

@overload
def ImagesImage(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                backup_id: Optional[str] = None,
                cmk_id: Optional[str] = None,
                description: Optional[str] = None,
                enterprise_project_id: Optional[str] = None,
                image_url: Optional[str] = None,
                images_image_id: Optional[str] = None,
                instance_id: Optional[str] = None,
                is_config: Optional[bool] = None,
                max_ram: Optional[float] = None,
                min_disk: Optional[float] = None,
                min_ram: Optional[float] = None,
                name: Optional[str] = None,
                os_version: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                timeouts: Optional[ImagesImageTimeoutsArgs] = None,
                type: Optional[str] = None,
                vault_id: Optional[str] = None)
func NewImagesImage(ctx *Context, name string, args *ImagesImageArgs, opts ...ResourceOption) (*ImagesImage, error)
public ImagesImage(string name, ImagesImageArgs? args = null, CustomResourceOptions? opts = null)
public ImagesImage(String name, ImagesImageArgs args)
public ImagesImage(String name, ImagesImageArgs args, CustomResourceOptions options)
type: flexibleengine:ImagesImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ImagesImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ImagesImageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ImagesImageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ImagesImageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ImagesImageArgs
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 imagesImageResource = new Flexibleengine.ImagesImage("imagesImageResource", new()
{
    BackupId = "string",
    CmkId = "string",
    Description = "string",
    EnterpriseProjectId = "string",
    ImageUrl = "string",
    ImagesImageId = "string",
    InstanceId = "string",
    IsConfig = false,
    MaxRam = 0,
    MinDisk = 0,
    MinRam = 0,
    Name = "string",
    OsVersion = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Flexibleengine.Inputs.ImagesImageTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    Type = "string",
    VaultId = "string",
});
Copy
example, err := flexibleengine.NewImagesImage(ctx, "imagesImageResource", &flexibleengine.ImagesImageArgs{
BackupId: pulumi.String("string"),
CmkId: pulumi.String("string"),
Description: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
ImageUrl: pulumi.String("string"),
ImagesImageId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
IsConfig: pulumi.Bool(false),
MaxRam: pulumi.Float64(0),
MinDisk: pulumi.Float64(0),
MinRam: pulumi.Float64(0),
Name: pulumi.String("string"),
OsVersion: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &.ImagesImageTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Type: pulumi.String("string"),
VaultId: pulumi.String("string"),
})
Copy
var imagesImageResource = new ImagesImage("imagesImageResource", ImagesImageArgs.builder()
    .backupId("string")
    .cmkId("string")
    .description("string")
    .enterpriseProjectId("string")
    .imageUrl("string")
    .imagesImageId("string")
    .instanceId("string")
    .isConfig(false)
    .maxRam(0)
    .minDisk(0)
    .minRam(0)
    .name("string")
    .osVersion("string")
    .tags(Map.of("string", "string"))
    .timeouts(ImagesImageTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .type("string")
    .vaultId("string")
    .build());
Copy
images_image_resource = flexibleengine.ImagesImage("imagesImageResource",
    backup_id="string",
    cmk_id="string",
    description="string",
    enterprise_project_id="string",
    image_url="string",
    images_image_id="string",
    instance_id="string",
    is_config=False,
    max_ram=0,
    min_disk=0,
    min_ram=0,
    name="string",
    os_version="string",
    tags={
        "string": "string",
    },
    timeouts={
        "create": "string",
        "delete": "string",
    },
    type="string",
    vault_id="string")
Copy
const imagesImageResource = new flexibleengine.ImagesImage("imagesImageResource", {
    backupId: "string",
    cmkId: "string",
    description: "string",
    enterpriseProjectId: "string",
    imageUrl: "string",
    imagesImageId: "string",
    instanceId: "string",
    isConfig: false,
    maxRam: 0,
    minDisk: 0,
    minRam: 0,
    name: "string",
    osVersion: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        create: "string",
        "delete": "string",
    },
    type: "string",
    vaultId: "string",
});
Copy
type: flexibleengine:ImagesImage
properties:
    backupId: string
    cmkId: string
    description: string
    enterpriseProjectId: string
    imageUrl: string
    imagesImageId: string
    instanceId: string
    isConfig: false
    maxRam: 0
    minDisk: 0
    minRam: 0
    name: string
    osVersion: string
    tags:
        string: string
    timeouts:
        create: string
        delete: string
    type: string
    vaultId: string
Copy

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

BackupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
CmkId string
The master key used for encrypting an image.
Description string
A description of the image.
EnterpriseProjectId string
The enterprise project id 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.
ImagesImageId string
A unique ID assigned by IMS.
InstanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
IsConfig bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
MaxRam double
The maximum memory of the image in the unit of MB.
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.
MinRam double
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
Name string
The name of the image.
OsVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
Tags Dictionary<string, string>
The tags of the image.
Timeouts ImagesImageTimeouts
Type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
VaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
BackupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
CmkId string
The master key used for encrypting an image.
Description string
A description of the image.
EnterpriseProjectId string
The enterprise project id 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.
ImagesImageId string
A unique ID assigned by IMS.
InstanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
IsConfig bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
MaxRam float64
The maximum memory of the image in the unit of MB.
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.
MinRam float64
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
Name string
The name of the image.
OsVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
Tags map[string]string
The tags of the image.
Timeouts ImagesImageTimeoutsArgs
Type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
VaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
backupId String
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
cmkId String
The master key used for encrypting an image.
description String
A description of the image.
enterpriseProjectId String
The enterprise project id 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.
imagesImageId String
A unique ID assigned by IMS.
instanceId String
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig Boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam Double
The maximum memory of the image in the unit of MB.
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.
minRam Double
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name String
The name of the image.
osVersion String
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
tags Map<String,String>
The tags of the image.
timeouts ImagesImageTimeouts
type String
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId String
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
backupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
cmkId string
The master key used for encrypting an image.
description string
A description of the image.
enterpriseProjectId string
The enterprise project id 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.
imagesImageId string
A unique ID assigned by IMS.
instanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam number
The maximum memory of the image in the unit of MB.
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.
minRam number
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name string
The name of the image.
osVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
tags {[key: string]: string}
The tags of the image.
timeouts ImagesImageTimeouts
type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
backup_id str
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
cmk_id str
The master key used for encrypting an image.
description str
A description of the image.
enterprise_project_id str
The enterprise project id 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.
images_image_id str
A unique ID assigned by IMS.
instance_id str
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
is_config bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
max_ram float
The maximum memory of the image in the unit of MB.
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.
min_ram float
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name str
The name of the image.
os_version str
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
tags Mapping[str, str]
The tags of the image.
timeouts ImagesImageTimeoutsArgs
type str
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vault_id str
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
backupId String
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
cmkId String
The master key used for encrypting an image.
description String
A description of the image.
enterpriseProjectId String
The enterprise project id 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.
imagesImageId String
A unique ID assigned by IMS.
instanceId String
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig Boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam Number
The maximum memory of the image in the unit of MB.
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.
minRam Number
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name String
The name of the image.
osVersion String
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
tags Map<String>
The tags of the image.
timeouts Property Map
type String
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId String
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.

Outputs

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

Checksum string
The checksum of the data associated with the image.
DataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
Status string
The status of the image.
Visibility string
Whether the image is visible to other tenants.
Checksum string
The checksum of the data associated with the image.
DataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
Status string
The status of the image.
Visibility string
Whether the image is visible to other tenants.
checksum String
The checksum of the data associated with the image.
dataOrigin String
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
status String
The status of the image.
visibility String
Whether the image is visible to other tenants.
checksum string
The checksum of the data associated with the image.
dataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
status string
The status of the image.
visibility string
Whether the image is visible to other tenants.
checksum str
The checksum of the data associated with the image.
data_origin str
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
status str
The status of the image.
visibility str
Whether the image is visible to other tenants.
checksum String
The checksum of the data associated with the image.
dataOrigin String
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
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.
status String
The status of the image.
visibility String
Whether the image is visible to other tenants.

Look up Existing ImagesImage Resource

Get an existing ImagesImage 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?: ImagesImageState, opts?: CustomResourceOptions): ImagesImage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_id: Optional[str] = None,
        checksum: Optional[str] = None,
        cmk_id: Optional[str] = None,
        data_origin: Optional[str] = None,
        description: Optional[str] = None,
        disk_format: Optional[str] = None,
        enterprise_project_id: Optional[str] = None,
        image_size: Optional[str] = None,
        image_url: Optional[str] = None,
        images_image_id: Optional[str] = None,
        instance_id: Optional[str] = None,
        is_config: Optional[bool] = None,
        max_ram: Optional[float] = None,
        min_disk: Optional[float] = None,
        min_ram: Optional[float] = None,
        name: Optional[str] = None,
        os_version: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        timeouts: Optional[ImagesImageTimeoutsArgs] = None,
        type: Optional[str] = None,
        vault_id: Optional[str] = None,
        visibility: Optional[str] = None) -> ImagesImage
func GetImagesImage(ctx *Context, name string, id IDInput, state *ImagesImageState, opts ...ResourceOption) (*ImagesImage, error)
public static ImagesImage Get(string name, Input<string> id, ImagesImageState? state, CustomResourceOptions? opts = null)
public static ImagesImage get(String name, Output<String> id, ImagesImageState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:ImagesImage    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
Checksum string
The checksum of the data associated with the image.
CmkId string
The master key used for encrypting an image.
DataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
Description string
A description of the image.
DiskFormat string
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
EnterpriseProjectId string
The enterprise project id of the image. Changing this creates a new image.
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.
ImagesImageId string
A unique ID assigned by IMS.
InstanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
IsConfig bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
MaxRam double
The maximum memory of the image in the unit of MB.
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.
MinRam double
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
Name string
The name of the image.
OsVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
Status string
The status of the image.
Tags Dictionary<string, string>
The tags of the image.
Timeouts ImagesImageTimeouts
Type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
VaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
Visibility string
Whether the image is visible to other tenants.
BackupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
Checksum string
The checksum of the data associated with the image.
CmkId string
The master key used for encrypting an image.
DataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
Description string
A description of the image.
DiskFormat string
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
EnterpriseProjectId string
The enterprise project id of the image. Changing this creates a new image.
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.
ImagesImageId string
A unique ID assigned by IMS.
InstanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
IsConfig bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
MaxRam float64
The maximum memory of the image in the unit of MB.
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.
MinRam float64
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
Name string
The name of the image.
OsVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
Status string
The status of the image.
Tags map[string]string
The tags of the image.
Timeouts ImagesImageTimeoutsArgs
Type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
VaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
Visibility string
Whether the image is visible to other tenants.
backupId String
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
checksum String
The checksum of the data associated with the image.
cmkId String
The master key used for encrypting an image.
dataOrigin String
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
description String
A description of the image.
diskFormat String
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId String
The enterprise project id of the image. Changing this creates a new image.
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.
imagesImageId String
A unique ID assigned by IMS.
instanceId String
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig Boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam Double
The maximum memory of the image in the unit of MB.
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.
minRam Double
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name String
The name of the image.
osVersion String
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
status String
The status of the image.
tags Map<String,String>
The tags of the image.
timeouts ImagesImageTimeouts
type String
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId String
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
visibility String
Whether the image is visible to other tenants.
backupId string
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
checksum string
The checksum of the data associated with the image.
cmkId string
The master key used for encrypting an image.
dataOrigin string
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
description string
A description of the image.
diskFormat string
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId string
The enterprise project id of the image. Changing this creates a new image.
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.
imagesImageId string
A unique ID assigned by IMS.
instanceId string
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam number
The maximum memory of the image in the unit of MB.
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.
minRam number
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name string
The name of the image.
osVersion string
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
status string
The status of the image.
tags {[key: string]: string}
The tags of the image.
timeouts ImagesImageTimeouts
type string
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId string
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
visibility string
Whether the image is visible to other tenants.
backup_id str
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
checksum str
The checksum of the data associated with the image.
cmk_id str
The master key used for encrypting an image.
data_origin str
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
description str
A description of the image.
disk_format str
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterprise_project_id str
The enterprise project id of the image. Changing this creates a new image.
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.
images_image_id str
A unique ID assigned by IMS.
instance_id str
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
is_config bool
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
max_ram float
The maximum memory of the image in the unit of MB.
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.
min_ram float
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name str
The name of the image.
os_version str
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
status str
The status of the image.
tags Mapping[str, str]
The tags of the image.
timeouts ImagesImageTimeoutsArgs
type str
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vault_id str
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
visibility str
Whether the image is visible to other tenants.
backupId String
The ID of the CBR backup that needs to be converted into an image. This parameter is mandatory when you create a private whole image from a CBR backup.
checksum String
The checksum of the data associated with the image.
cmkId String
The master key used for encrypting an image.
dataOrigin String
The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
description String
A description of the image.
diskFormat String
The image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId String
The enterprise project id of the image. Changing this creates a new image.
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.
imagesImageId String
A unique ID assigned by IMS.
instanceId String
The ID of the ECS that needs to be converted into an image. This parameter is mandatory when you create a private image or a private whole image from an ECS. If the value of vault_id is not empty, then a whole image will be created.
isConfig Boolean
If automatic configuration is required, set the value to true. Otherwise, set the value to false.
maxRam Number
The maximum memory of the image in the unit of MB.
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.
minRam Number
The minimum memory of the image in the unit of MB. The default value is 0, indicating that the memory is not restricted.
name String
The name of the image.
osVersion String
The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
status String
The status of the image.
tags Map<String>
The tags of the image.
timeouts Property Map
type String
The image type. Must be one of ECS, FusionCompute, BMS, or Ironic.
vaultId String
The ID of the vault to which an ECS is to be added or has been added. This parameter is mandatory when you create a private whole image from an ECS.
visibility String
Whether the image is visible to other tenants.

Supporting Types

ImagesImageTimeouts
, ImagesImageTimeoutsArgs

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.

bash

$ pulumi import flexibleengine:index/imagesImage:ImagesImage my_image <id>
Copy

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

API response. The missing attributes include: vault_id. It is generally recommended running pulumi preview after

importing the image. You can then decide if changes should be applied to the image, or the resource

definition should be updated to align with the image. Also you can ignore changes as below.

bash

resource “flexibleengine_images_image” “test” {

lifecycle {

ignore_changes = [

  vault_id,

]

}

}

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

Package Details

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