opentelekomcloud.ImsDataImageV2
Explore with Pulumi AI
Up-to-date reference of API arguments for IMS data image you can get at documentation portal
Manages a V2 Data Image resource within OpenTelekomCloud IMS.
Example Usage
Creating a data disk image using an ECS
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const imsTest = new opentelekomcloud.ImsDataImageV2("imsTest", {
description: "Create an image using an ECS.",
tags: {
foo: "bar",
key: "value",
},
volumeId: "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
ims_test = opentelekomcloud.ImsDataImageV2("imsTest",
description="Create an image using an ECS.",
tags={
"foo": "bar",
"key": "value",
},
volume_id="54a6c3a4-8511-4d01-818f-3fe5177cbb06")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsTest", &opentelekomcloud.ImsDataImageV2Args{
Description: pulumi.String("Create an image using an ECS."),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
VolumeId: pulumi.String("54a6c3a4-8511-4d01-818f-3fe5177cbb06"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var imsTest = new Opentelekomcloud.ImsDataImageV2("imsTest", new()
{
Description = "Create an image using an ECS.",
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
VolumeId = "54a6c3a4-8511-4d01-818f-3fe5177cbb06",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ImsDataImageV2;
import com.pulumi.opentelekomcloud.ImsDataImageV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var imsTest = new ImsDataImageV2("imsTest", ImsDataImageV2Args.builder()
.description("Create an image using an ECS.")
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.volumeId("54a6c3a4-8511-4d01-818f-3fe5177cbb06")
.build());
}
}
resources:
imsTest:
type: opentelekomcloud:ImsDataImageV2
properties:
description: Create an image using an ECS.
tags:
foo: bar
key: value
volumeId: 54a6c3a4-8511-4d01-818f-3fe5177cbb06
Creating a data disk image in the OBS bucket
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const imsTestFile = new opentelekomcloud.ImsDataImageV2("imsTestFile", {
description: "Create an image using a file in the OBS bucket.",
imageUrl: "ims-image:centos70.qcow2",
minDisk: 40,
osType: "Linux",
tags: {
foo: "bar1",
key: "value",
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
ims_test_file = opentelekomcloud.ImsDataImageV2("imsTestFile",
description="Create an image using a file in the OBS bucket.",
image_url="ims-image:centos70.qcow2",
min_disk=40,
os_type="Linux",
tags={
"foo": "bar1",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsTestFile", &opentelekomcloud.ImsDataImageV2Args{
Description: pulumi.String("Create an image using a file in the OBS bucket."),
ImageUrl: pulumi.String("ims-image:centos70.qcow2"),
MinDisk: pulumi.Float64(40),
OsType: pulumi.String("Linux"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar1"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var imsTestFile = new Opentelekomcloud.ImsDataImageV2("imsTestFile", new()
{
Description = "Create an image using a file in the OBS bucket.",
ImageUrl = "ims-image:centos70.qcow2",
MinDisk = 40,
OsType = "Linux",
Tags =
{
{ "foo", "bar1" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ImsDataImageV2;
import com.pulumi.opentelekomcloud.ImsDataImageV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var imsTestFile = new ImsDataImageV2("imsTestFile", ImsDataImageV2Args.builder()
.description("Create an image using a file in the OBS bucket.")
.imageUrl("ims-image:centos70.qcow2")
.minDisk(40)
.osType("Linux")
.tags(Map.ofEntries(
Map.entry("foo", "bar1"),
Map.entry("key", "value")
))
.build());
}
}
resources:
imsTestFile:
type: opentelekomcloud:ImsDataImageV2
properties:
description: Create an image using a file in the OBS bucket.
imageUrl: ims-image:centos70.qcow2
minDisk: 40
osType: Linux
tags:
foo: bar1
key: value
Create ImsDataImageV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImsDataImageV2(name: string, args?: ImsDataImageV2Args, opts?: CustomResourceOptions);
@overload
def ImsDataImageV2(resource_name: str,
args: Optional[ImsDataImageV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ImsDataImageV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
cmk_id: Optional[str] = None,
description: Optional[str] = None,
image_url: Optional[str] = None,
ims_data_image_v2_id: Optional[str] = None,
min_disk: Optional[float] = None,
name: Optional[str] = None,
os_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ImsDataImageV2TimeoutsArgs] = None,
volume_id: Optional[str] = None)
func NewImsDataImageV2(ctx *Context, name string, args *ImsDataImageV2Args, opts ...ResourceOption) (*ImsDataImageV2, error)
public ImsDataImageV2(string name, ImsDataImageV2Args? args = null, CustomResourceOptions? opts = null)
public ImsDataImageV2(String name, ImsDataImageV2Args args)
public ImsDataImageV2(String name, ImsDataImageV2Args args, CustomResourceOptions options)
type: opentelekomcloud:ImsDataImageV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ImsDataImageV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ImsDataImageV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ImsDataImageV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImsDataImageV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImsDataImageV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var imsDataImageV2Resource = new Opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource", new()
{
CmkId = "string",
Description = "string",
ImageUrl = "string",
ImsDataImageV2Id = "string",
MinDisk = 0,
Name = "string",
OsType = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Opentelekomcloud.Inputs.ImsDataImageV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VolumeId = "string",
});
example, err := opentelekomcloud.NewImsDataImageV2(ctx, "imsDataImageV2Resource", &opentelekomcloud.ImsDataImageV2Args{
CmkId: pulumi.String("string"),
Description: pulumi.String("string"),
ImageUrl: pulumi.String("string"),
ImsDataImageV2Id: pulumi.String("string"),
MinDisk: pulumi.Float64(0),
Name: pulumi.String("string"),
OsType: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &opentelekomcloud.ImsDataImageV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VolumeId: pulumi.String("string"),
})
var imsDataImageV2Resource = new ImsDataImageV2("imsDataImageV2Resource", ImsDataImageV2Args.builder()
.cmkId("string")
.description("string")
.imageUrl("string")
.imsDataImageV2Id("string")
.minDisk(0)
.name("string")
.osType("string")
.tags(Map.of("string", "string"))
.timeouts(ImsDataImageV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.volumeId("string")
.build());
ims_data_image_v2_resource = opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource",
cmk_id="string",
description="string",
image_url="string",
ims_data_image_v2_id="string",
min_disk=0,
name="string",
os_type="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
volume_id="string")
const imsDataImageV2Resource = new opentelekomcloud.ImsDataImageV2("imsDataImageV2Resource", {
cmkId: "string",
description: "string",
imageUrl: "string",
imsDataImageV2Id: "string",
minDisk: 0,
name: "string",
osType: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
volumeId: "string",
});
type: opentelekomcloud:ImsDataImageV2
properties:
cmkId: string
description: string
imageUrl: string
imsDataImageV2Id: string
minDisk: 0
name: string
osType: string
tags:
string: string
timeouts:
create: string
delete: string
volumeId: string
ImsDataImageV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ImsDataImageV2 resource accepts the following input properties:
- 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.
- 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- Name string
- The name of the image.
- Os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Ims
Data Image V2Timeouts - Volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- Cmk
Id 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.
- 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- Name string
- The name of the image.
- Os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- map[string]string
- The tags of the image.
- Timeouts
Ims
Data Image V2Timeouts Args - Volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk
Id 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.
- 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
Data StringImage V2Id - A unique ID assigned by IMS.
- 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.
- name String
- The name of the image.
- os
Type String - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Map<String,String>
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts - volume
Id String - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk
Id 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.
- 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- name string
- The name of the image.
- os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- {[key: string]: string}
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts - volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk_
id str - The master key used for encrypting an image. Changing this creates a new image.
- description str
- A description of the image. Changing this creates a new image.
- image_
url str - The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
- ims_
data_ strimage_ v2_ id - A unique ID assigned by IMS.
- min_
disk float - The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
- name str
- The name of the image.
- os_
type str - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Mapping[str, str]
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts Args - volume_
id str - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- 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.
- 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
Data StringImage V2Id - A unique ID assigned by IMS.
- 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.
- name String
- The name of the image.
- os
Type String - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Map<String>
- The tags of the image.
- timeouts Property Map
- volume
Id String - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImsDataImageV2 resource produces the following output properties:
- 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
. - 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
. - 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
. - 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
. - 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
. - 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
. - 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 ImsDataImageV2 Resource
Get an existing ImsDataImageV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ImsDataImageV2State, opts?: CustomResourceOptions): ImsDataImageV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cmk_id: Optional[str] = None,
data_origin: Optional[str] = None,
description: Optional[str] = None,
disk_format: Optional[str] = None,
image_size: Optional[str] = None,
image_url: Optional[str] = None,
ims_data_image_v2_id: Optional[str] = None,
min_disk: Optional[float] = None,
name: Optional[str] = None,
os_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ImsDataImageV2TimeoutsArgs] = None,
visibility: Optional[str] = None,
volume_id: Optional[str] = None) -> ImsDataImageV2
func GetImsDataImageV2(ctx *Context, name string, id IDInput, state *ImsDataImageV2State, opts ...ResourceOption) (*ImsDataImageV2, error)
public static ImsDataImageV2 Get(string name, Input<string> id, ImsDataImageV2State? state, CustomResourceOptions? opts = null)
public static ImsDataImageV2 get(String name, Output<String> id, ImsDataImageV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ImsDataImageV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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
. - 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- Name string
- The name of the image.
- Os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Dictionary<string, string>
- The tags of the image.
- Timeouts
Ims
Data Image V2Timeouts - Visibility string
- Whether the image is visible to other tenants.
- Volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- Cmk
Id 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
. - 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- Name string
- The name of the image.
- Os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- map[string]string
- The tags of the image.
- Timeouts
Ims
Data Image V2Timeouts Args - Visibility string
- Whether the image is visible to other tenants.
- Volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk
Id 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
. - 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
Data StringImage V2Id - A unique ID assigned by IMS.
- 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.
- name String
- The name of the image.
- os
Type String - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Map<String,String>
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts - visibility String
- Whether the image is visible to other tenants.
- volume
Id String - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk
Id 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
. - 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
Data stringImage V2Id - A unique ID assigned by IMS.
- 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.
- name string
- The name of the image.
- os
Type string - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- {[key: string]: string}
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts - visibility string
- Whether the image is visible to other tenants.
- volume
Id string - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- cmk_
id str - The master key used for encrypting an image. Changing this creates a new image.
- data_
origin str - The image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- description str
- A description of the image. Changing this creates a new image.
- disk_
format str - The image file format. The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - image_
size str - The size(bytes) of the image file format.
- image_
url str - The URL of the external image file in the OBS bucket. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The format is OBS bucket name:Image file name. Changing this creates a new image.
- ims_
data_ strimage_ v2_ id - A unique ID assigned by IMS.
- min_
disk float - The minimum size of the system disk in the unit of GB. This parameter is mandatory when you create a private image from an external file uploaded to an OBS bucket. The value ranges from 1 GB to 1024 GB. Changing this creates a new image.
- name str
- The name of the image.
- os_
type str - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Mapping[str, str]
- The tags of the image.
- timeouts
Ims
Data Image V2Timeouts Args - visibility str
- Whether the image is visible to other tenants.
- volume_
id str - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
- 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
. - 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
Data StringImage V2Id - A unique ID assigned by IMS.
- 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.
- name String
- The name of the image.
- os
Type String - The OS type. It can only be Windows or Linux. This parameter is valid when you create a private image from an external file uploaded to an OBS bucket. Changing this creates a new image.
- Map<String>
- The tags of the image.
- timeouts Property Map
- visibility String
- Whether the image is visible to other tenants.
- volume
Id String - The ID of the ECS atatched volume that needs to be converted into an image. This parameter is mandatory when you create a privete image from an ECS. Changing this creates a new image.
Supporting Types
ImsDataImageV2Timeouts, ImsDataImageV2TimeoutsArgs
Import
Images can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/imsDataImageV2:ImsDataImageV2 my_image 7886e623-f1b3-473e-b882-67ba1c35887f
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.