Show / Hide Table of Contents

Class ImageExport

Export a custom image to the OSS bucket in the same region as the custom image.

NOTE: If you create an ECS instance using a mirror image and create a system disk snapshot again, exporting a custom image created from the system disk snapshot is not supported.

NOTE: Support for exporting custom images that include data disk snapshot information in the image. The number of data disks cannot exceed 4 and the maximum capacity of a single data disk cannot exceed 500 GiB.

NOTE: Before exporting the image, you must authorize the cloud server ECS official service account to write OSS permissions through RAM.

NOTE: Available in 1.68.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var @default = new AliCloud.Ecs.ImageExport("default", new AliCloud.Ecs.ImageExportArgs
    {
        ImageId = "m-bp1gxy***",
        OssBucket = "ecsimageexportconfig",
        OssPrefix = "ecsExport",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ImageExport
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class ImageExport : CustomResource

Constructors

View Source

ImageExport(String, ImageExportArgs, CustomResourceOptions)

Create a ImageExport resource with the given unique name, arguments, and options.

Declaration
public ImageExport(string name, ImageExportArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ImageExportArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ImageId

The source image ID.

Declaration
public Output<string> ImageId { get; }
Property Value
Type Description
Output<System.String>
View Source

OssBucket

Save the exported OSS bucket.

Declaration
public Output<string> OssBucket { get; }
Property Value
Type Description
Output<System.String>
View Source

OssPrefix

The prefix of your OSS Object. It can be composed of numbers or letters, and the character length is 1 ~ 30.

Declaration
public Output<string> OssPrefix { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ImageExportState, CustomResourceOptions)

Get an existing ImageExport resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ImageExport Get(string name, Input<string> id, ImageExportState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ImageExportState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ImageExport
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.