opentelekomcloud.ImsImageV2
Explore with Pulumi AI
Up-to-date reference of API arguments for IMS image you can get at documentation portal
Manages a V2 Image resource within OpenTelekomCloud IMS.
Example Usage
Creating an image using an ECS
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const imsTest = new opentelekomcloud.ImsImageV2("imsTest", {
description: "Create an image using an ECS.",
instanceId: "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
ims_test = opentelekomcloud.ImsImageV2("imsTest",
description="Create an image using an ECS.",
instance_id="54a6c3a4-8511-4d01-818f-3fe5177cbb06",
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewImsImageV2(ctx, "imsTest", &opentelekomcloud.ImsImageV2Args{
Description: pulumi.String("Create an image using an ECS."),
InstanceId: pulumi.String("54a6c3a4-8511-4d01-818f-3fe5177cbb06"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var imsTest = new Opentelekomcloud.ImsImageV2("imsTest", new()
{
Description = "Create an image using an ECS.",
InstanceId = "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ImsImageV2;
import com.pulumi.opentelekomcloud.ImsImageV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var imsTest = new ImsImageV2("imsTest", ImsImageV2Args.builder()
.description("Create an image using an ECS.")
.instanceId("54a6c3a4-8511-4d01-818f-3fe5177cbb06")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
resources:
imsTest:
type: opentelekomcloud:ImsImageV2
properties:
description: Create an image using an ECS.
instanceId: 54a6c3a4-8511-4d01-818f-3fe5177cbb06
tags:
foo: bar
key: value
Creating an image in the OBS bucket
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const imsTestFile = new opentelekomcloud.ImsImageV2("imsTestFile", {
description: "Create an image using a file in the OBS bucket.",
imageUrl: "ims-image:centos70.qcow2",
minDisk: 40,
tags: {
foo: "bar1",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
ims_test_file = opentelekomcloud.ImsImageV2("imsTestFile",
description="Create an image using a file in 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/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewImsImageV2(ctx, "imsTestFile", &opentelekomcloud.ImsImageV2Args{
Description: pulumi.String("Create an image using a file in 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 Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var imsTestFile = new Opentelekomcloud.ImsImageV2("imsTestFile", new()
{
Description = "Create an image using a file in 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.opentelekomcloud.ImsImageV2;
import com.pulumi.opentelekomcloud.ImsImageV2Args;
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 ImsImageV2("imsTestFile", ImsImageV2Args.builder()
.description("Create an image using a file in 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: opentelekomcloud:ImsImageV2
properties:
description: Create an image using a file in the OBS bucket.
imageUrl: ims-image:centos70.qcow2
minDisk: 40
tags:
foo: bar1
key: value
Creating an image using an Volume
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const imageVolume = new opentelekomcloud.ImsImageV2("imageVolume", {
description: "created by Terraform",
osVersion: "Debian GNU/Linux 10.0.0 64bit",
tags: {
foo: "bar",
key: "value",
},
volumeId: "54a6c3a4-8511-4d01-818f-3fe5177cbb07",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
image_volume = opentelekomcloud.ImsImageV2("imageVolume",
description="created by Terraform",
os_version="Debian GNU/Linux 10.0.0 64bit",
tags={
"foo": "bar",
"key": "value",
},
volume_id="54a6c3a4-8511-4d01-818f-3fe5177cbb07")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewImsImageV2(ctx, "imageVolume", &opentelekomcloud.ImsImageV2Args{
Description: pulumi.String("created by Terraform"),
OsVersion: pulumi.String("Debian GNU/Linux 10.0.0 64bit"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
VolumeId: pulumi.String("54a6c3a4-8511-4d01-818f-3fe5177cbb07"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var imageVolume = new Opentelekomcloud.ImsImageV2("imageVolume", new()
{
Description = "created by Terraform",
OsVersion = "Debian GNU/Linux 10.0.0 64bit",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
VolumeId = "54a6c3a4-8511-4d01-818f-3fe5177cbb07",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ImsImageV2;
import com.pulumi.opentelekomcloud.ImsImageV2Args;
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 imageVolume = new ImsImageV2("imageVolume", ImsImageV2Args.builder()
.description("created by Terraform")
.osVersion("Debian GNU/Linux 10.0.0 64bit")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.volumeId("54a6c3a4-8511-4d01-818f-3fe5177cbb07")
.build());
}
}
resources:
imageVolume:
type: opentelekomcloud:ImsImageV2
properties:
description: created by Terraform
osVersion: Debian GNU/Linux 10.0.0 64bit
tags:
foo: bar
key: value
volumeId: 54a6c3a4-8511-4d01-818f-3fe5177cbb07
Create ImsImageV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImsImageV2(name: string, args?: ImsImageV2Args, opts?: CustomResourceOptions);
@overload
def ImsImageV2(resource_name: str,
args: Optional[ImsImageV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ImsImageV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
cmk_id: Optional[str] = None,
description: Optional[str] = None,
hw_firmware_type: Optional[str] = None,
image_url: Optional[str] = None,
ims_image_v2_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[ImsImageV2TimeoutsArgs] = None,
type: Optional[str] = None,
volume_id: Optional[str] = None)
func NewImsImageV2(ctx *Context, name string, args *ImsImageV2Args, opts ...ResourceOption) (*ImsImageV2, error)
public ImsImageV2(string name, ImsImageV2Args? args = null, CustomResourceOptions? opts = null)
public ImsImageV2(String name, ImsImageV2Args args)
public ImsImageV2(String name, ImsImageV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ImsImageV2
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 ImsImageV2Args
- 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 ImsImageV2Args
- 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 ImsImageV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImsImageV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImsImageV2Args
- 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 imsImageV2Resource = new Opentelekomcloud.ImsImageV2("imsImageV2Resource", new()
{
CmkId = "string",
Description = "string",
HwFirmwareType = "string",
ImageUrl = "string",
ImsImageV2Id = "string",
InstanceId = "string",
IsConfig = false,
MaxRam = 0,
MinDisk = 0,
MinRam = 0,
Name = "string",
OsVersion = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.ImsImageV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
Type = "string",
VolumeId = "string",
});
example, err := opentelekomcloud.NewImsImageV2(ctx, "imsImageV2Resource", &opentelekomcloud.ImsImageV2Args{
CmkId: pulumi.String("string"),
Description: pulumi.String("string"),
HwFirmwareType: pulumi.String("string"),
ImageUrl: pulumi.String("string"),
ImsImageV2Id: 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: &opentelekomcloud.ImsImageV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Type: pulumi.String("string"),
VolumeId: pulumi.String("string"),
})
var imsImageV2Resource = new ImsImageV2("imsImageV2Resource", ImsImageV2Args.builder()
.cmkId("string")
.description("string")
.hwFirmwareType("string")
.imageUrl("string")
.imsImageV2Id("string")
.instanceId("string")
.isConfig(false)
.maxRam(0)
.minDisk(0)
.minRam(0)
.name("string")
.osVersion("string")
.tags(Map.of("string", "string"))
.timeouts(ImsImageV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.type("string")
.volumeId("string")
.build());
ims_image_v2_resource = opentelekomcloud.ImsImageV2("imsImageV2Resource",
cmk_id="string",
description="string",
hw_firmware_type="string",
image_url="string",
ims_image_v2_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",
volume_id="string")
const imsImageV2Resource = new opentelekomcloud.ImsImageV2("imsImageV2Resource", {
cmkId: "string",
description: "string",
hwFirmwareType: "string",
imageUrl: "string",
imsImageV2Id: "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",
volumeId: "string",
});
type: opentelekomcloud:ImsImageV2
properties:
cmkId: string
description: string
hwFirmwareType: string
imageUrl: string
imsImageV2Id: 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
volumeId: string
ImsImageV2 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 ImsImageV2 resource accepts the following input properties:
- Cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- Description string
- A description of the image. Changing this creates a new image.
- Hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- Ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- Max
Ram double - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Ims
Image V2Timeouts - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - Volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- Cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- Description string
- A description of the image. Changing this creates a new image.
- Hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- Ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- Max
Ram float64 - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- map[string]string
- The tags of the image.
- Timeouts
Ims
Image V2Timeouts Args - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - Volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id String - The master key used for encrypting an image. Changing this creates a new image.
- description String
- A description of the image. Changing this creates a new image.
- hw
Firmware StringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image StringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram Double - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Map<String,String>
- The tags of the image.
- timeouts
Ims
Image V2Timeouts - type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - volume
Id String - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- description string
- A description of the image. Changing this creates a new image.
- hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram number - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- {[key: string]: string}
- The tags of the image.
- timeouts
Ims
Image V2Timeouts - type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk_
id str - The master key used for encrypting an image. Changing this creates a new image.
- description str
- A description of the image. Changing this creates a new image.
- hw_
firmware_ strtype - Specifies the boot mode. The value can be
bios
oruefi
. - image_
url str - The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
- ims_
image_ strv2_ id - 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 from an ECS. Changing this creates a new image.
- is_
config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max_
ram float - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- min_
disk float - The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Mapping[str, str]
- The tags of the image.
- timeouts
Ims
Image V2Timeouts Args - type str
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - volume_
id str - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id String - The master key used for encrypting an image. Changing this creates a new image.
- description String
- A description of the image. Changing this creates a new image.
- hw
Firmware StringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image StringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram Number - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Map<String>
- The tags of the image.
- timeouts Property Map
- type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - volume
Id String - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImsImageV2 resource produces the following output properties:
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - File string
- The URL for uploading and downloading the image file.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size string - The size(bytes) of the image file format.
- Visibility string
- Whether the image is visible to other tenants.
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - File string
- The URL for uploading and downloading the image file.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size string - The size(bytes) of the image file format.
- Visibility string
- Whether the image is visible to other tenants.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file String
- The URL for uploading and downloading the image file.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Size String - The size(bytes) of the image file format.
- visibility String
- Whether the image is visible to other tenants.
- data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file string
- The URL for uploading and downloading the image file.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Size string - The size(bytes) of the image file format.
- visibility string
- Whether the image is visible to other tenants.
- data_
origin str - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk_
format str - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file str
- The URL for uploading and downloading the image file.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
size str - The size(bytes) of the image file format.
- visibility str
- Whether the image is visible to other tenants.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file String
- The URL for uploading and downloading the image file.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Size String - The size(bytes) of the image file format.
- visibility String
- Whether the image is visible to other tenants.
Look up Existing ImsImageV2 Resource
Get an existing ImsImageV2 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?: ImsImageV2State, opts?: CustomResourceOptions): ImsImageV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cmk_id: Optional[str] = None,
data_origin: Optional[str] = None,
description: Optional[str] = None,
disk_format: Optional[str] = None,
file: Optional[str] = None,
hw_firmware_type: Optional[str] = None,
image_size: Optional[str] = None,
image_url: Optional[str] = None,
ims_image_v2_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[ImsImageV2TimeoutsArgs] = None,
type: Optional[str] = None,
visibility: Optional[str] = None,
volume_id: Optional[str] = None) -> ImsImageV2
func GetImsImageV2(ctx *Context, name string, id IDInput, state *ImsImageV2State, opts ...ResourceOption) (*ImsImageV2, error)
public static ImsImageV2 Get(string name, Input<string> id, ImsImageV2State? state, CustomResourceOptions? opts = null)
public static ImsImageV2 get(String name, Output<String> id, ImsImageV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ImsImageV2 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.
- Cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Description string
- A description of the image. Changing this creates a new image.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - File string
- The URL for uploading and downloading the image file.
- Hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- Ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- Max
Ram double - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Ims
Image V2Timeouts - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - Visibility string
- Whether the image is visible to other tenants.
- Volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- Cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- Data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Description string
- A description of the image. Changing this creates a new image.
- Disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - File string
- The URL for uploading and downloading the image file.
- Hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- Ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- Is
Config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- Max
Ram float64 - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- map[string]string
- The tags of the image.
- Timeouts
Ims
Image V2Timeouts Args - Type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - Visibility string
- Whether the image is visible to other tenants.
- Volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id String - The master key used for encrypting an image. Changing this creates a new image.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- description String
- A description of the image. Changing this creates a new image.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file String
- The URL for uploading and downloading the image file.
- hw
Firmware StringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image StringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram Double - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Map<String,String>
- The tags of the image.
- timeouts
Ims
Image V2Timeouts - type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - visibility String
- Whether the image is visible to other tenants.
- volume
Id String - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id string - The master key used for encrypting an image. Changing this creates a new image.
- data
Origin string - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- description string
- A description of the image. Changing this creates a new image.
- disk
Format string - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file string
- The URL for uploading and downloading the image file.
- hw
Firmware stringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image stringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram number - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- {[key: string]: string}
- The tags of the image.
- timeouts
Ims
Image V2Timeouts - type string
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - visibility string
- Whether the image is visible to other tenants.
- volume
Id string - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk_
id str - The master key used for encrypting an image. Changing this creates a new image.
- data_
origin str - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- description str
- A description of the image. Changing this creates a new image.
- disk_
format str - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file str
- The URL for uploading and downloading the image file.
- hw_
firmware_ strtype - Specifies the boot mode. The value can be
bios
oruefi
. - image_
size str - The size(bytes) of the image file format.
- image_
url str - The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
- ims_
image_ strv2_ id - 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 from an ECS. Changing this creates a new image.
- is_
config bool - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max_
ram float - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- min_
disk float - The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Mapping[str, str]
- The tags of the image.
- timeouts
Ims
Image V2Timeouts Args - type str
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - visibility str
- Whether the image is visible to other tenants.
- volume_
id str - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
- cmk
Id String - The master key used for encrypting an image. Changing this creates a new image.
- data
Origin String - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- description String
- A description of the image. Changing this creates a new image.
- disk
Format String - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - file String
- The URL for uploading and downloading the image file.
- hw
Firmware StringType - Specifies the boot mode. The value can be
bios
oruefi
. - 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. Changing this creates a new image.
- ims
Image StringV2Id - 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 from an ECS. Changing this creates a new image.
- is
Config Boolean - If automatic configuration is required, set the value to true. Otherwise, set the value to false. Changing this creates a new image.
- max
Ram Number - The maximum memory of the image in the unit of MB. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. Changing this creates a new image.
- 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. This parameter is mandatory when you create a private image from a volume. uploaded to an OBS bucket. Changing this creates a new image.
- Map<String>
- The tags of the image.
- timeouts Property Map
- type String
- The image type. Must be one of
ECS
,FusionCompute
,BMS
,Ironic
orIsoImage
. Changing this creates a new image. - visibility String
- Whether the image is visible to other tenants.
- volume
Id String - Specifies the data disk ID. This parameter is mandatory when you create a private image from a volume. Changing this creates a new image.
Supporting Types
ImsImageV2Timeouts, ImsImageV2TimeoutsArgs
Import
Images can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/imsImageV2:ImsImageV2 my_image 7886e623-f1b3-473e-b882-67ba1c35887f
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.