Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDatabaseSoftwareImage
Explore with Pulumi AI
This data source provides details about a specific Database Software Image resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified database software image.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseSoftwareImage = oci.Database.getDatabaseSoftwareImage({
    databaseSoftwareImageId: testDatabaseSoftwareImageOciDatabaseDatabaseSoftwareImage.id,
});
import pulumi
import pulumi_oci as oci
test_database_software_image = oci.Database.get_database_software_image(database_software_image_id=test_database_software_image_oci_database_database_software_image["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetDatabaseSoftwareImage(ctx, &database.GetDatabaseSoftwareImageArgs{
			DatabaseSoftwareImageId: testDatabaseSoftwareImageOciDatabaseDatabaseSoftwareImage.Id,
		}, nil)
		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 = Oci.Database.GetDatabaseSoftwareImage.Invoke(new()
    {
        DatabaseSoftwareImageId = testDatabaseSoftwareImageOciDatabaseDatabaseSoftwareImage.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetDatabaseSoftwareImageArgs;
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) {
        final var testDatabaseSoftwareImage = DatabaseFunctions.getDatabaseSoftwareImage(GetDatabaseSoftwareImageArgs.builder()
            .databaseSoftwareImageId(testDatabaseSoftwareImageOciDatabaseDatabaseSoftwareImage.id())
            .build());
    }
}
variables:
  testDatabaseSoftwareImage:
    fn::invoke:
      function: oci:Database:getDatabaseSoftwareImage
      arguments:
        databaseSoftwareImageId: ${testDatabaseSoftwareImageOciDatabaseDatabaseSoftwareImage.id}
