1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. Image
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Core.Image

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Image resource in Oracle Cloud Infrastructure Core service.

    Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service.

    When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and the OCID of the compartment containing that instance. For more information about images, see Managing Custom Images.

    When importing an exported image from Object Storage, you specify the source information in ImageSourceDetails.

    When importing an image based on the namespace, bucket name, and object name, use ImageSourceViaObjectStorageTupleDetails.

    When importing an image based on the Object Storage URL, use ImageSourceViaObjectStorageUriDetails. See Object Storage URLs and Using Pre-Authenticated Requests for constructing URLs for image import/export.

    For more information about importing exported images, see Image Import/Export.

    You may optionally specify a display name for the image, which is simply a friendly name or description. It does not have to be unique, and you can change it. See UpdateImage. Avoid entering confidential information.

    Example Usage

    Create image from instance in tenancy

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testImage = new oci.core.Image("testImage", {
        compartmentId: _var.compartment_id,
        instanceId: oci_core_instance.test_instance.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.image_display_name,
        launchMode: _var.image_launch_mode,
        freeformTags: {
            Department: "Finance",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_image = oci.core.Image("testImage",
        compartment_id=var["compartment_id"],
        instance_id=oci_core_instance["test_instance"]["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["image_display_name"],
        launch_mode=var["image_launch_mode"],
        freeform_tags={
            "Department": "Finance",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewImage(ctx, "testImage", &Core.ImageArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			InstanceId:    pulumi.Any(oci_core_instance.Test_instance.Id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Image_display_name),
    			LaunchMode:  pulumi.Any(_var.Image_launch_mode),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testImage = new Oci.Core.Image("testImage", new()
        {
            CompartmentId = @var.Compartment_id,
            InstanceId = oci_core_instance.Test_instance.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Image_display_name,
            LaunchMode = @var.Image_launch_mode,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.Image;
    import com.pulumi.oci.Core.ImageArgs;
    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 testImage = new Image("testImage", ImageArgs.builder()        
                .compartmentId(var_.compartment_id())
                .instanceId(oci_core_instance.test_instance().id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.image_display_name())
                .launchMode(var_.image_launch_mode())
                .freeformTags(Map.of("Department", "Finance"))
                .build());
    
        }
    }
    
    resources:
      testImage:
        type: oci:Core:Image
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          instanceId: ${oci_core_instance.test_instance.id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.image_display_name}
          launchMode: ${var.image_launch_mode}
          freeformTags:
            Department: Finance
    

    Create image from exported image via direct access to object store

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testImage = new oci.core.Image("testImage", {
        compartmentId: _var.compartment_id,
        displayName: _var.image_display_name,
        launchMode: _var.image_launch_mode,
        imageSourceDetails: {
            sourceType: "objectStorageTuple",
            bucketName: _var.bucket_name,
            namespaceName: _var.namespace,
            objectName: _var.object_name,
            operatingSystem: _var.image_image_source_details_operating_system,
            operatingSystemVersion: _var.image_image_source_details_operating_system_version,
            sourceImageType: _var.source_image_type,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_image = oci.core.Image("testImage",
        compartment_id=var["compartment_id"],
        display_name=var["image_display_name"],
        launch_mode=var["image_launch_mode"],
        image_source_details=oci.core.ImageImageSourceDetailsArgs(
            source_type="objectStorageTuple",
            bucket_name=var["bucket_name"],
            namespace_name=var["namespace"],
            object_name=var["object_name"],
            operating_system=var["image_image_source_details_operating_system"],
            operating_system_version=var["image_image_source_details_operating_system_version"],
            source_image_type=var["source_image_type"],
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewImage(ctx, "testImage", &Core.ImageArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			DisplayName:   pulumi.Any(_var.Image_display_name),
    			LaunchMode:    pulumi.Any(_var.Image_launch_mode),
    			ImageSourceDetails: &core.ImageImageSourceDetailsArgs{
    				SourceType:             pulumi.String("objectStorageTuple"),
    				BucketName:             pulumi.Any(_var.Bucket_name),
    				NamespaceName:          pulumi.Any(_var.Namespace),
    				ObjectName:             pulumi.Any(_var.Object_name),
    				OperatingSystem:        pulumi.Any(_var.Image_image_source_details_operating_system),
    				OperatingSystemVersion: pulumi.Any(_var.Image_image_source_details_operating_system_version),
    				SourceImageType:        pulumi.Any(_var.Source_image_type),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testImage = new Oci.Core.Image("testImage", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Image_display_name,
            LaunchMode = @var.Image_launch_mode,
            ImageSourceDetails = new Oci.Core.Inputs.ImageImageSourceDetailsArgs
            {
                SourceType = "objectStorageTuple",
                BucketName = @var.Bucket_name,
                NamespaceName = @var.Namespace,
                ObjectName = @var.Object_name,
                OperatingSystem = @var.Image_image_source_details_operating_system,
                OperatingSystemVersion = @var.Image_image_source_details_operating_system_version,
                SourceImageType = @var.Source_image_type,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.Image;
    import com.pulumi.oci.Core.ImageArgs;
    import com.pulumi.oci.Core.inputs.ImageImageSourceDetailsArgs;
    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 testImage = new Image("testImage", ImageArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.image_display_name())
                .launchMode(var_.image_launch_mode())
                .imageSourceDetails(ImageImageSourceDetailsArgs.builder()
                    .sourceType("objectStorageTuple")
                    .bucketName(var_.bucket_name())
                    .namespaceName(var_.namespace())
                    .objectName(var_.object_name())
                    .operatingSystem(var_.image_image_source_details_operating_system())
                    .operatingSystemVersion(var_.image_image_source_details_operating_system_version())
                    .sourceImageType(var_.source_image_type())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testImage:
        type: oci:Core:Image
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          #Optional
          displayName: ${var.image_display_name}
          launchMode: ${var.image_launch_mode}
          imageSourceDetails:
            sourceType: objectStorageTuple
            bucketName: ${var.bucket_name}
            namespaceName: ${var.namespace}
            objectName: ${var.object_name}
            operatingSystem: ${var.image_image_source_details_operating_system}
            operatingSystemVersion: ${var.image_image_source_details_operating_system_version}
            sourceImageType: ${var.source_image_type}
    

    Create image from exported image at publicly accessible uri

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testImage = new oci.core.Image("testImage", {
        compartmentId: _var.compartment_id,
        displayName: _var.image_display_name,
        launchMode: _var.image_launch_mode,
        imageSourceDetails: {
            sourceType: "objectStorageUri",
            sourceUri: _var.source_uri,
            operatingSystem: _var.image_image_source_details_operating_system,
            operatingSystemVersion: _var.image_image_source_details_operating_system_version,
            sourceImageType: _var.source_image_type,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_image = oci.core.Image("testImage",
        compartment_id=var["compartment_id"],
        display_name=var["image_display_name"],
        launch_mode=var["image_launch_mode"],
        image_source_details=oci.core.ImageImageSourceDetailsArgs(
            source_type="objectStorageUri",
            source_uri=var["source_uri"],
            operating_system=var["image_image_source_details_operating_system"],
            operating_system_version=var["image_image_source_details_operating_system_version"],
            source_image_type=var["source_image_type"],
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewImage(ctx, "testImage", &Core.ImageArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			DisplayName:   pulumi.Any(_var.Image_display_name),
    			LaunchMode:    pulumi.Any(_var.Image_launch_mode),
    			ImageSourceDetails: &core.ImageImageSourceDetailsArgs{
    				SourceType:             pulumi.String("objectStorageUri"),
    				SourceUri:              pulumi.Any(_var.Source_uri),
    				OperatingSystem:        pulumi.Any(_var.Image_image_source_details_operating_system),
    				OperatingSystemVersion: pulumi.Any(_var.Image_image_source_details_operating_system_version),
    				SourceImageType:        pulumi.Any(_var.Source_image_type),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testImage = new Oci.Core.Image("testImage", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Image_display_name,
            LaunchMode = @var.Image_launch_mode,
            ImageSourceDetails = new Oci.Core.Inputs.ImageImageSourceDetailsArgs
            {
                SourceType = "objectStorageUri",
                SourceUri = @var.Source_uri,
                OperatingSystem = @var.Image_image_source_details_operating_system,
                OperatingSystemVersion = @var.Image_image_source_details_operating_system_version,
                SourceImageType = @var.Source_image_type,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.Image;
    import com.pulumi.oci.Core.ImageArgs;
    import com.pulumi.oci.Core.inputs.ImageImageSourceDetailsArgs;
    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 testImage = new Image("testImage", ImageArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.image_display_name())
                .launchMode(var_.image_launch_mode())
                .imageSourceDetails(ImageImageSourceDetailsArgs.builder()
                    .sourceType("objectStorageUri")
                    .sourceUri(var_.source_uri())
                    .operatingSystem(var_.image_image_source_details_operating_system())
                    .operatingSystemVersion(var_.image_image_source_details_operating_system_version())
                    .sourceImageType(var_.source_image_type())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testImage:
        type: oci:Core:Image
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          #Optional
          displayName: ${var.image_display_name}
          launchMode: ${var.image_launch_mode}
          imageSourceDetails:
            sourceType: objectStorageUri
            sourceUri: ${var.source_uri}
            operatingSystem: ${var.image_image_source_details_operating_system}
            operatingSystemVersion: ${var.image_image_source_details_operating_system_version}
            sourceImageType: ${var.source_image_type}
    

    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,
              compartment_id: Optional[str] = None,
              defined_tags: Optional[Mapping[str, Any]] = None,
              display_name: Optional[str] = None,
              freeform_tags: Optional[Mapping[str, Any]] = None,
              image_source_details: Optional[_core.ImageImageSourceDetailsArgs] = None,
              instance_id: Optional[str] = None,
              launch_mode: Optional[str] = None)
    func NewImage(ctx *Context, name string, args ImageArgs, opts ...ResourceOption) (*Image, error)
    public Image(string name, ImageArgs args, CustomResourceOptions? opts = null)
    public Image(String name, ImageArgs args)
    public Image(String name, ImageArgs args, CustomResourceOptions options)
    
    type: oci:Core: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.

    Example

    The following reference example uses placeholder values for all input properties.

    var imageResource = new Oci.Core.Image("imageResource", new()
    {
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        ImageSourceDetails = new Oci.Core.Inputs.ImageImageSourceDetailsArgs
        {
            SourceType = "string",
            BucketName = "string",
            NamespaceName = "string",
            ObjectName = "string",
            OperatingSystem = "string",
            OperatingSystemVersion = "string",
            SourceImageType = "string",
            SourceUri = "string",
        },
        InstanceId = "string",
        LaunchMode = "string",
    });
    
    example, err := Core.NewImage(ctx, "imageResource", &Core.ImageArgs{
    	CompartmentId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	ImageSourceDetails: &core.ImageImageSourceDetailsArgs{
    		SourceType:             pulumi.String("string"),
    		BucketName:             pulumi.String("string"),
    		NamespaceName:          pulumi.String("string"),
    		ObjectName:             pulumi.String("string"),
    		OperatingSystem:        pulumi.String("string"),
    		OperatingSystemVersion: pulumi.String("string"),
    		SourceImageType:        pulumi.String("string"),
    		SourceUri:              pulumi.String("string"),
    	},
    	InstanceId: pulumi.String("string"),
    	LaunchMode: pulumi.String("string"),
    })
    
    var imageResource = new Image("imageResource", ImageArgs.builder()        
        .compartmentId("string")
        .definedTags(Map.of("string", "any"))
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .imageSourceDetails(ImageImageSourceDetailsArgs.builder()
            .sourceType("string")
            .bucketName("string")
            .namespaceName("string")
            .objectName("string")
            .operatingSystem("string")
            .operatingSystemVersion("string")
            .sourceImageType("string")
            .sourceUri("string")
            .build())
        .instanceId("string")
        .launchMode("string")
        .build());
    
    image_resource = oci.core.Image("imageResource",
        compartment_id="string",
        defined_tags={
            "string": "any",
        },
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        image_source_details=oci.core.ImageImageSourceDetailsArgs(
            source_type="string",
            bucket_name="string",
            namespace_name="string",
            object_name="string",
            operating_system="string",
            operating_system_version="string",
            source_image_type="string",
            source_uri="string",
        ),
        instance_id="string",
        launch_mode="string")
    
    const imageResource = new oci.core.Image("imageResource", {
        compartmentId: "string",
        definedTags: {
            string: "any",
        },
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        imageSourceDetails: {
            sourceType: "string",
            bucketName: "string",
            namespaceName: "string",
            objectName: "string",
            operatingSystem: "string",
            operatingSystemVersion: "string",
            sourceImageType: "string",
            sourceUri: "string",
        },
        instanceId: "string",
        launchMode: "string",
    });
    
    type: oci:Core:Image
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        imageSourceDetails:
            bucketName: string
            namespaceName: string
            objectName: string
            operatingSystem: string
            operatingSystemVersion: string
            sourceImageType: string
            sourceType: string
            sourceUri: string
        instanceId: string
        launchMode: 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

    The Image resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ImageSourceDetails ImageImageSourceDetails
    InstanceId string
    The OCID of the instance you want to use as the basis for the image.
    LaunchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    CompartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ImageSourceDetails ImageImageSourceDetailsArgs
    InstanceId string
    The OCID of the instance you want to use as the basis for the image.
    LaunchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    compartmentId String
    (Updatable) The OCID of the compartment you want the image to be created in.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails ImageImageSourceDetails
    instanceId String
    The OCID of the instance you want to use as the basis for the image.
    launchMode String
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    compartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails ImageImageSourceDetails
    instanceId string
    The OCID of the instance you want to use as the basis for the image.
    launchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    compartment_id str
    (Updatable) The OCID of the compartment you want the image to be created in.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    image_source_details core.ImageImageSourceDetailsArgs
    instance_id str
    The OCID of the instance you want to use as the basis for the image.
    launch_mode str
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    compartmentId String
    (Updatable) The OCID of the compartment you want the image to be created in.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails Property Map
    instanceId String
    The OCID of the instance you want to use as the basis for the image.
    launchMode String
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:

    Outputs

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

    AgentFeatures List<ImageAgentFeature>
    Oracle Cloud Agent features supported on the image.
    BaseImageId string
    The OCID of the image originally used to launch the instance.
    BillableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    CreateImageAllowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    Id string
    The provider-assigned unique ID for this managed resource.
    LaunchOptions List<ImageLaunchOption>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    ListingType string
    The listing type of the image. The default value is "NONE".
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    State string
    The current state of the image.
    TimeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    AgentFeatures []ImageAgentFeature
    Oracle Cloud Agent features supported on the image.
    BaseImageId string
    The OCID of the image originally used to launch the instance.
    BillableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    CreateImageAllowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    Id string
    The provider-assigned unique ID for this managed resource.
    LaunchOptions []ImageLaunchOption
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    ListingType string
    The listing type of the image. The default value is "NONE".
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    State string
    The current state of the image.
    TimeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures List<ImageAgentFeature>
    Oracle Cloud Agent features supported on the image.
    baseImageId String
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs String
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    createImageAllowed Boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    id String
    The provider-assigned unique ID for this managed resource.
    launchOptions List<ImageLaunchOption>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType String
    The listing type of the image. The default value is "NONE".
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sizeInMbs String
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state String
    The current state of the image.
    timeCreated String
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures ImageAgentFeature[]
    Oracle Cloud Agent features supported on the image.
    baseImageId string
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    createImageAllowed boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    id string
    The provider-assigned unique ID for this managed resource.
    launchOptions ImageLaunchOption[]
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType string
    The listing type of the image. The default value is "NONE".
    operatingSystem string
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion string
    The image's operating system version. Example: 7.2
    sizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state string
    The current state of the image.
    timeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agent_features Sequence[core.ImageAgentFeature]
    Oracle Cloud Agent features supported on the image.
    base_image_id str
    The OCID of the image originally used to launch the instance.
    billable_size_in_gbs str
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    create_image_allowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    id str
    The provider-assigned unique ID for this managed resource.
    launch_options Sequence[core.ImageLaunchOption]
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listing_type str
    The listing type of the image. The default value is "NONE".
    operating_system str
    The image's operating system. Example: Oracle Linux
    operating_system_version str
    The image's operating system version. Example: 7.2
    size_in_mbs str
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state str
    The current state of the image.
    time_created str
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures List<Property Map>
    Oracle Cloud Agent features supported on the image.
    baseImageId String
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs String
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    createImageAllowed Boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    id String
    The provider-assigned unique ID for this managed resource.
    launchOptions List<Property Map>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType String
    The listing type of the image. The default value is "NONE".
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sizeInMbs String
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state String
    The current state of the image.
    timeCreated String
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    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,
            agent_features: Optional[Sequence[_core.ImageAgentFeatureArgs]] = None,
            base_image_id: Optional[str] = None,
            billable_size_in_gbs: Optional[str] = None,
            compartment_id: Optional[str] = None,
            create_image_allowed: Optional[bool] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            image_source_details: Optional[_core.ImageImageSourceDetailsArgs] = None,
            instance_id: Optional[str] = None,
            launch_mode: Optional[str] = None,
            launch_options: Optional[Sequence[_core.ImageLaunchOptionArgs]] = None,
            listing_type: Optional[str] = None,
            operating_system: Optional[str] = None,
            operating_system_version: Optional[str] = None,
            size_in_mbs: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None) -> Image
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AgentFeatures List<ImageAgentFeature>
    Oracle Cloud Agent features supported on the image.
    BaseImageId string
    The OCID of the image originally used to launch the instance.
    BillableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    CompartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    CreateImageAllowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ImageSourceDetails ImageImageSourceDetails
    InstanceId string
    The OCID of the instance you want to use as the basis for the image.
    LaunchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    LaunchOptions List<ImageLaunchOption>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    ListingType string
    The listing type of the image. The default value is "NONE".
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    State string
    The current state of the image.
    TimeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    AgentFeatures []ImageAgentFeatureArgs
    Oracle Cloud Agent features supported on the image.
    BaseImageId string
    The OCID of the image originally used to launch the instance.
    BillableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    CompartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    CreateImageAllowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    ImageSourceDetails ImageImageSourceDetailsArgs
    InstanceId string
    The OCID of the instance you want to use as the basis for the image.
    LaunchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    LaunchOptions []ImageLaunchOptionArgs
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    ListingType string
    The listing type of the image. The default value is "NONE".
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    State string
    The current state of the image.
    TimeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures List<ImageAgentFeature>
    Oracle Cloud Agent features supported on the image.
    baseImageId String
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs String
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    compartmentId String
    (Updatable) The OCID of the compartment you want the image to be created in.
    createImageAllowed Boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails ImageImageSourceDetails
    instanceId String
    The OCID of the instance you want to use as the basis for the image.
    launchMode String
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    launchOptions List<ImageLaunchOption>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType String
    The listing type of the image. The default value is "NONE".
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sizeInMbs String
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state String
    The current state of the image.
    timeCreated String
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures ImageAgentFeature[]
    Oracle Cloud Agent features supported on the image.
    baseImageId string
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs string
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    compartmentId string
    (Updatable) The OCID of the compartment you want the image to be created in.
    createImageAllowed boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails ImageImageSourceDetails
    instanceId string
    The OCID of the instance you want to use as the basis for the image.
    launchMode string
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    launchOptions ImageLaunchOption[]
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType string
    The listing type of the image. The default value is "NONE".
    operatingSystem string
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion string
    The image's operating system version. Example: 7.2
    sizeInMbs string
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state string
    The current state of the image.
    timeCreated string
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agent_features Sequence[core.ImageAgentFeatureArgs]
    Oracle Cloud Agent features supported on the image.
    base_image_id str
    The OCID of the image originally used to launch the instance.
    billable_size_in_gbs str
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    compartment_id str
    (Updatable) The OCID of the compartment you want the image to be created in.
    create_image_allowed bool
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    image_source_details core.ImageImageSourceDetailsArgs
    instance_id str
    The OCID of the instance you want to use as the basis for the image.
    launch_mode str
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    launch_options Sequence[core.ImageLaunchOptionArgs]
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listing_type str
    The listing type of the image. The default value is "NONE".
    operating_system str
    The image's operating system. Example: Oracle Linux
    operating_system_version str
    The image's operating system version. Example: 7.2
    size_in_mbs str
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state str
    The current state of the image.
    time_created str
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    agentFeatures List<Property Map>
    Oracle Cloud Agent features supported on the image.
    baseImageId String
    The OCID of the image originally used to launch the instance.
    billableSizeInGbs String
    The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). Example: 100
    compartmentId String
    (Updatable) The OCID of the compartment you want the image to be created in.
    createImageAllowed Boolean
    Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance. Example: true
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String

    (Updatable) A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    You cannot use a platform image name as a custom image name.

    Example: My Oracle Linux image

    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    imageSourceDetails Property Map
    instanceId String
    The OCID of the instance you want to use as the basis for the image.
    launchMode String
    Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
    launchOptions List<Property Map>
    Options for tuning the compatibility and performance of VM shapes. The values that you specify override any default values.
    listingType String
    The listing type of the image. The default value is "NONE".
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sizeInMbs String
    The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image. Example: 47694
    state String
    The current state of the image.
    timeCreated String
    The date and time the image was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    ImageAgentFeature, ImageAgentFeatureArgs

    IsManagementSupported bool
    This attribute is not used.
    IsMonitoringSupported bool
    This attribute is not used.
    IsManagementSupported bool
    This attribute is not used.
    IsMonitoringSupported bool
    This attribute is not used.
    isManagementSupported Boolean
    This attribute is not used.
    isMonitoringSupported Boolean
    This attribute is not used.
    isManagementSupported boolean
    This attribute is not used.
    isMonitoringSupported boolean
    This attribute is not used.
    is_management_supported bool
    This attribute is not used.
    is_monitoring_supported bool
    This attribute is not used.
    isManagementSupported Boolean
    This attribute is not used.
    isMonitoringSupported Boolean
    This attribute is not used.

    ImageImageSourceDetails, ImageImageSourceDetailsArgs

    SourceType string
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    BucketName string
    The Object Storage bucket for the image.
    NamespaceName string
    The Object Storage namespace for the image.
    ObjectName string
    The Object Storage name for the image.
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SourceImageType string
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    SourceUri string
    The Object Storage URL for the image.
    SourceType string
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    BucketName string
    The Object Storage bucket for the image.
    NamespaceName string
    The Object Storage namespace for the image.
    ObjectName string
    The Object Storage name for the image.
    OperatingSystem string
    The image's operating system. Example: Oracle Linux
    OperatingSystemVersion string
    The image's operating system version. Example: 7.2
    SourceImageType string
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    SourceUri string
    The Object Storage URL for the image.
    sourceType String
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    bucketName String
    The Object Storage bucket for the image.
    namespaceName String
    The Object Storage namespace for the image.
    objectName String
    The Object Storage name for the image.
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sourceImageType String
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    sourceUri String
    The Object Storage URL for the image.
    sourceType string
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    bucketName string
    The Object Storage bucket for the image.
    namespaceName string
    The Object Storage namespace for the image.
    objectName string
    The Object Storage name for the image.
    operatingSystem string
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion string
    The image's operating system version. Example: 7.2
    sourceImageType string
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    sourceUri string
    The Object Storage URL for the image.
    source_type str
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    bucket_name str
    The Object Storage bucket for the image.
    namespace_name str
    The Object Storage namespace for the image.
    object_name str
    The Object Storage name for the image.
    operating_system str
    The image's operating system. Example: Oracle Linux
    operating_system_version str
    The image's operating system version. Example: 7.2
    source_image_type str
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    source_uri str
    The Object Storage URL for the image.
    sourceType String
    The source type for the image. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.
    bucketName String
    The Object Storage bucket for the image.
    namespaceName String
    The Object Storage namespace for the image.
    objectName String
    The Object Storage name for the image.
    operatingSystem String
    The image's operating system. Example: Oracle Linux
    operatingSystemVersion String
    The image's operating system version. Example: 7.2
    sourceImageType String
    The format of the image to be imported. Only monolithic images are supported. This attribute is not used for exported Oracle images with the Oracle Cloud Infrastructure image format. Allowed values are:
    sourceUri String
    The Object Storage URL for the image.

    ImageLaunchOption, ImageLaunchOptionArgs

    BootVolumeType string
    Emulation type for the boot volume.
    Firmware string
    Firmware used to boot VM. Select the option that matches your operating system.
    IsConsistentVolumeNamingEnabled bool
    Whether to enable consistent volume naming feature. Defaults to false.
    IsPvEncryptionInTransitEnabled bool
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    NetworkType string
    Emulation type for the physical network interface card (NIC).
    RemoteDataVolumeType string
    Emulation type for volume.
    BootVolumeType string
    Emulation type for the boot volume.
    Firmware string
    Firmware used to boot VM. Select the option that matches your operating system.
    IsConsistentVolumeNamingEnabled bool
    Whether to enable consistent volume naming feature. Defaults to false.
    IsPvEncryptionInTransitEnabled bool
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    NetworkType string
    Emulation type for the physical network interface card (NIC).
    RemoteDataVolumeType string
    Emulation type for volume.
    bootVolumeType String
    Emulation type for the boot volume.
    firmware String
    Firmware used to boot VM. Select the option that matches your operating system.
    isConsistentVolumeNamingEnabled Boolean
    Whether to enable consistent volume naming feature. Defaults to false.
    isPvEncryptionInTransitEnabled Boolean
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    networkType String
    Emulation type for the physical network interface card (NIC).
    remoteDataVolumeType String
    Emulation type for volume.
    bootVolumeType string
    Emulation type for the boot volume.
    firmware string
    Firmware used to boot VM. Select the option that matches your operating system.
    isConsistentVolumeNamingEnabled boolean
    Whether to enable consistent volume naming feature. Defaults to false.
    isPvEncryptionInTransitEnabled boolean
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    networkType string
    Emulation type for the physical network interface card (NIC).
    remoteDataVolumeType string
    Emulation type for volume.
    boot_volume_type str
    Emulation type for the boot volume.
    firmware str
    Firmware used to boot VM. Select the option that matches your operating system.
    is_consistent_volume_naming_enabled bool
    Whether to enable consistent volume naming feature. Defaults to false.
    is_pv_encryption_in_transit_enabled bool
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    network_type str
    Emulation type for the physical network interface card (NIC).
    remote_data_volume_type str
    Emulation type for volume.
    bootVolumeType String
    Emulation type for the boot volume.
    firmware String
    Firmware used to boot VM. Select the option that matches your operating system.
    isConsistentVolumeNamingEnabled Boolean
    Whether to enable consistent volume naming feature. Defaults to false.
    isPvEncryptionInTransitEnabled Boolean
    Deprecated. Instead use isPvEncryptionInTransitEnabled in LaunchInstanceDetails.
    networkType String
    Emulation type for the physical network interface card (NIC).
    remoteDataVolumeType String
    Emulation type for volume.

    Import

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

    $ pulumi import oci:Core/image:Image test_image "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi