oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

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

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 = @var.Compartment_id,
        DbWorkload = @var.Autonomous_db_version_db_workload,
    });

});
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.GetAutonomousDbVersions(ctx, &database.GetAutonomousDbVersionsArgs{
			CompartmentId: _var.Compartment_id,
			DbWorkload:    pulumi.StringRef(_var.Autonomous_db_version_db_workload),
		}, 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.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(var_.compartment_id())
            .dbWorkload(var_.autonomous_db_version_db_workload())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_autonomous_db_versions = oci.Database.get_autonomous_db_versions(compartment_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    db_workload=%!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 testAutonomousDbVersions = oci.Database.getAutonomousDbVersions({
    compartmentId: _var.compartment_id,
    dbWorkload: _var.autonomous_db_version_db_workload,
});
variables:
  testAutonomousDbVersions:
    fn::invoke:
      Function: oci:Database:getAutonomousDbVersions
      Arguments:
        compartmentId: ${var.compartment_id}
        dbWorkload: ${var.autonomous_db_version_db_workload}

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[_database.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[_database.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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getAutonomousDbVersions:getAutonomousDbVersions
  arguments:
    # arguments dictionary

The 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<GetAutonomousDbVersionsFilter>
CompartmentId string

The compartment OCID.

DbWorkload string

A filter to return only autonomous database resources that match the specified workload type.

Filters []GetAutonomousDbVersionsFilter
compartmentId String

The compartment OCID.

dbWorkload String

A filter to return only autonomous database resources that match the specified workload type.

filters List<GetAutonomousDbVersionsFilter>
compartmentId string

The compartment OCID.

dbWorkload string

A filter to return only autonomous database resources that match the specified workload type.

filters GetAutonomousDbVersionsFilter[]
compartment_id str

The compartment OCID.

db_workload str

A filter to return only autonomous database resources that match the specified workload type.

filters GetAutonomousDbVersionsFilter]
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:

AutonomousDbVersions List<GetAutonomousDbVersionsAutonomousDbVersion>

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<GetAutonomousDbVersionsFilter>
AutonomousDbVersions []GetAutonomousDbVersionsAutonomousDbVersion

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 []GetAutonomousDbVersionsFilter
autonomousDbVersions List<GetAutonomousDbVersionsAutonomousDbVersion>

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<GetAutonomousDbVersionsFilter>
autonomousDbVersions GetAutonomousDbVersionsAutonomousDbVersion[]

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 GetAutonomousDbVersionsFilter[]
autonomous_db_versions GetAutonomousDbVersionsAutonomousDbVersion]

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 GetAutonomousDbVersionsFilter]
autonomousDbVersions List<Property Map>

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.

IsDefaultForFree bool

True if this version of the Oracle Database software's default is free.

IsDefaultForPaid bool

True if this version of the Oracle Database software's default is paid.

IsFreeTierEnabled bool

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

IsPaidEnabled bool

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.

IsDefaultForFree bool

True if this version of the Oracle Database software's default is free.

IsDefaultForPaid bool

True if this version of the Oracle Database software's default is paid.

IsFreeTierEnabled bool

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

IsPaidEnabled bool

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.

isDefaultForFree Boolean

True if this version of the Oracle Database software's default is free.

isDefaultForPaid Boolean

True if this version of the Oracle Database software's default is paid.

isFreeTierEnabled Boolean

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

isPaidEnabled Boolean

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.

isDefaultForFree boolean

True if this version of the Oracle Database software's default is free.

isDefaultForPaid boolean

True if this version of the Oracle Database software's default is paid.

isFreeTierEnabled boolean

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

isPaidEnabled boolean

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_for_free bool

True if this version of the Oracle Database software's default is free.

is_default_for_paid bool

True if this version of the Oracle Database software's default is paid.

is_free_tier_enabled bool

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

is_paid_enabled bool

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.

isDefaultForFree Boolean

True if this version of the Oracle Database software's default is free.

isDefaultForPaid Boolean

True if this version of the Oracle Database software's default is paid.

isFreeTierEnabled Boolean

True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.

isPaidEnabled Boolean

True if this version of the Oracle Database software has payments enabled.

version String

A valid Oracle Database version for Autonomous Database.

GetAutonomousDbVersionsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.