Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getAutonomousDbVersions
Explore with Pulumi AI
This data source provides the list of Autonomous Db Versions in Oracle Cloud Infrastructure Database service.
Gets a list of supported Autonomous Database versions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousDbVersions = oci.Database.getAutonomousDbVersions({
    compartmentId: compartmentId,
    dbWorkload: autonomousDbVersionDbWorkload,
});
import pulumi
import pulumi_oci as oci
test_autonomous_db_versions = oci.Database.get_autonomous_db_versions(compartment_id=compartment_id,
    db_workload=autonomous_db_version_db_workload)
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.GetAutonomousDbVersions(ctx, &database.GetAutonomousDbVersionsArgs{
			CompartmentId: compartmentId,
			DbWorkload:    pulumi.StringRef(autonomousDbVersionDbWorkload),
		}, 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 testAutonomousDbVersions = Oci.Database.GetAutonomousDbVersions.Invoke(new()
    {
        CompartmentId = compartmentId,
        DbWorkload = autonomousDbVersionDbWorkload,
    });
});
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.GetAutonomousDbVersionsArgs;
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 testAutonomousDbVersions = DatabaseFunctions.getAutonomousDbVersions(GetAutonomousDbVersionsArgs.builder()
            .compartmentId(compartmentId)
            .dbWorkload(autonomousDbVersionDbWorkload)
            .build());
    }
}
variables:
  testAutonomousDbVersions:
    fn::invoke:
      function: oci:Database:getAutonomousDbVersions
      arguments:
        compartmentId: ${compartmentId}
        dbWorkload: ${autonomousDbVersionDbWorkload}
