Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDbVersions
Explore with Pulumi AI
This data source provides the list of Db Versions in Oracle Cloud Infrastructure Database service.
Gets a list of supported Oracle Database versions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbVersions = oci.Database.getDbVersions({
    compartmentId: compartmentId,
    dbSystemId: testDbSystem.id,
    dbSystemShape: dbVersionDbSystemShape,
    isDatabaseSoftwareImageSupported: dbVersionIsDatabaseSoftwareImageSupported,
    isUpgradeSupported: dbVersionIsUpgradeSupported,
    storageManagement: dbVersionStorageManagement,
});
import pulumi
import pulumi_oci as oci
test_db_versions = oci.Database.get_db_versions(compartment_id=compartment_id,
    db_system_id=test_db_system["id"],
    db_system_shape=db_version_db_system_shape,
    is_database_software_image_supported=db_version_is_database_software_image_supported,
    is_upgrade_supported=db_version_is_upgrade_supported,
    storage_management=db_version_storage_management)
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.GetDbVersions(ctx, &database.GetDbVersionsArgs{
			CompartmentId:                    compartmentId,
			DbSystemId:                       pulumi.StringRef(testDbSystem.Id),
			DbSystemShape:                    pulumi.StringRef(dbVersionDbSystemShape),
			IsDatabaseSoftwareImageSupported: pulumi.BoolRef(dbVersionIsDatabaseSoftwareImageSupported),
			IsUpgradeSupported:               pulumi.BoolRef(dbVersionIsUpgradeSupported),
			StorageManagement:                pulumi.StringRef(dbVersionStorageManagement),
		}, 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 testDbVersions = Oci.Database.GetDbVersions.Invoke(new()
    {
        CompartmentId = compartmentId,
        DbSystemId = testDbSystem.Id,
        DbSystemShape = dbVersionDbSystemShape,
        IsDatabaseSoftwareImageSupported = dbVersionIsDatabaseSoftwareImageSupported,
        IsUpgradeSupported = dbVersionIsUpgradeSupported,
        StorageManagement = dbVersionStorageManagement,
    });
});
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.GetDbVersionsArgs;
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 testDbVersions = DatabaseFunctions.getDbVersions(GetDbVersionsArgs.builder()
            .compartmentId(compartmentId)
            .dbSystemId(testDbSystem.id())
            .dbSystemShape(dbVersionDbSystemShape)
            .isDatabaseSoftwareImageSupported(dbVersionIsDatabaseSoftwareImageSupported)
            .isUpgradeSupported(dbVersionIsUpgradeSupported)
            .storageManagement(dbVersionStorageManagement)
            .build());
    }
}
variables:
  testDbVersions:
    fn::invoke:
      function: oci:Database:getDbVersions
      arguments:
        compartmentId: ${compartmentId}
        dbSystemId: ${testDbSystem.id}
        dbSystemShape: ${dbVersionDbSystemShape}
        isDatabaseSoftwareImageSupported: ${dbVersionIsDatabaseSoftwareImageSupported}
        isUpgradeSupported: ${dbVersionIsUpgradeSupported}
        storageManagement: ${dbVersionStorageManagement}
Using getDbVersions
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 getDbVersions(args: GetDbVersionsArgs, opts?: InvokeOptions): Promise<GetDbVersionsResult>
function getDbVersionsOutput(args: GetDbVersionsOutputArgs, opts?: InvokeOptions): Output<GetDbVersionsResult>def get_db_versions(compartment_id: Optional[str] = None,
                    db_system_id: Optional[str] = None,
                    db_system_shape: Optional[str] = None,
                    filters: Optional[Sequence[GetDbVersionsFilter]] = None,
                    is_database_software_image_supported: Optional[bool] = None,
                    is_upgrade_supported: Optional[bool] = None,
                    storage_management: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDbVersionsResult
def get_db_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                    db_system_id: Optional[pulumi.Input[str]] = None,
                    db_system_shape: Optional[pulumi.Input[str]] = None,
                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbVersionsFilterArgs]]]] = None,
                    is_database_software_image_supported: Optional[pulumi.Input[bool]] = None,
                    is_upgrade_supported: Optional[pulumi.Input[bool]] = None,
                    storage_management: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDbVersionsResult]func GetDbVersions(ctx *Context, args *GetDbVersionsArgs, opts ...InvokeOption) (*GetDbVersionsResult, error)
