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

flexibleengine.ImagesImageCopy

Explore with Pulumi AI

Use this resource to copy IMS images from one region to another within FlexibleEngine.

Example Usage

Copy image within region

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

const config = new pulumi.Config();
const sourceImageId = config.requireObject("sourceImageId");
const name = config.requireObject("name");
const kmsKeyId = config.requireObject("kmsKeyId");
const test = new flexibleengine.ImagesImageCopy("test", {
    sourceImageId: sourceImageId,
    kmsKeyId: kmsKeyId,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
source_image_id = config.require_object("sourceImageId")
name = config.require_object("name")
kms_key_id = config.require_object("kmsKeyId")
test = flexibleengine.ImagesImageCopy("test",
    source_image_id=source_image_id,
    kms_key_id=kms_key_id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		sourceImageId := cfg.RequireObject("sourceImageId")
		name := cfg.RequireObject("name")
		kmsKeyId := cfg.RequireObject("kmsKeyId")
		_, err := flexibleengine.NewImagesImageCopy(ctx, "test", &flexibleengine.ImagesImageCopyArgs{
			SourceImageId: pulumi.Any(sourceImageId),
			KmsKeyId:      pulumi.Any(kmsKeyId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var sourceImageId = config.RequireObject<dynamic>("sourceImageId");
    var name = config.RequireObject<dynamic>("name");
    var kmsKeyId = config.RequireObject<dynamic>("kmsKeyId");
    var test = new Flexibleengine.ImagesImageCopy("test", new()
    {
        SourceImageId = sourceImageId,
        KmsKeyId = kmsKeyId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImageCopy;
import com.pulumi.flexibleengine.ImagesImageCopyArgs;
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 sourceImageId = config.get("sourceImageId");
        final var name = config.get("name");
        final var kmsKeyId = config.get("kmsKeyId");
        var test = new ImagesImageCopy("test", ImagesImageCopyArgs.builder()
            .sourceImageId(sourceImageId)
            .kmsKeyId(kmsKeyId)
            .build());

    }
}
Copy
configuration:
  sourceImageId:
    type: dynamic
  name:
    type: dynamic
  kmsKeyId:
    type: dynamic
resources:
  test:
    type: flexibleengine:ImagesImageCopy
    properties:
      sourceImageId: ${sourceImageId}
      kmsKeyId: ${kmsKeyId}
Copy

Copy image cross region

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

const config = new pulumi.Config();
const sourceImageId = config.requireObject("sourceImageId");
const name = config.requireObject("name");
const targetRegion = config.requireObject("targetRegion");
const agencyName = config.requireObject("agencyName");
const test = new flexibleengine.ImagesImageCopy("test", {
    sourceImageId: sourceImageId,
    targetRegion: targetRegion,
    agencyName: agencyName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
source_image_id = config.require_object("sourceImageId")
name = config.require_object("name")
target_region = config.require_object("targetRegion")
agency_name = config.require_object("agencyName")
test = flexibleengine.ImagesImageCopy("test",
    source_image_id=source_image_id,
    target_region=target_region,
    agency_name=agency_name)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		sourceImageId := cfg.RequireObject("sourceImageId")
		name := cfg.RequireObject("name")
		targetRegion := cfg.RequireObject("targetRegion")
		agencyName := cfg.RequireObject("agencyName")
		_, err := flexibleengine.NewImagesImageCopy(ctx, "test", &flexibleengine.ImagesImageCopyArgs{
			SourceImageId: pulumi.Any(sourceImageId),
			TargetRegion:  pulumi.Any(targetRegion),
			AgencyName:    pulumi.Any(agencyName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var sourceImageId = config.RequireObject<dynamic>("sourceImageId");
    var name = config.RequireObject<dynamic>("name");
    var targetRegion = config.RequireObject<dynamic>("targetRegion");
    var agencyName = config.RequireObject<dynamic>("agencyName");
    var test = new Flexibleengine.ImagesImageCopy("test", new()
    {
        SourceImageId = sourceImageId,
        TargetRegion = targetRegion,
        AgencyName = agencyName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ImagesImageCopy;
import com.pulumi.flexibleengine.ImagesImageCopyArgs;
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 sourceImageId = config.get("sourceImageId");
        final var name = config.get("name");
        final var targetRegion = config.get("targetRegion");
        final var agencyName = config.get("agencyName");
        var test = new ImagesImageCopy("test", ImagesImageCopyArgs.builder()
            .sourceImageId(sourceImageId)
            .targetRegion(targetRegion)
            .agencyName(agencyName)
            .build());

    }
}
Copy
configuration:
  sourceImageId:
    type: dynamic
  name:
    type: dynamic
  targetRegion:
    type: dynamic
  agencyName:
    type: dynamic
resources:
  test:
    type: flexibleengine:ImagesImageCopy
    properties:
      sourceImageId: ${sourceImageId}
      targetRegion: ${targetRegion}
      agencyName: ${agencyName}
Copy

Create ImagesImageCopy Resource

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

Constructor syntax

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

@overload
def ImagesImageCopy(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    source_image_id: Optional[str] = None,
                    images_image_copy_id: Optional[str] = None,
                    enterprise_project_id: Optional[str] = None,
                    agency_name: Optional[str] = None,
                    kms_key_id: Optional[str] = None,
                    max_ram: Optional[float] = None,
                    min_ram: Optional[float] = None,
                    name: Optional[str] = None,
                    region: Optional[str] = None,
                    description: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    target_region: Optional[str] = None,
                    timeouts: Optional[ImagesImageCopyTimeoutsArgs] = None,
                    vault_id: Optional[str] = None)
func NewImagesImageCopy(ctx *Context, name string, args ImagesImageCopyArgs, opts ...ResourceOption) (*ImagesImageCopy, error)
public ImagesImageCopy(string name, ImagesImageCopyArgs args, CustomResourceOptions? opts = null)
public ImagesImageCopy(String name, ImagesImageCopyArgs args)
public ImagesImageCopy(String name, ImagesImageCopyArgs args, CustomResourceOptions options)
type: flexibleengine:ImagesImageCopy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ImagesImageCopyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ImagesImageCopyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ImagesImageCopyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ImagesImageCopyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ImagesImageCopyArgs
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 imagesImageCopyResource = new Flexibleengine.ImagesImageCopy("imagesImageCopyResource", new()
{
    SourceImageId = "string",
    ImagesImageCopyId = "string",
    EnterpriseProjectId = "string",
    AgencyName = "string",
    KmsKeyId = "string",
    MaxRam = 0,
    MinRam = 0,
    Name = "string",
    Region = "string",
    Description = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TargetRegion = "string",
    Timeouts = new Flexibleengine.Inputs.ImagesImageCopyTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    VaultId = "string",
});
Copy
example, err := flexibleengine.NewImagesImageCopy(ctx, "imagesImageCopyResource", &flexibleengine.ImagesImageCopyArgs{
SourceImageId: pulumi.String("string"),
ImagesImageCopyId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
AgencyName: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
MaxRam: pulumi.Float64(0),
MinRam: pulumi.Float64(0),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Description: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TargetRegion: pulumi.String("string"),
Timeouts: &.ImagesImageCopyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VaultId: pulumi.String("string"),
})
Copy
var imagesImageCopyResource = new ImagesImageCopy("imagesImageCopyResource", ImagesImageCopyArgs.builder()
    .sourceImageId("string")
    .imagesImageCopyId("string")
    .enterpriseProjectId("string")
    .agencyName("string")
    .kmsKeyId("string")
    .maxRam(0)
    .minRam(0)
    .name("string")
    .region("string")
    .description("string")
    .tags(Map.of("string", "string"))
    .targetRegion("string")
    .timeouts(ImagesImageCopyTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .vaultId("string")
    .build());
Copy
images_image_copy_resource = flexibleengine.ImagesImageCopy("imagesImageCopyResource",
    source_image_id="string",
    images_image_copy_id="string",
    enterprise_project_id="string",
    agency_name="string",
    kms_key_id="string",
    max_ram=0,
    min_ram=0,
    name="string",
    region="string",
    description="string",
    tags={
        "string": "string",
    },
    target_region="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    vault_id="string")
Copy
const imagesImageCopyResource = new flexibleengine.ImagesImageCopy("imagesImageCopyResource", {
    sourceImageId: "string",
    imagesImageCopyId: "string",
    enterpriseProjectId: "string",
    agencyName: "string",
    kmsKeyId: "string",
    maxRam: 0,
    minRam: 0,
    name: "string",
    region: "string",
    description: "string",
    tags: {
        string: "string",
    },
    targetRegion: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    vaultId: "string",
});
Copy
type: flexibleengine:ImagesImageCopy
properties:
    agencyName: string
    description: string
    enterpriseProjectId: string
    imagesImageCopyId: string
    kmsKeyId: string
    maxRam: 0
    minRam: 0
    name: string
    region: string
    sourceImageId: string
    tags:
        string: string
    targetRegion: string
    timeouts:
        create: string
        delete: string
    vaultId: string
Copy

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

SourceImageId This property is required. string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
AgencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
Description string
Specifies the description of the copy image.
EnterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
ImagesImageCopyId string
The resource ID.
KmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
MaxRam double
MinRam double
Name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
Region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the copy image.
TargetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
Timeouts ImagesImageCopyTimeouts
VaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
SourceImageId This property is required. string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
AgencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
Description string
Specifies the description of the copy image.
EnterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
ImagesImageCopyId string
The resource ID.
KmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
MaxRam float64
MinRam float64
Name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
Region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
Tags map[string]string
Specifies the key/value pairs to associate with the copy image.
TargetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
Timeouts ImagesImageCopyTimeoutsArgs
VaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
sourceImageId This property is required. String
Specifies the ID of the copied image. Changing this parameter will create a new resource.
agencyName String
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
description String
Specifies the description of the copy image.
enterpriseProjectId String
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imagesImageCopyId String
The resource ID.
kmsKeyId String
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam Double
minRam Double
name String
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
region String
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
tags Map<String,String>
Specifies the key/value pairs to associate with the copy image.
targetRegion String
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeouts
vaultId String
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
sourceImageId This property is required. string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
agencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
description string
Specifies the description of the copy image.
enterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imagesImageCopyId string
The resource ID.
kmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam number
minRam number
name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the copy image.
targetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeouts
vaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
source_image_id This property is required. str
Specifies the ID of the copied image. Changing this parameter will create a new resource.
agency_name str
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
description str
Specifies the description of the copy image.
enterprise_project_id str
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
images_image_copy_id str
The resource ID.
kms_key_id str
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
max_ram float
min_ram float
name str
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
region str
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the copy image.
target_region str
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeoutsArgs
vault_id str
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
sourceImageId This property is required. String
Specifies the ID of the copied image. Changing this parameter will create a new resource.
agencyName String
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
description String
Specifies the description of the copy image.
enterpriseProjectId String
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imagesImageCopyId String
The resource ID.
kmsKeyId String
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam Number
minRam Number
name String
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
region String
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
tags Map<String>
Specifies the key/value pairs to associate with the copy image.
targetRegion String
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts Property Map
vaultId String
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.

Outputs

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

Checksum string
Indicates the checksum of the data associated with the image.
DataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
DiskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
Id string
The provider-assigned unique ID for this managed resource.
ImageSize string
Indicates the size(bytes) of the image file format.
InstanceId string
Indicates the ID of the ECS that needs to be converted into an image.
OsVersion string
Indicates the OS version.
Status string
Indicates the status of the image.
Visibility string
Indicates whether the image is visible to other tenants.
Checksum string
Indicates the checksum of the data associated with the image.
DataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
DiskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
Id string
The provider-assigned unique ID for this managed resource.
ImageSize string
Indicates the size(bytes) of the image file format.
InstanceId string
Indicates the ID of the ECS that needs to be converted into an image.
OsVersion string
Indicates the OS version.
Status string
Indicates the status of the image.
Visibility string
Indicates whether the image is visible to other tenants.
checksum String
Indicates the checksum of the data associated with the image.
dataOrigin String
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
diskFormat String
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
id String
The provider-assigned unique ID for this managed resource.
imageSize String
Indicates the size(bytes) of the image file format.
instanceId String
Indicates the ID of the ECS that needs to be converted into an image.
osVersion String
Indicates the OS version.
status String
Indicates the status of the image.
visibility String
Indicates whether the image is visible to other tenants.
checksum string
Indicates the checksum of the data associated with the image.
dataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
diskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
id string
The provider-assigned unique ID for this managed resource.
imageSize string
Indicates the size(bytes) of the image file format.
instanceId string
Indicates the ID of the ECS that needs to be converted into an image.
osVersion string
Indicates the OS version.
status string
Indicates the status of the image.
visibility string
Indicates whether the image is visible to other tenants.
checksum str
Indicates the checksum of the data associated with the image.
data_origin str
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
disk_format str
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
id str
The provider-assigned unique ID for this managed resource.
image_size str
Indicates the size(bytes) of the image file format.
instance_id str
Indicates the ID of the ECS that needs to be converted into an image.
os_version str
Indicates the OS version.
status str
Indicates the status of the image.
visibility str
Indicates whether the image is visible to other tenants.
checksum String
Indicates the checksum of the data associated with the image.
dataOrigin String
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
diskFormat String
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
id String
The provider-assigned unique ID for this managed resource.
imageSize String
Indicates the size(bytes) of the image file format.
instanceId String
Indicates the ID of the ECS that needs to be converted into an image.
osVersion String
Indicates the OS version.
status String
Indicates the status of the image.
visibility String
Indicates whether the image is visible to other tenants.

Look up Existing ImagesImageCopy Resource

Get an existing ImagesImageCopy 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?: ImagesImageCopyState, opts?: CustomResourceOptions): ImagesImageCopy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        agency_name: Optional[str] = None,
        checksum: 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,
        images_image_copy_id: Optional[str] = None,
        instance_id: Optional[str] = None,
        kms_key_id: Optional[str] = None,
        max_ram: Optional[float] = None,
        min_ram: Optional[float] = None,
        name: Optional[str] = None,
        os_version: Optional[str] = None,
        region: Optional[str] = None,
        source_image_id: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        target_region: Optional[str] = None,
        timeouts: Optional[ImagesImageCopyTimeoutsArgs] = None,
        vault_id: Optional[str] = None,
        visibility: Optional[str] = None) -> ImagesImageCopy
func GetImagesImageCopy(ctx *Context, name string, id IDInput, state *ImagesImageCopyState, opts ...ResourceOption) (*ImagesImageCopy, error)
public static ImagesImageCopy Get(string name, Input<string> id, ImagesImageCopyState? state, CustomResourceOptions? opts = null)
public static ImagesImageCopy get(String name, Output<String> id, ImagesImageCopyState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:ImagesImageCopy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AgencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
Checksum string
Indicates the checksum of the data associated with the image.
DataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
Description string
Specifies the description of the copy image.
DiskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
EnterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
ImageSize string
Indicates the size(bytes) of the image file format.
ImagesImageCopyId string
The resource ID.
InstanceId string
Indicates the ID of the ECS that needs to be converted into an image.
KmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
MaxRam double
MinRam double
Name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
OsVersion string
Indicates the OS version.
Region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SourceImageId string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
Status string
Indicates the status of the image.
Tags Dictionary<string, string>
Specifies the key/value pairs to associate with the copy image.
TargetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
Timeouts ImagesImageCopyTimeouts
VaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
Visibility string
Indicates whether the image is visible to other tenants.
AgencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
Checksum string
Indicates the checksum of the data associated with the image.
DataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
Description string
Specifies the description of the copy image.
DiskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
EnterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
ImageSize string
Indicates the size(bytes) of the image file format.
ImagesImageCopyId string
The resource ID.
InstanceId string
Indicates the ID of the ECS that needs to be converted into an image.
KmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
MaxRam float64
MinRam float64
Name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
OsVersion string
Indicates the OS version.
Region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
SourceImageId string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
Status string
Indicates the status of the image.
Tags map[string]string
Specifies the key/value pairs to associate with the copy image.
TargetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
Timeouts ImagesImageCopyTimeoutsArgs
VaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
Visibility string
Indicates whether the image is visible to other tenants.
agencyName String
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
checksum String
Indicates the checksum of the data associated with the image.
dataOrigin String
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
description String
Specifies the description of the copy image.
diskFormat String
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId String
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imageSize String
Indicates the size(bytes) of the image file format.
imagesImageCopyId String
The resource ID.
instanceId String
Indicates the ID of the ECS that needs to be converted into an image.
kmsKeyId String
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam Double
minRam Double
name String
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
osVersion String
Indicates the OS version.
region String
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceImageId String
Specifies the ID of the copied image. Changing this parameter will create a new resource.
status String
Indicates the status of the image.
tags Map<String,String>
Specifies the key/value pairs to associate with the copy image.
targetRegion String
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeouts
vaultId String
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
visibility String
Indicates whether the image is visible to other tenants.
agencyName string
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
checksum string
Indicates the checksum of the data associated with the image.
dataOrigin string
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
description string
Specifies the description of the copy image.
diskFormat string
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId string
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imageSize string
Indicates the size(bytes) of the image file format.
imagesImageCopyId string
The resource ID.
instanceId string
Indicates the ID of the ECS that needs to be converted into an image.
kmsKeyId string
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam number
minRam number
name string
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
osVersion string
Indicates the OS version.
region string
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceImageId string
Specifies the ID of the copied image. Changing this parameter will create a new resource.
status string
Indicates the status of the image.
tags {[key: string]: string}
Specifies the key/value pairs to associate with the copy image.
targetRegion string
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeouts
vaultId string
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
visibility string
Indicates whether the image is visible to other tenants.
agency_name str
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
checksum str
Indicates the checksum of the data associated with the image.
data_origin str
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
description str
Specifies the description of the copy image.
disk_format str
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterprise_project_id str
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
image_size str
Indicates the size(bytes) of the image file format.
images_image_copy_id str
The resource ID.
instance_id str
Indicates the ID of the ECS that needs to be converted into an image.
kms_key_id str
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
max_ram float
min_ram float
name str
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
os_version str
Indicates the OS version.
region str
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
source_image_id str
Specifies the ID of the copied image. Changing this parameter will create a new resource.
status str
Indicates the status of the image.
tags Mapping[str, str]
Specifies the key/value pairs to associate with the copy image.
target_region str
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts ImagesImageCopyTimeoutsArgs
vault_id str
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
visibility str
Indicates whether the image is visible to other tenants.
agencyName String
Specifies the agency name. It is required in the cross-region scene. Changing this parameter will create a new resource.
checksum String
Indicates the checksum of the data associated with the image.
dataOrigin String
Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
description String
Specifies the description of the copy image.
diskFormat String
Indicates the image file format. The value can be vhd, zvhd, raw, zvhd2, or qcow2.
enterpriseProjectId String
Specifies the enterprise project id of the image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
imageSize String
Indicates the size(bytes) of the image file format.
imagesImageCopyId String
The resource ID.
instanceId String
Indicates the ID of the ECS that needs to be converted into an image.
kmsKeyId String
Specifies the master key used for encrypting an image. Only copying scene within a region is supported. Changing this parameter will create a new resource.
maxRam Number
minRam Number
name String
Specifies the name of the copy image. The name can contain 1 to 128 characters, only Chinese and English letters, digits, underscore (_), hyphens (-), dots (.) and space are allowed, but it cannot start or end with a space.
osVersion String
Indicates the OS version.
region String
Specifies the region to which the source image belongs. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
sourceImageId String
Specifies the ID of the copied image. Changing this parameter will create a new resource.
status String
Indicates the status of the image.
tags Map<String>
Specifies the key/value pairs to associate with the copy image.
targetRegion String
Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
timeouts Property Map
vaultId String
Specifies the ID of the vault. It is used in the cross-region scene, and it is mandatory if you are replicating a full-ECS image. Changing this parameter will create a new resource.
visibility String
Indicates whether the image is visible to other tenants.

Supporting Types

ImagesImageCopyTimeouts
, ImagesImageCopyTimeoutsArgs

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

Package Details

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