Using getAutonomousDbVersions
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 getAutonomousDbVersions(args: GetAutonomousDbVersionsArgs, opts?: InvokeOptions): Promise<GetAutonomousDbVersionsResult>
function getAutonomousDbVersionsOutput(args: GetAutonomousDbVersionsOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDbVersionsResult>def get_autonomous_db_versions(compartment_id: Optional[str] = None,
                               db_workload: Optional[str] = None,
                               filters: Optional[Sequence[GetAutonomousDbVersionsFilter]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetAutonomousDbVersionsResult
def get_autonomous_db_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                               db_workload: Optional[pulumi.Input[str]] = None,
                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAutonomousDbVersionsFilterArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDbVersionsResult]func GetAutonomousDbVersions(ctx *Context, args *GetAutonomousDbVersionsArgs, opts ...InvokeOption) (*GetAutonomousDbVersionsResult, error)
func GetAutonomousDbVersionsOutput(ctx *Context, args *GetAutonomousDbVersionsOutputArgs, opts ...InvokeOption) GetAutonomousDbVersionsResultOutput> Note: This function is named GetAutonomousDbVersions in the Go SDK.
public static class GetAutonomousDbVersions 
{
    public static Task<GetAutonomousDbVersionsResult> InvokeAsync(GetAutonomousDbVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousDbVersionsResult> Invoke(GetAutonomousDbVersionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousDbVersionsResult> getAutonomousDbVersions(GetAutonomousDbVersionsArgs args, InvokeOptions options)
public static Output<GetAutonomousDbVersionsResult> getAutonomousDbVersions(GetAutonomousDbVersionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousDbVersions:getAutonomousDbVersions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- DbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- Filters
List<GetAutonomous Db Versions Filter> 
- CompartmentId string
- The compartment OCID.
- DbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- Filters
[]GetAutonomous Db Versions Filter 
- compartmentId String
- The compartment OCID.
- dbWorkload String
- A filter to return only autonomous database resources that match the specified workload type.
- filters
List<GetAutonomous Db Versions Filter> 
- compartmentId string
- The compartment OCID.
- dbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- filters
GetAutonomous Db Versions Filter[] 
- compartment_id str
- The compartment OCID.
- db_workload str
- A filter to return only autonomous database resources that match the specified workload type.
- filters
Sequence[GetAutonomous Db Versions Filter] 
- compartmentId String
- The compartment OCID.
- dbWorkload String
- A filter to return only autonomous database resources that match the specified workload type.
- filters List<Property Map>
getAutonomousDbVersions Result
The following output properties are available:
- AutonomousDb List<GetVersions Autonomous Db Versions Autonomous Db Version> 
- The list of autonomous_db_versions.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- DbWorkload string
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- Filters
List<GetAutonomous Db Versions Filter> 
- AutonomousDb []GetVersions Autonomous Db Versions Autonomous Db Version 
- The list of autonomous_db_versions.
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- DbWorkload string
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- Filters
[]GetAutonomous Db Versions Filter 
- autonomousDb List<GetVersions Autonomous Db Versions Autonomous Db Version> 
- The list of autonomous_db_versions.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- dbWorkload String
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- filters
List<GetAutonomous Db Versions Filter> 
- autonomousDb GetVersions Autonomous Db Versions Autonomous Db Version[] 
- The list of autonomous_db_versions.
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- dbWorkload string
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- filters
GetAutonomous Db Versions Filter[] 
- autonomous_db_ Sequence[Getversions Autonomous Db Versions Autonomous Db Version] 
- The list of autonomous_db_versions.
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- db_workload str
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- filters
Sequence[GetAutonomous Db Versions Filter] 
- autonomousDb List<Property Map>Versions 
- The list of autonomous_db_versions.
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- dbWorkload String
- The Autonomous Database workload type. The following values are valid:- OLTP - indicates an Autonomous Transaction Processing database
- DW - indicates an Autonomous Data Warehouse database
- AJD - indicates an Autonomous JSON Database
- APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.
 
- filters List<Property Map>
Supporting Types
GetAutonomousDbVersionsAutonomousDbVersion      
- DbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- Details string
- A URL that points to a detailed description of the Autonomous Database version.
- IsDedicated bool
- True if the database uses dedicated Exadata infrastructure.
- IsDefault boolFor Free 
- True if this version of the Oracle Database software's default is free.
- IsDefault boolFor Paid 
- True if this version of the Oracle Database software's default is paid.
- IsFree boolTier Enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- IsPaid boolEnabled 
- True if this version of the Oracle Database software has payments enabled.
- Version string
- A valid Oracle Database version for Autonomous Database.
- DbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- Details string
- A URL that points to a detailed description of the Autonomous Database version.
- IsDedicated bool
- True if the database uses dedicated Exadata infrastructure.
- IsDefault boolFor Free 
- True if this version of the Oracle Database software's default is free.
- IsDefault boolFor Paid 
- True if this version of the Oracle Database software's default is paid.
- IsFree boolTier Enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- IsPaid boolEnabled 
- True if this version of the Oracle Database software has payments enabled.
- Version string
- A valid Oracle Database version for Autonomous Database.
- dbWorkload String
- A filter to return only autonomous database resources that match the specified workload type.
- details String
- A URL that points to a detailed description of the Autonomous Database version.
- isDedicated Boolean
- True if the database uses dedicated Exadata infrastructure.
- isDefault BooleanFor Free 
- True if this version of the Oracle Database software's default is free.
- isDefault BooleanFor Paid 
- True if this version of the Oracle Database software's default is paid.
- isFree BooleanTier Enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- isPaid BooleanEnabled 
- True if this version of the Oracle Database software has payments enabled.
- version String
- A valid Oracle Database version for Autonomous Database.
- dbWorkload string
- A filter to return only autonomous database resources that match the specified workload type.
- details string
- A URL that points to a detailed description of the Autonomous Database version.
- isDedicated boolean
- True if the database uses dedicated Exadata infrastructure.
- isDefault booleanFor Free 
- True if this version of the Oracle Database software's default is free.
- isDefault booleanFor Paid 
- True if this version of the Oracle Database software's default is paid.
- isFree booleanTier Enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- isPaid booleanEnabled 
- True if this version of the Oracle Database software has payments enabled.
- version string
- A valid Oracle Database version for Autonomous Database.
- db_workload str
- A filter to return only autonomous database resources that match the specified workload type.
- details str
- A URL that points to a detailed description of the Autonomous Database version.
- is_dedicated bool
- True if the database uses dedicated Exadata infrastructure.
- is_default_ boolfor_ free 
- True if this version of the Oracle Database software's default is free.
- is_default_ boolfor_ paid 
- True if this version of the Oracle Database software's default is paid.
- is_free_ booltier_ enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- is_paid_ boolenabled 
- True if this version of the Oracle Database software has payments enabled.
- version str
- A valid Oracle Database version for Autonomous Database.
- dbWorkload String
- A filter to return only autonomous database resources that match the specified workload type.
- details String
- A URL that points to a detailed description of the Autonomous Database version.
- isDedicated Boolean
- True if the database uses dedicated Exadata infrastructure.
- isDefault BooleanFor Free 
- True if this version of the Oracle Database software's default is free.
- isDefault BooleanFor Paid 
- True if this version of the Oracle Database software's default is paid.
- isFree BooleanTier Enabled 
- True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- isPaid BooleanEnabled 
- True if this version of the Oracle Database software has payments enabled.
- version String
- A valid Oracle Database version for Autonomous Database.
GetAutonomousDbVersionsFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.