func GetDbVersionsOutput(ctx *Context, args *GetDbVersionsOutputArgs, opts ...InvokeOption) GetDbVersionsResultOutput> Note: This function is named GetDbVersions in the Go SDK.
public static class GetDbVersions 
{
    public static Task<GetDbVersionsResult> InvokeAsync(GetDbVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDbVersionsResult> Invoke(GetDbVersionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbVersionsResult> getDbVersions(GetDbVersionsArgs args, InvokeOptions options)
public static Output<GetDbVersionsResult> getDbVersions(GetDbVersionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbVersions:getDbVersions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- DbSystem stringId 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- DbSystem stringShape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- Filters
List<GetDb Versions Filter> 
- IsDatabase boolSoftware Image Supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- IsUpgrade boolSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- StorageManagement string
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
- CompartmentId string
- The compartment OCID.
- DbSystem stringId 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- DbSystem stringShape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- Filters
[]GetDb Versions Filter 
- IsDatabase boolSoftware Image Supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- IsUpgrade boolSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- StorageManagement string
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
- compartmentId String
- The compartment OCID.
- dbSystem StringId 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- dbSystem StringShape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- filters
List<GetDb Versions Filter> 
- isDatabase BooleanSoftware Image Supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- isUpgrade BooleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- storageManagement String
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
- compartmentId string
- The compartment OCID.
- dbSystem stringId 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- dbSystem stringShape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- filters
GetDb Versions Filter[] 
- isDatabase booleanSoftware Image Supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- isUpgrade booleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- storageManagement string
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
- compartment_id str
- The compartment OCID.
- db_system_ strid 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- db_system_ strshape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- filters
Sequence[GetDb Versions Filter] 
- is_database_ boolsoftware_ image_ supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- is_upgrade_ boolsupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- storage_management str
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
- compartmentId String
- The compartment OCID.
- dbSystem StringId 
- The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- dbSystem StringShape 
- If provided, filters the results to the set of database versions which are supported for the given shape.
- filters List<Property Map>
- isDatabase BooleanSoftware Image Supported 
- If true, filters the results to the set of Oracle Database versions that are supported for Oracle Cloud Infrastructure database software images.
- isUpgrade BooleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- storageManagement String
- The DB system storage management option. Used to list database versions available for that storage manager. Valid values are ASMandLVM.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
 
getDbVersions Result
The following output properties are available:
- CompartmentId string
- DbVersions List<GetDb Versions Db Version> 
- The list of db_versions.
- Id string
- The provider-assigned unique ID for this managed resource.
- DbSystem stringId 
- DbSystem stringShape 
- Filters
List<GetDb Versions Filter> 
- IsDatabase boolSoftware Image Supported 
- IsUpgrade boolSupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- StorageManagement string
- CompartmentId string
- DbVersions []GetDb Versions Db Version 
- The list of db_versions.
- Id string
- The provider-assigned unique ID for this managed resource.
- DbSystem stringId 
- DbSystem stringShape 
- Filters
[]GetDb Versions Filter 
- IsDatabase boolSoftware Image Supported 
- IsUpgrade boolSupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- StorageManagement string
- compartmentId String
- dbVersions List<GetDb Versions Db Version> 
- The list of db_versions.
- id String
- The provider-assigned unique ID for this managed resource.
- dbSystem StringId 
- dbSystem StringShape 
- filters
List<GetDb Versions Filter> 
- isDatabase BooleanSoftware Image Supported 
- isUpgrade BooleanSupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- storageManagement String
- compartmentId string
- dbVersions GetDb Versions Db Version[] 
- The list of db_versions.
- id string
- The provider-assigned unique ID for this managed resource.
- dbSystem stringId 
- dbSystem stringShape 
- filters
GetDb Versions Filter[] 
- isDatabase booleanSoftware Image Supported 
- isUpgrade booleanSupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- storageManagement string
- compartment_id str
- db_versions Sequence[GetDb Versions Db Version] 
- The list of db_versions.
- id str
- The provider-assigned unique ID for this managed resource.
- db_system_ strid 
- db_system_ strshape 
- filters
Sequence[GetDb Versions Filter] 
- is_database_ boolsoftware_ image_ supported 
- is_upgrade_ boolsupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- storage_management str
- compartmentId String
- dbVersions List<Property Map>
- The list of db_versions.
- id String
- The provider-assigned unique ID for this managed resource.
- dbSystem StringId 
- dbSystem StringShape 
- filters List<Property Map>
- isDatabase BooleanSoftware Image Supported 
- isUpgrade BooleanSupported 
- True if this version of the Oracle Database software is supported for Upgrade.
- storageManagement String
Supporting Types
GetDbVersionsDbVersion    
- IsLatest boolFor Major Version 
- True if this version of the Oracle Database software is the latest version for a release.
- IsPreview boolDb Version 
- True if this version of the Oracle Database software is the preview version.
- IsUpgrade boolSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- SupportsPdb bool
- True if this version of the Oracle Database software supports pluggable databases.
- Version string
- A valid Oracle Database version.
- IsLatest boolFor Major Version 
- True if this version of the Oracle Database software is the latest version for a release.
- IsPreview boolDb Version 
- True if this version of the Oracle Database software is the preview version.
- IsUpgrade boolSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- SupportsPdb bool
- True if this version of the Oracle Database software supports pluggable databases.
- Version string
- A valid Oracle Database version.
- isLatest BooleanFor Major Version 
- True if this version of the Oracle Database software is the latest version for a release.
- isPreview BooleanDb Version 
- True if this version of the Oracle Database software is the preview version.
- isUpgrade BooleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- supportsPdb Boolean
- True if this version of the Oracle Database software supports pluggable databases.
- version String
- A valid Oracle Database version.
- isLatest booleanFor Major Version 
- True if this version of the Oracle Database software is the latest version for a release.
- isPreview booleanDb Version 
- True if this version of the Oracle Database software is the preview version.
- isUpgrade booleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- supportsPdb boolean
- True if this version of the Oracle Database software supports pluggable databases.
- version string
- A valid Oracle Database version.
- is_latest_ boolfor_ major_ version 
- True if this version of the Oracle Database software is the latest version for a release.
- is_preview_ booldb_ version 
- True if this version of the Oracle Database software is the preview version.
- is_upgrade_ boolsupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- supports_pdb bool
- True if this version of the Oracle Database software supports pluggable databases.
- version str
- A valid Oracle Database version.
- isLatest BooleanFor Major Version 
- True if this version of the Oracle Database software is the latest version for a release.
- isPreview BooleanDb Version 
- True if this version of the Oracle Database software is the preview version.
- isUpgrade BooleanSupported 
- If provided, filters the results to the set of database versions which are supported for Upgrade.
- supportsPdb Boolean
- True if this version of the Oracle Database software supports pluggable databases.
- version String
- A valid Oracle Database version.
GetDbVersionsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.