1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDatabaseSoftwareImage
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

oci.Database.getDatabaseSoftwareImage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

    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

    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 = oci_database_database_software_image.Test_database_software_image.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.GetDatabaseSoftwareImage(ctx, &database.GetDatabaseSoftwareImageArgs{
    			DatabaseSoftwareImageId: oci_database_database_software_image.Test_database_software_image.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(oci_database_database_software_image.test_database_software_image().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_software_image = oci.Database.get_database_software_image(database_software_image_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseSoftwareImage = oci.Database.getDatabaseSoftwareImage({
        databaseSoftwareImageId: oci_database_database_software_image.test_database_software_image.id,
    });
    
    variables:
      testDatabaseSoftwareImage:
        fn::invoke:
          Function: oci:Database:getDatabaseSoftwareImage
          Arguments:
            databaseSoftwareImageId: ${oci_database_database_software_image.test_database_software_image.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 GetDatabaseSoftwareImage(ctx *Context, args *GetDatabaseSoftwareImageArgs, opts ...InvokeOption) (*GetDatabaseSoftwareImageResult, error)
    func GetDatabaseSoftwareImageOutput(ctx *Context, args *GetDatabaseSoftwareImageOutputArgs, opts ...InvokeOption) GetDatabaseSoftwareImageResultOutput

    > Note: This function is named GetDatabaseSoftwareImage 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getDatabaseSoftwareImage:getDatabaseSoftwareImage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatabaseSoftwareImageId string

    The DB system OCID.

    DatabaseSoftwareImageId string

    The DB system OCID.

    databaseSoftwareImageId String

    The DB system OCID.

    databaseSoftwareImageId string

    The DB system OCID.

    databaseSoftwareImageId String

    The DB system OCID.

    getDatabaseSoftwareImage Result

    The following output properties are available:

    CompartmentId string

    The OCID of the compartment.

    DatabaseSoftwareImageId string
    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>

    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.

    FreeformTags Dictionary<string, object>

    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.

    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
    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.

    DatabaseSoftwareImageId string
    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{}

    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.

    FreeformTags map[string]interface{}

    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.

    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
    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.

    databaseSoftwareImageId String
    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>

    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.

    freeformTags Map<String,Object>

    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.

    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
    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.

    databaseSoftwareImageId string
    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}

    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.

    freeformTags {[key: string]: any}

    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.

    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
    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_image_id str
    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]

    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.

    freeform_tags Mapping[str, Any]

    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_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
    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.

    databaseSoftwareImageId String
    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>

    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.

    freeformTags Map<Any>

    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.

    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
    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 oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi