Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 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[_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:
- Compartment
Id string - The compartment OCID.
- Db
Workload string - A filter to return only autonomous database resources that match the specified workload type.
- Filters
List<Get
Autonomous Db Versions Filter>
- Compartment
Id string - The compartment OCID.
- Db
Workload string - A filter to return only autonomous database resources that match the specified workload type.
- Filters
[]Get
Autonomous Db Versions Filter
- compartment
Id String - The compartment OCID.
- db
Workload String - A filter to return only autonomous database resources that match the specified workload type.
- filters
List<Get
Autonomous Db Versions Filter>
- compartment
Id string - The compartment OCID.
- db
Workload string - A filter to return only autonomous database resources that match the specified workload type.
- filters
Get
Autonomous 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[database.
Get Autonomous Db Versions Filter]
- compartment
Id String - The compartment OCID.
- db
Workload 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:
- Autonomous
Db List<GetVersions Autonomous Db Versions Autonomous Db Version> - The list of autonomous_db_versions.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Db
Workload 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<Get
Autonomous Db Versions Filter>
- Autonomous
Db []GetVersions Autonomous Db Versions Autonomous Db Version - The list of autonomous_db_versions.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Db
Workload 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
[]Get
Autonomous Db Versions Filter
- autonomous
Db List<GetVersions Autonomous Db Versions Autonomous Db Version> - The list of autonomous_db_versions.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- db
Workload 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<Get
Autonomous Db Versions Filter>
- autonomous
Db GetVersions Autonomous Db Versions Autonomous Db Version[] - The list of autonomous_db_versions.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- db
Workload 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
Get
Autonomous Db Versions Filter[]
- autonomous_
db_ Sequence[database.versions Get 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[database.
Get Autonomous Db Versions Filter]
- autonomous
Db List<Property Map>Versions - The list of autonomous_db_versions.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- db
Workload 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
- Db
Workload 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.
- 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 string
- A valid Oracle Database version for Autonomous Database.
- Db
Workload 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.
- 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 string
- A valid Oracle Database version for Autonomous Database.
- db
Workload 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.
- is
Dedicated Boolean - True if the database uses dedicated Exadata infrastructure.
- is
Default BooleanFor Free - True if this version of the Oracle Database software's default is free.
- is
Default BooleanFor Paid - True if this version of the Oracle Database software's default is paid.
- is
Free BooleanTier Enabled - True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- is
Paid 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 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.
- is
Dedicated boolean - True if the database uses dedicated Exadata infrastructure.
- is
Default booleanFor Free - True if this version of the Oracle Database software's default is free.
- is
Default booleanFor Paid - True if this version of the Oracle Database software's default is paid.
- is
Free booleanTier Enabled - True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- is
Paid 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.
- db
Workload 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.
- is
Dedicated Boolean - True if the database uses dedicated Exadata infrastructure.
- is
Default BooleanFor Free - True if this version of the Oracle Database software's default is free.
- is
Default BooleanFor Paid - True if this version of the Oracle Database software's default is paid.
- is
Free BooleanTier Enabled - True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.
- is
Paid 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
oci
Terraform Provider.