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
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 = @var.Compartment_id,
DbSystemId = oci_database_db_system.Test_db_system.Id,
DbSystemShape = @var.Db_version_db_system_shape,
IsDatabaseSoftwareImageSupported = @var.Db_version_is_database_software_image_supported,
IsUpgradeSupported = @var.Db_version_is_upgrade_supported,
StorageManagement = @var.Db_version_storage_management,
});
});
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.GetDbVersions(ctx, &database.GetDbVersionsArgs{
CompartmentId: _var.Compartment_id,
DbSystemId: pulumi.StringRef(oci_database_db_system.Test_db_system.Id),
DbSystemShape: pulumi.StringRef(_var.Db_version_db_system_shape),
IsDatabaseSoftwareImageSupported: pulumi.BoolRef(_var.Db_version_is_database_software_image_supported),
IsUpgradeSupported: pulumi.BoolRef(_var.Db_version_is_upgrade_supported),
StorageManagement: pulumi.StringRef(_var.Db_version_storage_management),
}, 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.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(var_.compartment_id())
.dbSystemId(oci_database_db_system.test_db_system().id())
.dbSystemShape(var_.db_version_db_system_shape())
.isDatabaseSoftwareImageSupported(var_.db_version_is_database_software_image_supported())
.isUpgradeSupported(var_.db_version_is_upgrade_supported())
.storageManagement(var_.db_version_storage_management())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_db_versions = oci.Database.get_db_versions(compartment_id=var["compartment_id"],
db_system_id=oci_database_db_system["test_db_system"]["id"],
db_system_shape=var["db_version_db_system_shape"],
is_database_software_image_supported=var["db_version_is_database_software_image_supported"],
is_upgrade_supported=var["db_version_is_upgrade_supported"],
storage_management=var["db_version_storage_management"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbVersions = oci.Database.getDbVersions({
compartmentId: _var.compartment_id,
dbSystemId: oci_database_db_system.test_db_system.id,
dbSystemShape: _var.db_version_db_system_shape,
isDatabaseSoftwareImageSupported: _var.db_version_is_database_software_image_supported,
isUpgradeSupported: _var.db_version_is_upgrade_supported,
storageManagement: _var.db_version_storage_management,
});
variables:
testDbVersions:
fn::invoke:
Function: oci:Database:getDbVersions
Arguments:
compartmentId: ${var.compartment_id}
dbSystemId: ${oci_database_db_system.test_db_system.id}
dbSystemShape: ${var.db_version_db_system_shape}
isDatabaseSoftwareImageSupported: ${var.db_version_is_database_software_image_supported}
isUpgradeSupported: ${var.db_version_is_upgrade_supported}
storageManagement: ${var.db_version_storage_management}
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[_database.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[_database.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbVersions:getDbVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The compartment OCID.
- Db
System stringId The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- Db
System stringShape If provided, filters the results to the set of database versions which are supported for the given shape.
- Filters
List<Get
Db 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 string The DB system storage management option. Used to list database versions available for that storage manager. Valid values are
ASM
andLVM
.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
- Compartment
Id string The compartment OCID.
- Db
System stringId The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- Db
System stringShape If provided, filters the results to the set of database versions which are supported for the given shape.
- Filters
[]Get
Db 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 string The DB system storage management option. Used to list database versions available for that storage manager. Valid values are
ASM
andLVM
.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
- compartment
Id String The compartment OCID.
- db
System StringId The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- db
System StringShape If provided, filters the results to the set of database versions which are supported for the given shape.
- filters
List<Get
Db Versions Filter> - is
Database 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.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- storage
Management String The DB system storage management option. Used to list database versions available for that storage manager. Valid values are
ASM
andLVM
.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
- compartment
Id string The compartment OCID.
- db
System stringId The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- db
System stringShape If provided, filters the results to the set of database versions which are supported for the given shape.
- filters
Get
Db Versions Filter[] - is
Database 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.
- is
Upgrade booleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- storage
Management string The DB system storage management option. Used to list database versions available for that storage manager. Valid values are
ASM
andLVM
.- 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
Get
Db 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
ASM
andLVM
.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
- compartment
Id String The compartment OCID.
- db
System StringId The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system.
- db
System StringShape If provided, filters the results to the set of database versions which are supported for the given shape.
- filters List<Property Map>
- is
Database 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.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- storage
Management String The DB system storage management option. Used to list database versions available for that storage manager. Valid values are
ASM
andLVM
.- ASM specifies Oracle Automatic Storage Management
- LVM specifies logical volume manager, sometimes called logical disk manager.
getDbVersions Result
The following output properties are available:
- Compartment
Id string - Db
Versions List<GetDb Versions Db Version> The list of db_versions.
- Id string
The provider-assigned unique ID for this managed resource.
- Db
System stringId - Db
System stringShape - Filters
List<Get
Db 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 string
- Compartment
Id string - Db
Versions []GetDb Versions Db Version The list of db_versions.
- Id string
The provider-assigned unique ID for this managed resource.
- Db
System stringId - Db
System stringShape - Filters
[]Get
Db 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 string
- compartment
Id String - db
Versions List<GetDb Versions Db Version> The list of db_versions.
- id String
The provider-assigned unique ID for this managed resource.
- db
System StringId - db
System StringShape - filters
List<Get
Db Versions Filter> - is
Database BooleanSoftware Image Supported - is
Upgrade BooleanSupported True if this version of the Oracle Database software is supported for Upgrade.
- storage
Management String
- compartment
Id string - db
Versions GetDb Versions Db Version[] The list of db_versions.
- id string
The provider-assigned unique ID for this managed resource.
- db
System stringId - db
System stringShape - filters
Get
Db Versions Filter[] - is
Database booleanSoftware Image Supported - is
Upgrade booleanSupported True if this version of the Oracle Database software is supported for Upgrade.
- storage
Management string
- compartment_
id str - db_
versions 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
Get
Db 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
- compartment
Id String - db
Versions List<Property Map> The list of db_versions.
- id String
The provider-assigned unique ID for this managed resource.
- db
System StringId - db
System StringShape - filters List<Property Map>
- is
Database BooleanSoftware Image Supported - is
Upgrade BooleanSupported True if this version of the Oracle Database software is supported for Upgrade.
- storage
Management String
Supporting Types
GetDbVersionsDbVersion
- 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 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 string
A valid Oracle Database version.
- is
Latest BooleanFor Major Version True if this version of the Oracle Database software is the latest version for a release.
- is
Preview BooleanDb Version True if this version of the Oracle Database software is the preview version.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- supports
Pdb Boolean True if this version of the Oracle Database software supports pluggable databases.
- version String
A valid Oracle Database version.
- is
Latest booleanFor Major Version True if this version of the Oracle Database software is the latest version for a release.
- is
Preview booleanDb Version True if this version of the Oracle Database software is the preview version.
- is
Upgrade booleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- supports
Pdb 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.
- is
Latest BooleanFor Major Version True if this version of the Oracle Database software is the latest version for a release.
- is
Preview BooleanDb Version True if this version of the Oracle Database software is the preview version.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- supports
Pdb 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
oci
Terraform Provider.