Using getDatabaseSoftwareImage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabaseSoftwareImage(args: GetDatabaseSoftwareImageArgs, opts?: InvokeOptions): Promise<GetDatabaseSoftwareImageResult>
function getDatabaseSoftwareImageOutput(args: GetDatabaseSoftwareImageOutputArgs, opts?: InvokeOptions): Output<GetDatabaseSoftwareImageResult>def get_database_software_image(database_software_image_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetDatabaseSoftwareImageResult
def get_database_software_image_output(database_software_image_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseSoftwareImageResult]func LookupDatabaseSoftwareImage(ctx *Context, args *LookupDatabaseSoftwareImageArgs, opts ...InvokeOption) (*LookupDatabaseSoftwareImageResult, error)
func LookupDatabaseSoftwareImageOutput(ctx *Context, args *LookupDatabaseSoftwareImageOutputArgs, opts ...InvokeOption) LookupDatabaseSoftwareImageResultOutput> Note: This function is named LookupDatabaseSoftwareImage in the Go SDK.
public static class GetDatabaseSoftwareImage 
{
    public static Task<GetDatabaseSoftwareImageResult> InvokeAsync(GetDatabaseSoftwareImageArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseSoftwareImageResult> Invoke(GetDatabaseSoftwareImageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseSoftwareImageResult> getDatabaseSoftwareImage(GetDatabaseSoftwareImageArgs args, InvokeOptions options)
public static Output<GetDatabaseSoftwareImageResult> getDatabaseSoftwareImage(GetDatabaseSoftwareImageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDatabaseSoftwareImage:getDatabaseSoftwareImage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseSoftware stringImage Id 
- The DB system OCID.
- DatabaseSoftware stringImage Id 
- The DB system OCID.
- databaseSoftware StringImage Id 
- The DB system OCID.
- databaseSoftware stringImage Id 
- The DB system OCID.
- database_software_ strimage_ id 
- The DB system OCID.
- databaseSoftware StringImage Id 
- The DB system OCID.
getDatabaseSoftwareImage Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- DatabaseSoftware stringImage Id 
- DatabaseSoftware List<string>Image Included Patches 
- List of one-off patches for Database Homes.
- DatabaseSoftware List<string>Image One Off Patches 
- List of one-off patches for Database Homes.
- DatabaseVersion string
- The database version with which the database software image is to be built.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-friendly name for the database software image. The name does not have to be unique.
- Dictionary<string, string>
- 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"}
- Id string
- The OCID of the database software image.
- ImageShape stringFamily 
- To what shape the image is meant for.
- ImageType string
- The type of software image. Can be grid or database.
- IncludedPatches stringSummary 
- The patches included in the image and the version of the image.
- IsUpgrade boolSupported 
- 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.
- SourceDb stringHome Id 
- State string
- The current state of the database software image.
- TimeCreated string
- The date and time the database software image was created.
- CompartmentId string
- The OCID of the compartment.
- DatabaseSoftware stringImage Id 
- DatabaseSoftware []stringImage Included Patches 
- List of one-off patches for Database Homes.
- DatabaseSoftware []stringImage One Off Patches 
- List of one-off patches for Database Homes.
- DatabaseVersion string
- The database version with which the database software image is to be built.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-friendly name for the database software image. The name does not have to be unique.
- map[string]string
- 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"}
- Id string
- The OCID of the database software image.
- ImageShape stringFamily 
- To what shape the image is meant for.
- ImageType string
- The type of software image. Can be grid or database.
- IncludedPatches stringSummary 
- The patches included in the image and the version of the image.
- IsUpgrade boolSupported 
- 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.
- SourceDb stringHome Id 
- State string
- The current state of the database software image.
- TimeCreated string
- The date and time the database software image was created.
- compartmentId String
- The OCID of the compartment.
- databaseSoftware StringImage Id 
- databaseSoftware List<String>Image Included Patches 
- List of one-off patches for Database Homes.
- databaseSoftware List<String>Image One Off Patches 
- List of one-off patches for Database Homes.
- databaseVersion String
- The database version with which the database software image is to be built.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-friendly name for the database software image. The name does not have to be unique.
- Map<String,String>
- 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"}
- id String
- The OCID of the database software image.
- imageShape StringFamily 
- To what shape the image is meant for.
- imageType String
- The type of software image. Can be grid or database.
- includedPatches StringSummary 
- The patches included in the image and the version of the image.
- isUpgrade BooleanSupported 
- 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.
- sourceDb StringHome Id 
- state String
- The current state of the database software image.
- timeCreated String
- The date and time the database software image was created.
- compartmentId string
- The OCID of the compartment.
- databaseSoftware stringImage Id 
- databaseSoftware string[]Image Included Patches 
- List of one-off patches for Database Homes.
- databaseSoftware string[]Image One Off Patches 
- List of one-off patches for Database Homes.
- databaseVersion string
- The database version with which the database software image is to be built.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName string
- The user-friendly name for the database software image. The name does not have to be unique.
- {[key: string]: string}
- 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"}
- id string
- The OCID of the database software image.
- imageShape stringFamily 
- To what shape the image is meant for.
- imageType string
- The type of software image. Can be grid or database.
- includedPatches stringSummary 
- The patches included in the image and the version of the image.
- isUpgrade booleanSupported 
- 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.
- sourceDb stringHome Id 
- 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
- The OCID of the compartment.
- database_software_ strimage_ id 
- database_software_ Sequence[str]image_ included_ patches 
- List of one-off patches for Database Homes.
- database_software_ Sequence[str]image_ one_ off_ patches 
- List of one-off patches for Database Homes.
- database_version str
- The database version with which the database software image is to be built.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name str
- The user-friendly name for the database software image. The name does not have to be unique.
- Mapping[str, str]
- 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"}
- id str
- The OCID of the database software image.
- image_shape_ strfamily 
- To what shape the image is meant for.
- image_type str
- The type of software image. Can be grid or database.
- included_patches_ strsummary 
- The patches included in the image and the version of the image.
- is_upgrade_ boolsupported 
- 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_ strhome_ id 
- 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
- The OCID of the compartment.
- databaseSoftware StringImage Id 
- databaseSoftware List<String>Image Included Patches 
- List of one-off patches for Database Homes.
- databaseSoftware List<String>Image One Off Patches 
- List of one-off patches for Database Homes.
- databaseVersion String
- The database version with which the database software image is to be built.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-friendly name for the database software image. The name does not have to be unique.
- Map<String>
- 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"}
- id String
- The OCID of the database software image.
- imageShape StringFamily 
- To what shape the image is meant for.
- imageType String
- The type of software image. Can be grid or database.
- includedPatches StringSummary 
- The patches included in the image and the version of the image.
- isUpgrade BooleanSupported 
- 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.
- sourceDb StringHome Id 
- state String
- The current state of the database software image.
- timeCreated String
- The date and time the database software image was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.