volcengine.ecs.Image
Explore with Pulumi AI
Provides a resource to manage image
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.ecs.Image("foo", {
    createWholeImage: false,
    description: "acc-test",
    imageName: "acc-test-image",
    instanceId: "i-ydi2q1s7wgqc6ild****",
    projectName: "default",
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.ecs.Image("foo",
    create_whole_image=False,
    description="acc-test",
    image_name="acc-test-image",
    instance_id="i-ydi2q1s7wgqc6ild****",
    project_name="default",
    tags=[volcengine.ecs.ImageTagArgs(
        key="k1",
        value="v1",
    )])
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.NewImage(ctx, "foo", &ecs.ImageArgs{
			CreateWholeImage: pulumi.Bool(false),
			Description:      pulumi.String("acc-test"),
			ImageName:        pulumi.String("acc-test-image"),
			InstanceId:       pulumi.String("i-ydi2q1s7wgqc6ild****"),
			ProjectName:      pulumi.String("default"),
			Tags: ecs.ImageTagArray{
				&ecs.ImageTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Ecs.Image("foo", new()
    {
        CreateWholeImage = false,
        Description = "acc-test",
        ImageName = "acc-test-image",
        InstanceId = "i-ydi2q1s7wgqc6ild****",
        ProjectName = "default",
        Tags = new[]
        {
            new Volcengine.Ecs.Inputs.ImageTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.Image;
import com.pulumi.volcengine.ecs.ImageArgs;
import com.pulumi.volcengine.ecs.inputs.ImageTagArgs;
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 Image("foo", ImageArgs.builder()        
            .createWholeImage(false)
            .description("acc-test")
            .imageName("acc-test-image")
            .instanceId("i-ydi2q1s7wgqc6ild****")
            .projectName("default")
            .tags(ImageTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());
    }
}
resources:
  foo:
    type: volcengine:ecs:Image
    properties:
      createWholeImage: false
      description: acc-test
      imageName: acc-test-image
      instanceId: i-ydi2q1s7wgqc6ild****
      projectName: default
      tags:
        - key: k1
          value: v1
Create Image Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Image(name: string, args: ImageArgs, opts?: CustomResourceOptions);@overload
def Image(resource_name: str,
          args: ImageArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Image(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          image_name: Optional[str] = None,
          boot_mode: Optional[str] = None,
          create_whole_image: Optional[bool] = None,
          description: Optional[str] = None,
          instance_id: Optional[str] = None,
          project_name: Optional[str] = None,
          snapshot_group_id: Optional[str] = None,
          snapshot_id: Optional[str] = None,
          tags: Optional[Sequence[ImageTagArgs]] = None)func NewImage(ctx *Context, name string, args ImageArgs, opts ...ResourceOption) (*Image, error)public Image(string name, ImageArgs args, CustomResourceOptions? opts = null)type: volcengine:ecs:Image
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 ImageArgs
- 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 ImageArgs
- 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 ImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImageArgs
- 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 imageResource = new Volcengine.Ecs.Image("imageResource", new()
{
    ImageName = "string",
    BootMode = "string",
    CreateWholeImage = false,
    Description = "string",
    InstanceId = "string",
    ProjectName = "string",
    SnapshotGroupId = "string",
    SnapshotId = "string",
    Tags = new[]
    {
        new Volcengine.Ecs.Inputs.ImageTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := ecs.NewImage(ctx, "imageResource", &ecs.ImageArgs{
	ImageName:        pulumi.String("string"),
	BootMode:         pulumi.String("string"),
	CreateWholeImage: pulumi.Bool(false),
	Description:      pulumi.String("string"),
	InstanceId:       pulumi.String("string"),
	ProjectName:      pulumi.String("string"),
	SnapshotGroupId:  pulumi.String("string"),
	SnapshotId:       pulumi.String("string"),
	Tags: ecs.ImageTagArray{
		&ecs.ImageTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var imageResource = new Image("imageResource", ImageArgs.builder()
    .imageName("string")
    .bootMode("string")
    .createWholeImage(false)
    .description("string")
    .instanceId("string")
    .projectName("string")
    .snapshotGroupId("string")
    .snapshotId("string")
    .tags(ImageTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
image_resource = volcengine.ecs.Image("imageResource",
    image_name="string",
    boot_mode="string",
    create_whole_image=False,
    description="string",
    instance_id="string",
    project_name="string",
    snapshot_group_id="string",
    snapshot_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
const imageResource = new volcengine.ecs.Image("imageResource", {
    imageName: "string",
    bootMode: "string",
    createWholeImage: false,
    description: "string",
    instanceId: "string",
    projectName: "string",
    snapshotGroupId: "string",
    snapshotId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:ecs:Image
properties:
    bootMode: string
    createWholeImage: false
    description: string
    imageName: string
    instanceId: string
    projectName: string
    snapshotGroupId: string
    snapshotId: string
    tags:
        - key: string
          value: string
Image 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 Image resource accepts the following input properties:
- ImageName string
- The name of the custom image.
- BootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- CreateWhole boolImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- Description string
- The description of the custom image.
- InstanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ProjectName string
- The project name of the custom image.
- SnapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- SnapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<ImageTag> 
- Tags.
- ImageName string
- The name of the custom image.
- BootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- CreateWhole boolImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- Description string
- The description of the custom image.
- InstanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ProjectName string
- The project name of the custom image.
- SnapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- SnapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
[]ImageTag Args 
- Tags.
- imageName String
- The name of the custom image.
- bootMode String
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole BooleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- description String
- The description of the custom image.
- instanceId String
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- projectName String
- The project name of the custom image.
- snapshotGroup StringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId String
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<ImageTag> 
- Tags.
- imageName string
- The name of the custom image.
- bootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole booleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- description string
- The description of the custom image.
- instanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- projectName string
- The project name of the custom image.
- snapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
ImageTag[] 
- Tags.
- image_name str
- The name of the custom image.
- boot_mode str
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- create_whole_ boolimage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- description str
- The description of the custom image.
- instance_id str
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- project_name str
- The project name of the custom image.
- snapshot_group_ strid 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshot_id str
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
Sequence[ImageTag Args] 
- Tags.
- imageName String
- The name of the custom image.
- bootMode String
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole BooleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- description String
- The description of the custom image.
- instanceId String
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- projectName String
- The project name of the custom image.
- snapshotGroup StringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId String
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Image resource produces the following output properties:
- Architecture string
- The architecture of Image.
- CreatedAt string
- The create time of Image.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSupport boolCloud Init 
- Whether the Image support cloud-init.
- OsName string
- The name of Image operating system.
- OsType string
- The operating system type of Image.
- Platform string
- The platform of Image.
- PlatformVersion string
- The platform version of Image.
- 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.
- Architecture string
- The architecture of Image.
- CreatedAt string
- The create time of Image.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSupport boolCloud Init 
- Whether the Image support cloud-init.
- OsName string
- The name of Image operating system.
- OsType string
- The operating system type of Image.
- Platform string
- The platform of Image.
- PlatformVersion string
- The platform version of Image.
- 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.
- architecture String
- The architecture of Image.
- createdAt String
- The create time of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- isSupport BooleanCloud Init 
- Whether the Image support cloud-init.
- osName String
- The name of Image operating system.
- osType String
- The operating system type of Image.
- platform String
- The platform of Image.
- platformVersion String
- The platform version of Image.
- 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.
- architecture string
- The architecture of Image.
- createdAt string
- The create time of Image.
- id string
- The provider-assigned unique ID for this managed resource.
- isSupport booleanCloud Init 
- Whether the Image support cloud-init.
- osName string
- The name of Image operating system.
- osType string
- The operating system type of Image.
- platform string
- The platform of Image.
- platformVersion string
- The platform version of Image.
- 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.
- architecture str
- The architecture of Image.
- created_at str
- The create time of Image.
- id str
- The provider-assigned unique ID for this managed resource.
- is_support_ boolcloud_ init 
- Whether the Image support cloud-init.
- os_name str
- The name of Image operating system.
- os_type str
- The operating system type of Image.
- platform str
- The platform of Image.
- platform_version str
- The platform version of Image.
- 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.
- architecture String
- The architecture of Image.
- createdAt String
- The create time of Image.
- id String
- The provider-assigned unique ID for this managed resource.
- isSupport BooleanCloud Init 
- Whether the Image support cloud-init.
- osName String
- The name of Image operating system.
- osType String
- The operating system type of Image.
- platform String
- The platform of Image.
- platformVersion String
- The platform version of Image.
- 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 Image Resource
Get an existing Image 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?: ImageState, opts?: CustomResourceOptions): Image@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        architecture: Optional[str] = None,
        boot_mode: Optional[str] = None,
        create_whole_image: Optional[bool] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        image_name: Optional[str] = None,
        instance_id: Optional[str] = None,
        is_support_cloud_init: Optional[bool] = 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,
        snapshot_group_id: Optional[str] = None,
        snapshot_id: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Sequence[ImageTagArgs]] = None,
        updated_at: Optional[str] = None,
        visibility: Optional[str] = None) -> Imagefunc GetImage(ctx *Context, name string, id IDInput, state *ImageState, opts ...ResourceOption) (*Image, error)public static Image Get(string name, Input<string> id, ImageState? state, CustomResourceOptions? opts = null)public static Image get(String name, Output<String> id, ImageState state, CustomResourceOptions options)resources:  _:    type: volcengine:ecs:Image    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.
- Architecture string
- The architecture of Image.
- BootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- CreateWhole boolImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- CreatedAt string
- The create time of Image.
- Description string
- The description of the custom image.
- ImageName string
- The name of the custom image.
- InstanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- IsSupport boolCloud Init 
- Whether the Image support cloud-init.
- OsName string
- The name of Image operating system.
- OsType string
- The operating system type of Image.
- Platform string
- The platform of Image.
- PlatformVersion string
- The platform version of Image.
- ProjectName string
- The project name of the custom image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- SnapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- SnapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Status string
- The status of Image.
- 
List<ImageTag> 
- Tags.
- UpdatedAt string
- The update time of Image.
- Visibility string
- The visibility of Image.
- Architecture string
- The architecture of Image.
- BootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- CreateWhole boolImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- CreatedAt string
- The create time of Image.
- Description string
- The description of the custom image.
- ImageName string
- The name of the custom image.
- InstanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- IsSupport boolCloud Init 
- Whether the Image support cloud-init.
- OsName string
- The name of Image operating system.
- OsType string
- The operating system type of Image.
- Platform string
- The platform of Image.
- PlatformVersion string
- The platform version of Image.
- ProjectName string
- The project name of the custom image.
- string
- The share mode of Image.
- Size int
- The size(GiB) of Image.
- SnapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- SnapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Status string
- The status of Image.
- 
[]ImageTag Args 
- Tags.
- UpdatedAt string
- The update time of Image.
- Visibility string
- The visibility of Image.
- architecture String
- The architecture of Image.
- bootMode String
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole BooleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- createdAt String
- The create time of Image.
- description String
- The description of the custom image.
- imageName String
- The name of the custom image.
- instanceId String
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- isSupport BooleanCloud Init 
- Whether the Image support cloud-init.
- osName String
- The name of Image operating system.
- osType String
- The operating system type of Image.
- platform String
- The platform of Image.
- platformVersion String
- The platform version of Image.
- projectName String
- The project name of the custom image.
- String
- The share mode of Image.
- size Integer
- The size(GiB) of Image.
- snapshotGroup StringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId String
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status String
- The status of Image.
- 
List<ImageTag> 
- Tags.
- updatedAt String
- The update time of Image.
- visibility String
- The visibility of Image.
- architecture string
- The architecture of Image.
- bootMode string
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole booleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- createdAt string
- The create time of Image.
- description string
- The description of the custom image.
- imageName string
- The name of the custom image.
- instanceId string
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- isSupport booleanCloud Init 
- Whether the Image support cloud-init.
- osName string
- The name of Image operating system.
- osType string
- The operating system type of Image.
- platform string
- The platform of Image.
- platformVersion string
- The platform version of Image.
- projectName string
- The project name of the custom image.
- string
- The share mode of Image.
- size number
- The size(GiB) of Image.
- snapshotGroup stringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId string
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status string
- The status of Image.
- 
ImageTag[] 
- Tags.
- updatedAt string
- The update time of Image.
- visibility string
- The visibility of Image.
- architecture str
- The architecture of Image.
- boot_mode str
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- create_whole_ boolimage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- 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.
- instance_id str
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- is_support_ boolcloud_ init 
- Whether the Image support cloud-init.
- os_name str
- The name of Image operating system.
- os_type str
- The operating system type of Image.
- platform str
- The platform of Image.
- platform_version str
- The platform version of Image.
- project_name str
- The project name of the custom image.
- str
- The share mode of Image.
- size int
- The size(GiB) of Image.
- snapshot_group_ strid 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshot_id str
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status str
- The status of Image.
- 
Sequence[ImageTag Args] 
- Tags.
- updated_at str
- The update time of Image.
- visibility str
- The visibility of Image.
- architecture String
- The architecture of Image.
- bootMode String
- The boot mode of the custom image. Valid values: BIOS,UEFI. This field is only effective when modifying the image.
- createWhole BooleanImage 
- Whether to create whole image. Default is false. This field is only effective when creating a new custom image.
- createdAt String
- The create time of Image.
- description String
- The description of the custom image.
- imageName String
- The name of the custom image.
- instanceId String
- The instance id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- isSupport BooleanCloud Init 
- Whether the Image support cloud-init.
- osName String
- The name of Image operating system.
- osType String
- The operating system type of Image.
- platform String
- The platform of Image.
- platformVersion String
- The platform version of Image.
- projectName String
- The project name of the custom image.
- String
- The share mode of Image.
- size Number
- The size(GiB) of Image.
- snapshotGroup StringId 
- The snapshot group id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- snapshotId String
- The snapshot id of the custom image. Only one of instance_id, snapshot_id, snapshot_group_idcan be specified.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status String
- The status of Image.
- List<Property Map>
- Tags.
- updatedAt String
- The update time of Image.
- visibility String
- The visibility of Image.
Supporting Types
ImageTag, ImageTagArgs    
Import
Image can be imported using the id, e.g.
$ pulumi import volcengine:ecs/image:Image default resource_id
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 volcengineTerraform Provider.