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,
});
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)
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
})
}
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,
});
});
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());
}
}
configuration:
sourceImageId:
type: dynamic
name:
type: dynamic
kmsKeyId:
type: dynamic
resources:
test:
type: flexibleengine:ImagesImageCopy
properties:
sourceImageId: ${sourceImageId}
kmsKeyId: ${kmsKeyId}
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args ImagesImageCopyArgs
- 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 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 string
- The unique name of the resource.
- args ImagesImageCopyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImagesImageCopyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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: &flexibleengine.ImagesImageCopyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VaultId: pulumi.String("string"),
})
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());
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")
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",
});
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
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:
- Source
Image stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- Agency
Name 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.
- Enterprise
Project stringId - 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 stringCopy Id - The resource ID.
- Kms
Key stringId - 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 double - Min
Ram double - Name string
- Specifies the name of the copy image. The name can contain
1
to128
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.
- Dictionary<string, string>
- Specifies the key/value pairs to associate with the copy image.
- Target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- Timeouts
Images
Image Copy Timeouts - Vault
Id 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 stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- Agency
Name 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.
- Enterprise
Project stringId - 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 stringCopy Id - The resource ID.
- Kms
Key stringId - 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 float64 - Min
Ram float64 - Name string
- Specifies the name of the copy image. The name can contain
1
to128
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.
- map[string]string
- Specifies the key/value pairs to associate with the copy image.
- Target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- Timeouts
Images
Image Copy Timeouts Args - Vault
Id 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 StringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- agency
Name 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.
- enterprise
Project StringId - 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 StringCopy Id - The resource ID.
- kms
Key StringId - 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 Double - min
Ram Double - name String
- Specifies the name of the copy image. The name can contain
1
to128
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.
- Map<String,String>
- Specifies the key/value pairs to associate with the copy image.
- target
Region String - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts
Images
Image Copy Timeouts - vault
Id 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 stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- agency
Name 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.
- enterprise
Project stringId - 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 stringCopy Id - The resource ID.
- kms
Key stringId - 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 number - min
Ram number - name string
- Specifies the name of the copy image. The name can contain
1
to128
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.
- {[key: string]: string}
- Specifies the key/value pairs to associate with the copy image.
- target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts
Images
Image Copy Timeouts - vault
Id 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_ strid - 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_ strid - 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_ strcopy_ id - The resource ID.
- kms_
key_ strid - 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
to128
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.
- 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
Images
Image Copy Timeouts Args - 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.
- source
Image StringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- agency
Name 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.
- enterprise
Project StringId - 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 StringCopy Id - The resource ID.
- kms
Key StringId - 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 Number - min
Ram Number - name String
- Specifies the name of the copy image. The name can contain
1
to128
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.
- Map<String>
- Specifies the key/value pairs to associate with the copy image.
- target
Region String - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts Property Map
- vault
Id 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.
- Data
Origin string - Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Disk
Format string - Indicates 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 - Indicates the size(bytes) of the image file format.
- Instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- Os
Version 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.
- Data
Origin string - Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- Disk
Format string - Indicates 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 - Indicates the size(bytes) of the image file format.
- Instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- Os
Version 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.
- data
Origin String - Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format String - Indicates 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 - Indicates the size(bytes) of the image file format.
- instance
Id String - Indicates the ID of the ECS that needs to be converted into an image.
- os
Version 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.
- data
Origin string - Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format string - Indicates 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 - Indicates the size(bytes) of the image file format.
- instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- os
Version 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
, orqcow2
. - 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.
- data
Origin String - Indicates the image resource. The pattern can be 'instance,instance_id' or 'file,image_url'.
- disk
Format String - Indicates 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 - Indicates the size(bytes) of the image file format.
- instance
Id String - Indicates the ID of the ECS that needs to be converted into an image.
- os
Version 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
- 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.
- Agency
Name 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.
- Data
Origin 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.
- Disk
Format string - Indicates the image file format.
The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Enterprise
Project stringId - 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 string - Indicates the size(bytes) of the image file format.
- Images
Image stringCopy Id - The resource ID.
- Instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- Kms
Key stringId - 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 double - Min
Ram double - Name string
- Specifies the name of the copy image. The name can contain
1
to128
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 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.
- Source
Image stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- Status string
- Indicates the status of the image.
- Dictionary<string, string>
- Specifies the key/value pairs to associate with the copy image.
- Target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- Timeouts
Images
Image Copy Timeouts - Vault
Id 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 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.
- Data
Origin 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.
- Disk
Format string - Indicates the image file format.
The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - Enterprise
Project stringId - 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 string - Indicates the size(bytes) of the image file format.
- Images
Image stringCopy Id - The resource ID.
- Instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- Kms
Key stringId - 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 float64 - Min
Ram float64 - Name string
- Specifies the name of the copy image. The name can contain
1
to128
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 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.
- Source
Image stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- Status string
- Indicates the status of the image.
- map[string]string
- Specifies the key/value pairs to associate with the copy image.
- Target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- Timeouts
Images
Image Copy Timeouts Args - Vault
Id 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 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.
- data
Origin 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.
- disk
Format String - Indicates the image file format.
The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project StringId - 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 String - Indicates the size(bytes) of the image file format.
- images
Image StringCopy Id - The resource ID.
- instance
Id String - Indicates the ID of the ECS that needs to be converted into an image.
- kms
Key StringId - 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 Double - min
Ram Double - name String
- Specifies the name of the copy image. The name can contain
1
to128
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 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.
- source
Image StringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- status String
- Indicates the status of the image.
- Map<String,String>
- Specifies the key/value pairs to associate with the copy image.
- target
Region String - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts
Images
Image Copy Timeouts - vault
Id 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 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.
- data
Origin 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.
- disk
Format string - Indicates the image file format.
The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project stringId - 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 string - Indicates the size(bytes) of the image file format.
- images
Image stringCopy Id - The resource ID.
- instance
Id string - Indicates the ID of the ECS that needs to be converted into an image.
- kms
Key stringId - 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 number - min
Ram number - name string
- Specifies the name of the copy image. The name can contain
1
to128
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 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.
- source
Image stringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- status string
- Indicates the status of the image.
- {[key: string]: string}
- Specifies the key/value pairs to associate with the copy image.
- target
Region string - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts
Images
Image Copy Timeouts - vault
Id 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
, orqcow2
. - enterprise_
project_ strid - 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_ strcopy_ id - The resource ID.
- instance_
id str - Indicates the ID of the ECS that needs to be converted into an image.
- kms_
key_ strid - 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
to128
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_ strid - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- status str
- Indicates the status of the image.
- 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
Images
Image Copy Timeouts Args - 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.
- agency
Name 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.
- data
Origin 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.
- disk
Format String - Indicates the image file format.
The value can be
vhd
,zvhd
,raw
,zvhd2
, orqcow2
. - enterprise
Project StringId - 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 String - Indicates the size(bytes) of the image file format.
- images
Image StringCopy Id - The resource ID.
- instance
Id String - Indicates the ID of the ECS that needs to be converted into an image.
- kms
Key StringId - 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 Number - min
Ram Number - name String
- Specifies the name of the copy image. The name can contain
1
to128
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 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.
- source
Image StringId - Specifies the ID of the copied image. Changing this parameter will create a new resource.
- status String
- Indicates the status of the image.
- Map<String>
- Specifies the key/value pairs to associate with the copy image.
- target
Region String - Specifies the target region name. If specified, it means cross-region replication. Changing this parameter will create a new resource.
- timeouts Property Map
- vault
Id 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
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.