1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. ImageImport
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.ecs.ImageImport

Explore with Pulumi AI

Provides a resource to manage image import

Example Usage

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

const foo = new volcengine.ecs.ImageImport("foo", {
    bootMode: "UEFI",
    description: "acc-test",
    imageName: "acc-test-image",
    platform: "CentOS",
    projectName: "default",
    tags: [{
        key: "k1",
        value: "v1",
    }],
    url: "https://*****_system.qcow2",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.ecs.ImageImport("foo",
    boot_mode="UEFI",
    description="acc-test",
    image_name="acc-test-image",
    platform="CentOS",
    project_name="default",
    tags=[volcengine.ecs.ImageImportTagArgs(
        key="k1",
        value="v1",
    )],
    url="https://*****_system.qcow2")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ecs.NewImageImport(ctx, "foo", &ecs.ImageImportArgs{
			BootMode:    pulumi.String("UEFI"),
			Description: pulumi.String("acc-test"),
			ImageName:   pulumi.String("acc-test-image"),
			Platform:    pulumi.String("CentOS"),
			ProjectName: pulumi.String("default"),
			Tags: ecs.ImageImportTagArray{
				&ecs.ImageImportTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
			Url: pulumi.String("https://*****_system.qcow2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Ecs.ImageImport("foo", new()
    {
        BootMode = "UEFI",
        Description = "acc-test",
        ImageName = "acc-test-image",
        Platform = "CentOS",
        ProjectName = "default",
        Tags = new[]
        {
            new Volcengine.Ecs.Inputs.ImageImportTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
        Url = "https://*****_system.qcow2",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.ImageImport;
import com.pulumi.volcengine.ecs.ImageImportArgs;
import com.pulumi.volcengine.ecs.inputs.ImageImportTagArgs;
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 foo = new ImageImport("foo", ImageImportArgs.builder()        
            .bootMode("UEFI")
            .description("acc-test")
            .imageName("acc-test-image")
            .platform("CentOS")
            .projectName("default")
            .tags(ImageImportTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .url("https://*****_system.qcow2")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:ecs:ImageImport
    properties:
      bootMode: UEFI
      description: acc-test
      imageName: acc-test-image
      platform: CentOS
      projectName: default
      tags:
        - key: k1
          value: v1
      url: https://*****_system.qcow2
Copy

Create ImageImport Resource

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

Constructor syntax

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

@overload
def ImageImport(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                image_name: Optional[str] = None,
                platform: Optional[str] = None,
                url: Optional[str] = None,
                architecture: Optional[str] = None,
                boot_mode: Optional[str] = None,
                description: Optional[str] = None,
                license_type: Optional[str] = None,
                os_type: Optional[str] = None,
                platform_version: Optional[str] = None,
                project_name: Optional[str] = None,
                tags: Optional[Sequence[ImageImportTagArgs]] = None)
func NewImageImport(ctx *Context, name string, args ImageImportArgs, opts ...ResourceOption) (*ImageImport, error)
public ImageImport(string name, ImageImportArgs args, CustomResourceOptions? opts = null)
public ImageImport(String name, ImageImportArgs args)
public ImageImport(String name, ImageImportArgs args, CustomResourceOptions options)
type: volcengine:ecs:ImageImport
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. ImageImportArgs
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. ImageImportArgs
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. ImageImportArgs
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. ImageImportArgs
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. ImageImportArgs
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 imageImportResource = new Volcengine.Ecs.ImageImport("imageImportResource", new()
{
    ImageName = "string",
    Platform = "string",
    Url = "string",
    Architecture = "string",
    BootMode = "string",
    Description = "string",
    LicenseType = "string",
    OsType = "string",
    PlatformVersion = "string",
    ProjectName = "string",
    Tags = new[]
    {
        new Volcengine.Ecs.Inputs.ImageImportTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
Copy
example, err := ecs.NewImageImport(ctx, "imageImportResource", &ecs.ImageImportArgs{
	ImageName:       pulumi.String("string"),
	Platform:        pulumi.String("string"),
	Url:             pulumi.String("string"),
	Architecture:    pulumi.String("string"),
	BootMode:        pulumi.String("string"),
	Description:     pulumi.String("string"),
	LicenseType:     pulumi.String("string"),
	OsType:          pulumi.String("string"),
	PlatformVersion: pulumi.String("string"),
	ProjectName:     pulumi.String("string"),
	Tags: ecs.ImageImportTagArray{
		&ecs.ImageImportTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
Copy
var imageImportResource = new ImageImport("imageImportResource", ImageImportArgs.builder()
    .imageName("string")
    .platform("string")
    .url("string")
    .architecture("string")
    .bootMode("string")
    .description("string")
    .licenseType("string")
    .osType("string")
    .platformVersion("string")
    .projectName("string")
    .tags(ImageImportTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
Copy
image_import_resource = volcengine.ecs.ImageImport("imageImportResource",
    image_name="string",
    platform="string",
    url="string",
    architecture="string",
    boot_mode="string",
    description="string",
    license_type="string",
    os_type="string",
    platform_version="string",
    project_name="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
Copy
const imageImportResource = new volcengine.ecs.ImageImport("imageImportResource", {
    imageName: "string",
    platform: "string",
    url: "string",
    architecture: "string",
    bootMode: "string",
    description: "string",
    licenseType: "string",
    osType: "string",
    platformVersion: "string",
    projectName: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
Copy
type: volcengine:ecs:ImageImport
properties:
    architecture: string
    bootMode: string
    description: string
    imageName: string
    licenseType: string
    osType: string
    platform: string
    platformVersion: string
    projectName: string
    tags:
        - key: string
          value: string
    url: string
Copy

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

ImageName This property is required. string
The name of the custom image.
Platform
This property is required.
Changes to this property will trigger replacement.
string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
Url
This property is required.
Changes to this property will trigger replacement.
string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
Architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
BootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
Description string
The description of the custom image.
LicenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
OsType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
PlatformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
ProjectName string
The project name of the custom image.
Tags List<ImageImportTag>
Tags.
ImageName This property is required. string
The name of the custom image.
Platform
This property is required.
Changes to this property will trigger replacement.
string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
Url
This property is required.
Changes to this property will trigger replacement.
string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
Architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
BootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
Description string
The description of the custom image.
LicenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
OsType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
PlatformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
ProjectName string
The project name of the custom image.
Tags []ImageImportTagArgs
Tags.
imageName This property is required. String
The name of the custom image.
platform
This property is required.
Changes to this property will trigger replacement.
String
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
url
This property is required.
Changes to this property will trigger replacement.
String
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
architecture Changes to this property will trigger replacement. String
The architecture of the custom image. Valid values: amd64, arm64.
bootMode String
The boot mode of the custom image. Valid values: BIOS, UEFI.
description String
The description of the custom image.
licenseType Changes to this property will trigger replacement. String
The license type of the custom image. Valid values: VolcanoEngine.
osType Changes to this property will trigger replacement. String
The os type of the custom image. Valid values: linux, Windows.
platformVersion Changes to this property will trigger replacement. String
The platform version of the custom image.
projectName String
The project name of the custom image.
tags List<ImageImportTag>
Tags.
imageName This property is required. string
The name of the custom image.
platform
This property is required.
Changes to this property will trigger replacement.
string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
url
This property is required.
Changes to this property will trigger replacement.
string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
bootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
description string
The description of the custom image.
licenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
osType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
platformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
projectName string
The project name of the custom image.
tags ImageImportTag[]
Tags.
image_name This property is required. str
The name of the custom image.
platform
This property is required.
Changes to this property will trigger replacement.
str
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
url
This property is required.
Changes to this property will trigger replacement.
str
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
architecture Changes to this property will trigger replacement. str
The architecture of the custom image. Valid values: amd64, arm64.
boot_mode str
The boot mode of the custom image. Valid values: BIOS, UEFI.
description str
The description of the custom image.
license_type Changes to this property will trigger replacement. str
The license type of the custom image. Valid values: VolcanoEngine.
os_type Changes to this property will trigger replacement. str
The os type of the custom image. Valid values: linux, Windows.
platform_version Changes to this property will trigger replacement. str
The platform version of the custom image.
project_name str
The project name of the custom image.
tags Sequence[ImageImportTagArgs]
Tags.
imageName This property is required. String
The name of the custom image.
platform
This property is required.
Changes to this property will trigger replacement.
String
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
url
This property is required.
Changes to this property will trigger replacement.
String
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
architecture Changes to this property will trigger replacement. String
The architecture of the custom image. Valid values: amd64, arm64.
bootMode String
The boot mode of the custom image. Valid values: BIOS, UEFI.
description String
The description of the custom image.
licenseType Changes to this property will trigger replacement. String
The license type of the custom image. Valid values: VolcanoEngine.
osType Changes to this property will trigger replacement. String
The os type of the custom image. Valid values: linux, Windows.
platformVersion Changes to this property will trigger replacement. String
The platform version of the custom image.
projectName String
The project name of the custom image.
tags List<Property Map>
Tags.

Outputs

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

CreatedAt string
The create time of Image.
Id string
The provider-assigned unique ID for this managed resource.
IsSupportCloudInit bool
Whether the Image support cloud-init.
OsName string
The name of Image operating system.
ShareStatus string
The share mode of Image.
Size int
The size(GiB) of Image.
Status string
The status of Image.
UpdatedAt string
The update time of Image.
Visibility string
The visibility of Image.
CreatedAt string
The create time of Image.
Id string
The provider-assigned unique ID for this managed resource.
IsSupportCloudInit bool
Whether the Image support cloud-init.
OsName string
The name of Image operating system.
ShareStatus string
The share mode of Image.
Size int
The size(GiB) of Image.
Status string
The status of Image.
UpdatedAt string
The update time of Image.
Visibility string
The visibility of Image.
createdAt String
The create time of Image.
id String
The provider-assigned unique ID for this managed resource.
isSupportCloudInit Boolean
Whether the Image support cloud-init.
osName String
The name of Image operating system.
shareStatus String
The share mode of Image.
size Integer
The size(GiB) of Image.
status String
The status of Image.
updatedAt String
The update time of Image.
visibility String
The visibility of Image.
createdAt string
The create time of Image.
id string
The provider-assigned unique ID for this managed resource.
isSupportCloudInit boolean
Whether the Image support cloud-init.
osName string
The name of Image operating system.
shareStatus string
The share mode of Image.
size number
The size(GiB) of Image.
status string
The status of Image.
updatedAt string
The update time of Image.
visibility string
The visibility of Image.
created_at str
The create time of Image.
id str
The provider-assigned unique ID for this managed resource.
is_support_cloud_init bool
Whether the Image support cloud-init.
os_name str
The name of Image operating system.
share_status str
The share mode of Image.
size int
The size(GiB) of Image.
status str
The status of Image.
updated_at str
The update time of Image.
visibility str
The visibility of Image.
createdAt String
The create time of Image.
id String
The provider-assigned unique ID for this managed resource.
isSupportCloudInit Boolean
Whether the Image support cloud-init.
osName String
The name of Image operating system.
shareStatus String
The share mode of Image.
size Number
The size(GiB) of Image.
status String
The status of Image.
updatedAt String
The update time of Image.
visibility String
The visibility of Image.

Look up Existing ImageImport Resource

Get an existing ImageImport 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?: ImageImportState, opts?: CustomResourceOptions): ImageImport
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        architecture: Optional[str] = None,
        boot_mode: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        image_name: Optional[str] = None,
        is_support_cloud_init: Optional[bool] = None,
        license_type: Optional[str] = None,
        os_name: Optional[str] = None,
        os_type: Optional[str] = None,
        platform: Optional[str] = None,
        platform_version: Optional[str] = None,
        project_name: Optional[str] = None,
        share_status: Optional[str] = None,
        size: Optional[int] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[ImageImportTagArgs]] = None,
        updated_at: Optional[str] = None,
        url: Optional[str] = None,
        visibility: Optional[str] = None) -> ImageImport
func GetImageImport(ctx *Context, name string, id IDInput, state *ImageImportState, opts ...ResourceOption) (*ImageImport, error)
public static ImageImport Get(string name, Input<string> id, ImageImportState? state, CustomResourceOptions? opts = null)
public static ImageImport get(String name, Output<String> id, ImageImportState state, CustomResourceOptions options)
resources:  _:    type: volcengine:ecs:ImageImport    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:
Architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
BootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
CreatedAt string
The create time of Image.
Description string
The description of the custom image.
ImageName string
The name of the custom image.
IsSupportCloudInit bool
Whether the Image support cloud-init.
LicenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
OsName string
The name of Image operating system.
OsType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
Platform Changes to this property will trigger replacement. string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
PlatformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
ProjectName string
The project name of the custom image.
ShareStatus string
The share mode of Image.
Size int
The size(GiB) of Image.
Status string
The status of Image.
Tags List<ImageImportTag>
Tags.
UpdatedAt string
The update time of Image.
Url Changes to this property will trigger replacement. string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
Visibility string
The visibility of Image.
Architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
BootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
CreatedAt string
The create time of Image.
Description string
The description of the custom image.
ImageName string
The name of the custom image.
IsSupportCloudInit bool
Whether the Image support cloud-init.
LicenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
OsName string
The name of Image operating system.
OsType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
Platform Changes to this property will trigger replacement. string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
PlatformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
ProjectName string
The project name of the custom image.
ShareStatus string
The share mode of Image.
Size int
The size(GiB) of Image.
Status string
The status of Image.
Tags []ImageImportTagArgs
Tags.
UpdatedAt string
The update time of Image.
Url Changes to this property will trigger replacement. string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
Visibility string
The visibility of Image.
architecture Changes to this property will trigger replacement. String
The architecture of the custom image. Valid values: amd64, arm64.
bootMode String
The boot mode of the custom image. Valid values: BIOS, UEFI.
createdAt String
The create time of Image.
description String
The description of the custom image.
imageName String
The name of the custom image.
isSupportCloudInit Boolean
Whether the Image support cloud-init.
licenseType Changes to this property will trigger replacement. String
The license type of the custom image. Valid values: VolcanoEngine.
osName String
The name of Image operating system.
osType Changes to this property will trigger replacement. String
The os type of the custom image. Valid values: linux, Windows.
platform Changes to this property will trigger replacement. String
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
platformVersion Changes to this property will trigger replacement. String
The platform version of the custom image.
projectName String
The project name of the custom image.
shareStatus String
The share mode of Image.
size Integer
The size(GiB) of Image.
status String
The status of Image.
tags List<ImageImportTag>
Tags.
updatedAt String
The update time of Image.
url Changes to this property will trigger replacement. String
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
visibility String
The visibility of Image.
architecture Changes to this property will trigger replacement. string
The architecture of the custom image. Valid values: amd64, arm64.
bootMode string
The boot mode of the custom image. Valid values: BIOS, UEFI.
createdAt string
The create time of Image.
description string
The description of the custom image.
imageName string
The name of the custom image.
isSupportCloudInit boolean
Whether the Image support cloud-init.
licenseType Changes to this property will trigger replacement. string
The license type of the custom image. Valid values: VolcanoEngine.
osName string
The name of Image operating system.
osType Changes to this property will trigger replacement. string
The os type of the custom image. Valid values: linux, Windows.
platform Changes to this property will trigger replacement. string
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
platformVersion Changes to this property will trigger replacement. string
The platform version of the custom image.
projectName string
The project name of the custom image.
shareStatus string
The share mode of Image.
size number
The size(GiB) of Image.
status string
The status of Image.
tags ImageImportTag[]
Tags.
updatedAt string
The update time of Image.
url Changes to this property will trigger replacement. string
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
visibility string
The visibility of Image.
architecture Changes to this property will trigger replacement. str
The architecture of the custom image. Valid values: amd64, arm64.
boot_mode str
The boot mode of the custom image. Valid values: BIOS, UEFI.
created_at str
The create time of Image.
description str
The description of the custom image.
image_name str
The name of the custom image.
is_support_cloud_init bool
Whether the Image support cloud-init.
license_type Changes to this property will trigger replacement. str
The license type of the custom image. Valid values: VolcanoEngine.
os_name str
The name of Image operating system.
os_type Changes to this property will trigger replacement. str
The os type of the custom image. Valid values: linux, Windows.
platform Changes to this property will trigger replacement. str
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
platform_version Changes to this property will trigger replacement. str
The platform version of the custom image.
project_name str
The project name of the custom image.
share_status str
The share mode of Image.
size int
The size(GiB) of Image.
status str
The status of Image.
tags Sequence[ImageImportTagArgs]
Tags.
updated_at str
The update time of Image.
url Changes to this property will trigger replacement. str
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
visibility str
The visibility of Image.
architecture Changes to this property will trigger replacement. String
The architecture of the custom image. Valid values: amd64, arm64.
bootMode String
The boot mode of the custom image. Valid values: BIOS, UEFI.
createdAt String
The create time of Image.
description String
The description of the custom image.
imageName String
The name of the custom image.
isSupportCloudInit Boolean
Whether the Image support cloud-init.
licenseType Changes to this property will trigger replacement. String
The license type of the custom image. Valid values: VolcanoEngine.
osName String
The name of Image operating system.
osType Changes to this property will trigger replacement. String
The os type of the custom image. Valid values: linux, Windows.
platform Changes to this property will trigger replacement. String
The platform of the custom image. Valid values: CentOS, Debian, veLinux, Windows Server, Fedora, OpenSUSE, Ubuntu, Rocky Linux, AlmaLinux.
platformVersion Changes to this property will trigger replacement. String
The platform version of the custom image.
projectName String
The project name of the custom image.
shareStatus String
The share mode of Image.
size Number
The size(GiB) of Image.
status String
The status of Image.
tags List<Property Map>
Tags.
updatedAt String
The update time of Image.
url Changes to this property will trigger replacement. String
The url of the custom image in tos bucket.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
visibility String
The visibility of Image.

Supporting Types

ImageImportTag
, ImageImportTagArgs

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

Import

ImageImport can be imported using the id, e.g.

$ pulumi import volcengine:ecs/imageImport:ImageImport default resource_id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.