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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
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
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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
configuration:
vaultId:
type: dynamic
instanceId:
type: dynamic
resources:
test:
type: flexibleengine:ImagesImage
properties:
instanceId: ${instanceId}
vaultId: ${vaultId}
tags:
foo: bar2
key: value
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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
configuration:
backupId:
type: dynamic
resources:
test:
type: flexibleengine:ImagesImage
properties:
backupId: ${backupId}
tags:
foo: bar1
key: value
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 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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: &flexibleengine.ImagesImageTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Type: pulumi.String("string"),
VaultId: pulumi.String("string"),
})
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());
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")
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",
});
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
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:
- Backup
Id 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.
- Cmk
Id string - The master key used for encrypting an image.
- Description string
- A description of the image.
- Enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- Image
Url 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.
- Images
Image stringId - A unique ID assigned by IMS.
- Instance
Id 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. - Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- Max
Ram double - The maximum memory of the image in the unit of MB.
- Min
Disk 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.
- Min
Ram 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.
- Os
Version string - The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Images
Image Timeouts - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - Vault
Id 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 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.
- Cmk
Id string - The master key used for encrypting an image.
- Description string
- A description of the image.
- Enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- Image
Url 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.
- Images
Image stringId - A unique ID assigned by IMS.
- Instance
Id 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. - Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- Max
Ram float64 - The maximum memory of the image in the unit of MB.
- Min
Disk 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.
- Min
Ram 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.
- Os
Version string - The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
- map[string]string
- The tags of the image.
- Timeouts
Images
Image Timeouts Args - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - Vault
Id 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 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.
- cmk
Id String - The master key used for encrypting an image.
- description String
- A description of the image.
- enterprise
Project StringId - The enterprise project id of the image. Changing this creates a new image.
- image
Url 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.
- images
Image StringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram Double - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version String - The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
- Map<String,String>
- The tags of the image.
- timeouts
Images
Image Timeouts - type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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 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.
- cmk
Id string - The master key used for encrypting an image.
- description string
- A description of the image.
- enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- image
Url 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.
- images
Image stringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram number - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version string - The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
- {[key: string]: string}
- The tags of the image.
- timeouts
Images
Image Timeouts - type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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_ strid - 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_ strid - 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.
- Mapping[str, str]
- The tags of the image.
- timeouts
Images
Image Timeouts Args - type str
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - 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.
- backup
Id 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.
- cmk
Id String - The master key used for encrypting an image.
- description String
- A description of the image.
- enterprise
Project StringId - The enterprise project id of the image. Changing this creates a new image.
- image
Url 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.
- images
Image StringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram Number - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version String - The OS version. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket.
- Map<String>
- The tags of the image.
- timeouts Property Map
- type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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.
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size 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.
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size 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.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - id String
- The provider-assigned unique ID for this managed resource.
- image
Size 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.
- data
Origin string - The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
- disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - id string
- The provider-assigned unique ID for this managed resource.
- image
Size 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
, orqcow2
. - 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.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id', 'file,image_url' or 'server_backup,backup_id'.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - id String
- The provider-assigned unique ID for this managed resource.
- image
Size 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
- 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.
- Backup
Id 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.
- Cmk
Id string - The master key used for encrypting an image.
- Data
Origin 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.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- Image
Size string - The size(bytes) of the image file format.
- Image
Url 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.
- Images
Image stringId - A unique ID assigned by IMS.
- Instance
Id 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. - Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- Max
Ram double - The maximum memory of the image in the unit of MB.
- Min
Disk 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.
- Min
Ram 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.
- Os
Version 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.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Images
Image Timeouts - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - Vault
Id 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 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.
- Cmk
Id string - The master key used for encrypting an image.
- Data
Origin 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.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- Image
Size string - The size(bytes) of the image file format.
- Image
Url 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.
- Images
Image stringId - A unique ID assigned by IMS.
- Instance
Id 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. - Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- Max
Ram float64 - The maximum memory of the image in the unit of MB.
- Min
Disk 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.
- Min
Ram 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.
- Os
Version 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.
- map[string]string
- The tags of the image.
- Timeouts
Images
Image Timeouts Args - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - Vault
Id 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 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.
- cmk
Id String - The master key used for encrypting an image.
- data
Origin 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.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project StringId - The enterprise project id of the image. Changing this creates a new image.
- image
Size String - The size(bytes) of the image file format.
- image
Url 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.
- images
Image StringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram Double - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version 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.
- Map<String,String>
- The tags of the image.
- timeouts
Images
Image Timeouts - type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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 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.
- cmk
Id string - The master key used for encrypting an image.
- data
Origin 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.
- disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project stringId - The enterprise project id of the image. Changing this creates a new image.
- image
Size string - The size(bytes) of the image file format.
- image
Url 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.
- images
Image stringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram number - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version 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.
- {[key: string]: string}
- The tags of the image.
- timeouts
Images
Image Timeouts - type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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
, orqcow2
. - enterprise_
project_ strid - 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_ strid - 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.
- Mapping[str, str]
- The tags of the image.
- timeouts
Images
Image Timeouts Args - type str
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - 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.
- backup
Id 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.
- cmk
Id String - The master key used for encrypting an image.
- data
Origin 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.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project StringId - The enterprise project id of the image. Changing this creates a new image.
- image
Size String - The size(bytes) of the image file format.
- image
Url 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.
- images
Image StringId - A unique ID assigned by IMS.
- instance
Id 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. - is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false.
- max
Ram Number - The maximum memory of the image in the unit of MB.
- min
Disk 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.
- min
Ram 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.
- os
Version 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.
- Map<String>
- The tags of the image.
- timeouts Property Map
- type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
, orIronic
. - vault
Id 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
Import
Images can be imported using the id
, e.g.
bash
$ pulumi import flexibleengine:index/imagesImage:ImagesImage my_image <id>
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.