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

oci.Database.DatabaseSoftwareImage

Explore with Pulumi AI

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

    This resource provides the Database Software Image resource in Oracle Cloud Infrastructure Database service.

    create database software image in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseSoftwareImage = new oci.database.DatabaseSoftwareImage("testDatabaseSoftwareImage", {
        compartmentId: _var.compartment_id,
        displayName: _var.database_software_image_display_name,
        databaseSoftwareImageOneOffPatches: _var.database_software_image_database_software_image_one_off_patches,
        databaseVersion: _var.database_software_image_database_version,
        definedTags: _var.database_software_image_defined_tags,
        freeformTags: {
            Department: "Finance",
        },
        imageShapeFamily: _var.database_software_image_image_shape_family,
        imageType: _var.database_software_image_image_type,
        lsInventory: _var.database_software_image_ls_inventory,
        patchSet: _var.database_software_image_patch_set,
        sourceDbHomeId: oci_database_db_home.test_db_home.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_software_image = oci.database.DatabaseSoftwareImage("testDatabaseSoftwareImage",
        compartment_id=var["compartment_id"],
        display_name=var["database_software_image_display_name"],
        database_software_image_one_off_patches=var["database_software_image_database_software_image_one_off_patches"],
        database_version=var["database_software_image_database_version"],
        defined_tags=var["database_software_image_defined_tags"],
        freeform_tags={
            "Department": "Finance",
        },
        image_shape_family=var["database_software_image_image_shape_family"],
        image_type=var["database_software_image_image_type"],
        ls_inventory=var["database_software_image_ls_inventory"],
        patch_set=var["database_software_image_patch_set"],
        source_db_home_id=oci_database_db_home["test_db_home"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewDatabaseSoftwareImage(ctx, "testDatabaseSoftwareImage", &Database.DatabaseSoftwareImageArgs{
    			CompartmentId:                      pulumi.Any(_var.Compartment_id),
    			DisplayName:                        pulumi.Any(_var.Database_software_image_display_name),
    			DatabaseSoftwareImageOneOffPatches: pulumi.Any(_var.Database_software_image_database_software_image_one_off_patches),
    			DatabaseVersion:                    pulumi.Any(_var.Database_software_image_database_version),
    			DefinedTags:                        pulumi.Any(_var.Database_software_image_defined_tags),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			ImageShapeFamily: pulumi.Any(_var.Database_software_image_image_shape_family),
    			ImageType:        pulumi.Any(_var.Database_software_image_image_type),
    			LsInventory:      pulumi.Any(_var.Database_software_image_ls_inventory),
    			PatchSet:         pulumi.Any(_var.Database_software_image_patch_set),
    			SourceDbHomeId:   pulumi.Any(oci_database_db_home.Test_db_home.Id),
    		})
    		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 testDatabaseSoftwareImage = new Oci.Database.DatabaseSoftwareImage("testDatabaseSoftwareImage", new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Database_software_image_display_name,
            DatabaseSoftwareImageOneOffPatches = @var.Database_software_image_database_software_image_one_off_patches,
            DatabaseVersion = @var.Database_software_image_database_version,
            DefinedTags = @var.Database_software_image_defined_tags,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ImageShapeFamily = @var.Database_software_image_image_shape_family,
            ImageType = @var.Database_software_image_image_type,
            LsInventory = @var.Database_software_image_ls_inventory,
            PatchSet = @var.Database_software_image_patch_set,
            SourceDbHomeId = oci_database_db_home.Test_db_home.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.DatabaseSoftwareImage;
    import com.pulumi.oci.Database.DatabaseSoftwareImageArgs;
    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 testDatabaseSoftwareImage = new DatabaseSoftwareImage("testDatabaseSoftwareImage", DatabaseSoftwareImageArgs.builder()        
                .compartmentId(var_.compartment_id())
                .displayName(var_.database_software_image_display_name())
                .databaseSoftwareImageOneOffPatches(var_.database_software_image_database_software_image_one_off_patches())
                .databaseVersion(var_.database_software_image_database_version())
                .definedTags(var_.database_software_image_defined_tags())
                .freeformTags(Map.of("Department", "Finance"))
                .imageShapeFamily(var_.database_software_image_image_shape_family())
                .imageType(var_.database_software_image_image_type())
                .lsInventory(var_.database_software_image_ls_inventory())
                .patchSet(var_.database_software_image_patch_set())
                .sourceDbHomeId(oci_database_db_home.test_db_home().id())
                .build());
    
        }
    }
    
    resources:
      testDatabaseSoftwareImage:
        type: oci:Database:DatabaseSoftwareImage
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          displayName: ${var.database_software_image_display_name}
          #Optional
          databaseSoftwareImageOneOffPatches: ${var.database_software_image_database_software_image_one_off_patches}
          databaseVersion: ${var.database_software_image_database_version}
          definedTags: ${var.database_software_image_defined_tags}
          freeformTags:
            Department: Finance
          imageShapeFamily: ${var.database_software_image_image_shape_family}
          imageType: ${var.database_software_image_image_type}
          lsInventory: ${var.database_software_image_ls_inventory}
          patchSet: ${var.database_software_image_patch_set}
          sourceDbHomeId: ${oci_database_db_home.test_db_home.id}
    

    Create DatabaseSoftwareImage Resource

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

    Constructor syntax

    new DatabaseSoftwareImage(name: string, args: DatabaseSoftwareImageArgs, opts?: CustomResourceOptions);
    @overload
    def DatabaseSoftwareImage(resource_name: str,
                              args: DatabaseSoftwareImageArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def DatabaseSoftwareImage(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              compartment_id: Optional[str] = None,
                              display_name: Optional[str] = None,
                              database_software_image_one_off_patches: Optional[Sequence[str]] = None,
                              database_version: Optional[str] = None,
                              defined_tags: Optional[Mapping[str, Any]] = None,
                              freeform_tags: Optional[Mapping[str, Any]] = None,
                              image_shape_family: Optional[str] = None,
                              image_type: Optional[str] = None,
                              ls_inventory: Optional[str] = None,
                              patch_set: Optional[str] = None,
                              source_db_home_id: Optional[str] = None)
    func NewDatabaseSoftwareImage(ctx *Context, name string, args DatabaseSoftwareImageArgs, opts ...ResourceOption) (*DatabaseSoftwareImage, error)
    public DatabaseSoftwareImage(string name, DatabaseSoftwareImageArgs args, CustomResourceOptions? opts = null)
    public DatabaseSoftwareImage(String name, DatabaseSoftwareImageArgs args)
    public DatabaseSoftwareImage(String name, DatabaseSoftwareImageArgs args, CustomResourceOptions options)
    
    type: oci:Database:DatabaseSoftwareImage
    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 DatabaseSoftwareImageArgs
    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 DatabaseSoftwareImageArgs
    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 DatabaseSoftwareImageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatabaseSoftwareImageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatabaseSoftwareImageArgs
    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 databaseSoftwareImageResource = new Oci.Database.DatabaseSoftwareImage("databaseSoftwareImageResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        DatabaseSoftwareImageOneOffPatches = new[]
        {
            "string",
        },
        DatabaseVersion = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        ImageShapeFamily = "string",
        ImageType = "string",
        LsInventory = "string",
        PatchSet = "string",
        SourceDbHomeId = "string",
    });
    
    example, err := Database.NewDatabaseSoftwareImage(ctx, "databaseSoftwareImageResource", &Database.DatabaseSoftwareImageArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	DatabaseSoftwareImageOneOffPatches: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DatabaseVersion: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	ImageShapeFamily: pulumi.String("string"),
    	ImageType:        pulumi.String("string"),
    	LsInventory:      pulumi.String("string"),
    	PatchSet:         pulumi.String("string"),
    	SourceDbHomeId:   pulumi.String("string"),
    })
    
    var databaseSoftwareImageResource = new DatabaseSoftwareImage("databaseSoftwareImageResource", DatabaseSoftwareImageArgs.builder()        
        .compartmentId("string")
        .displayName("string")
        .databaseSoftwareImageOneOffPatches("string")
        .databaseVersion("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .imageShapeFamily("string")
        .imageType("string")
        .lsInventory("string")
        .patchSet("string")
        .sourceDbHomeId("string")
        .build());
    
    database_software_image_resource = oci.database.DatabaseSoftwareImage("databaseSoftwareImageResource",
        compartment_id="string",
        display_name="string",
        database_software_image_one_off_patches=["string"],
        database_version="string",
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        },
        image_shape_family="string",
        image_type="string",
        ls_inventory="string",
        patch_set="string",
        source_db_home_id="string")
    
    const databaseSoftwareImageResource = new oci.database.DatabaseSoftwareImage("databaseSoftwareImageResource", {
        compartmentId: "string",
        displayName: "string",
        databaseSoftwareImageOneOffPatches: ["string"],
        databaseVersion: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
        imageShapeFamily: "string",
        imageType: "string",
        lsInventory: "string",
        patchSet: "string",
        sourceDbHomeId: "string",
    });
    
    type: oci:Database:DatabaseSoftwareImage
    properties:
        compartmentId: string
        databaseSoftwareImageOneOffPatches:
            - string
        databaseVersion: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        imageShapeFamily: string
        imageType: string
        lsInventory: string
        patchSet: string
        sourceDbHomeId: string
    

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

    CompartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    DisplayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    DatabaseSoftwareImageOneOffPatches List<string>
    List of one-off patches for Database Homes.
    DatabaseVersion string
    The database version with which the database software image is to be built.
    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.
    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"}
    ImageShapeFamily string
    To what shape the image is meant for.
    ImageType string
    The type of software image. Can be grid or database.
    LsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    PatchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    SourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CompartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    DisplayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    DatabaseSoftwareImageOneOffPatches []string
    List of one-off patches for Database Homes.
    DatabaseVersion string
    The database version with which the database software image is to be built.
    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.
    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"}
    ImageShapeFamily string
    To what shape the image is meant for.
    ImageType string
    The type of software image. Can be grid or database.
    LsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    PatchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    SourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment the database software image belongs in.
    displayName String
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    databaseSoftwareImageOneOffPatches List<String>
    List of one-off patches for Database Homes.
    databaseVersion String
    The database version with which the database software image is to be built.
    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.
    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"}
    imageShapeFamily String
    To what shape the image is meant for.
    imageType String
    The type of software image. Can be grid or database.
    lsInventory String
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet String
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId String

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    displayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    databaseSoftwareImageOneOffPatches string[]
    List of one-off patches for Database Homes.
    databaseVersion string
    The database version with which the database software image is to be built.
    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.
    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"}
    imageShapeFamily string
    To what shape the image is meant for.
    imageType string
    The type of software image. Can be grid or database.
    lsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartment_id str
    (Updatable) The OCID of the compartment the database software image belongs in.
    display_name str
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    database_software_image_one_off_patches Sequence[str]
    List of one-off patches for Database Homes.
    database_version str
    The database version with which the database software image is to be built.
    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.
    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_shape_family str
    To what shape the image is meant for.
    image_type str
    The type of software image. Can be grid or database.
    ls_inventory str
    The output from the OPatch lsInventory command, which is passed as a string.
    patch_set str
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    source_db_home_id str

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    compartmentId String
    (Updatable) The OCID of the compartment the database software image belongs in.
    displayName String
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    databaseSoftwareImageOneOffPatches List<String>
    List of one-off patches for Database Homes.
    databaseVersion String
    The database version with which the database software image is to be built.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    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"}
    imageShapeFamily String
    To what shape the image is meant for.
    imageType String
    The type of software image. Can be grid or database.
    lsInventory String
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet String
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId String

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

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

    DatabaseSoftwareImageIncludedPatches List<string>
    List of one-off patches for Database Homes.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludedPatchesSummary string
    The patches included in the image and the version of the image.
    IsUpgradeSupported bool
    True if this Database software image is supported for Upgrade.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    State string
    The current state of the database software image.
    TimeCreated string
    The date and time the database software image was created.
    DatabaseSoftwareImageIncludedPatches []string
    List of one-off patches for Database Homes.
    Id string
    The provider-assigned unique ID for this managed resource.
    IncludedPatchesSummary string
    The patches included in the image and the version of the image.
    IsUpgradeSupported bool
    True if this Database software image is supported for Upgrade.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    State string
    The current state of the database software image.
    TimeCreated string
    The date and time the database software image was created.
    databaseSoftwareImageIncludedPatches List<String>
    List of one-off patches for Database Homes.
    id String
    The provider-assigned unique ID for this managed resource.
    includedPatchesSummary String
    The patches included in the image and the version of the image.
    isUpgradeSupported Boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    state String
    The current state of the database software image.
    timeCreated String
    The date and time the database software image was created.
    databaseSoftwareImageIncludedPatches string[]
    List of one-off patches for Database Homes.
    id string
    The provider-assigned unique ID for this managed resource.
    includedPatchesSummary string
    The patches included in the image and the version of the image.
    isUpgradeSupported boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails string
    Detailed message for the lifecycle state.
    state string
    The current state of the database software image.
    timeCreated string
    The date and time the database software image was created.
    database_software_image_included_patches Sequence[str]
    List of one-off patches for Database Homes.
    id str
    The provider-assigned unique ID for this managed resource.
    included_patches_summary str
    The patches included in the image and the version of the image.
    is_upgrade_supported bool
    True if this Database software image is supported for Upgrade.
    lifecycle_details str
    Detailed message for the lifecycle state.
    state str
    The current state of the database software image.
    time_created str
    The date and time the database software image was created.
    databaseSoftwareImageIncludedPatches List<String>
    List of one-off patches for Database Homes.
    id String
    The provider-assigned unique ID for this managed resource.
    includedPatchesSummary String
    The patches included in the image and the version of the image.
    isUpgradeSupported Boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    state String
    The current state of the database software image.
    timeCreated String
    The date and time the database software image was created.

    Look up Existing DatabaseSoftwareImage Resource

    Get an existing DatabaseSoftwareImage 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?: DatabaseSoftwareImageState, opts?: CustomResourceOptions): DatabaseSoftwareImage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            database_software_image_included_patches: Optional[Sequence[str]] = None,
            database_software_image_one_off_patches: Optional[Sequence[str]] = None,
            database_version: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            image_shape_family: Optional[str] = None,
            image_type: Optional[str] = None,
            included_patches_summary: Optional[str] = None,
            is_upgrade_supported: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            ls_inventory: Optional[str] = None,
            patch_set: Optional[str] = None,
            source_db_home_id: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None) -> DatabaseSoftwareImage
    func GetDatabaseSoftwareImage(ctx *Context, name string, id IDInput, state *DatabaseSoftwareImageState, opts ...ResourceOption) (*DatabaseSoftwareImage, error)
    public static DatabaseSoftwareImage Get(string name, Input<string> id, DatabaseSoftwareImageState? state, CustomResourceOptions? opts = null)
    public static DatabaseSoftwareImage get(String name, Output<String> id, DatabaseSoftwareImageState 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:
    CompartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    DatabaseSoftwareImageIncludedPatches List<string>
    List of one-off patches for Database Homes.
    DatabaseSoftwareImageOneOffPatches List<string>
    List of one-off patches for Database Homes.
    DatabaseVersion string
    The database version with which the database software image is to be built.
    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.
    DisplayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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"}
    ImageShapeFamily string
    To what shape the image is meant for.
    ImageType string
    The type of software image. Can be grid or database.
    IncludedPatchesSummary string
    The patches included in the image and the version of the image.
    IsUpgradeSupported bool
    True if this Database software image is supported for Upgrade.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    LsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    PatchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    SourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The current state of the database software image.
    TimeCreated string
    The date and time the database software image was created.
    CompartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    DatabaseSoftwareImageIncludedPatches []string
    List of one-off patches for Database Homes.
    DatabaseSoftwareImageOneOffPatches []string
    List of one-off patches for Database Homes.
    DatabaseVersion string
    The database version with which the database software image is to be built.
    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.
    DisplayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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"}
    ImageShapeFamily string
    To what shape the image is meant for.
    ImageType string
    The type of software image. Can be grid or database.
    IncludedPatchesSummary string
    The patches included in the image and the version of the image.
    IsUpgradeSupported bool
    True if this Database software image is supported for Upgrade.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    LsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    PatchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    SourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    The current state of the database software image.
    TimeCreated string
    The date and time the database software image was created.
    compartmentId String
    (Updatable) The OCID of the compartment the database software image belongs in.
    databaseSoftwareImageIncludedPatches List<String>
    List of one-off patches for Database Homes.
    databaseSoftwareImageOneOffPatches List<String>
    List of one-off patches for Database Homes.
    databaseVersion String
    The database version with which the database software image is to be built.
    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.
    displayName String
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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"}
    imageShapeFamily String
    To what shape the image is meant for.
    imageType String
    The type of software image. Can be grid or database.
    includedPatchesSummary String
    The patches included in the image and the version of the image.
    isUpgradeSupported Boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    lsInventory String
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet String
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId String

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The current state of the database software image.
    timeCreated String
    The date and time the database software image was created.
    compartmentId string
    (Updatable) The OCID of the compartment the database software image belongs in.
    databaseSoftwareImageIncludedPatches string[]
    List of one-off patches for Database Homes.
    databaseSoftwareImageOneOffPatches string[]
    List of one-off patches for Database Homes.
    databaseVersion string
    The database version with which the database software image is to be built.
    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.
    displayName string
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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"}
    imageShapeFamily string
    To what shape the image is meant for.
    imageType string
    The type of software image. Can be grid or database.
    includedPatchesSummary string
    The patches included in the image and the version of the image.
    isUpgradeSupported boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails string
    Detailed message for the lifecycle state.
    lsInventory string
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet string
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId string

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    The current state of the database software image.
    timeCreated string
    The date and time the database software image was created.
    compartment_id str
    (Updatable) The OCID of the compartment the database software image belongs in.
    database_software_image_included_patches Sequence[str]
    List of one-off patches for Database Homes.
    database_software_image_one_off_patches Sequence[str]
    List of one-off patches for Database Homes.
    database_version str
    The database version with which the database software image is to be built.
    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.
    display_name str
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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_shape_family str
    To what shape the image is meant for.
    image_type str
    The type of software image. Can be grid or database.
    included_patches_summary str
    The patches included in the image and the version of the image.
    is_upgrade_supported bool
    True if this Database software image is supported for Upgrade.
    lifecycle_details str
    Detailed message for the lifecycle state.
    ls_inventory str
    The output from the OPatch lsInventory command, which is passed as a string.
    patch_set str
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    source_db_home_id str

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str
    The current state of the database software image.
    time_created str
    The date and time the database software image was created.
    compartmentId String
    (Updatable) The OCID of the compartment the database software image belongs in.
    databaseSoftwareImageIncludedPatches List<String>
    List of one-off patches for Database Homes.
    databaseSoftwareImageOneOffPatches List<String>
    List of one-off patches for Database Homes.
    databaseVersion String
    The database version with which the database software image is to be built.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    (Updatable) The user-friendly name for the database software image. The name does not have to be unique.
    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"}
    imageShapeFamily String
    To what shape the image is meant for.
    imageType String
    The type of software image. Can be grid or database.
    includedPatchesSummary String
    The patches included in the image and the version of the image.
    isUpgradeSupported Boolean
    True if this Database software image is supported for Upgrade.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    lsInventory String
    The output from the OPatch lsInventory command, which is passed as a string.
    patchSet String
    The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
    sourceDbHomeId String

    The OCID of the Database Home.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    The current state of the database software image.
    timeCreated String
    The date and time the database software image was created.

    Import

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

    $ pulumi import oci:Database/databaseSoftwareImage:DatabaseSoftwareImage test_database_software_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