1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousDbPreviewVersions
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Database.getAutonomousDbPreviewVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Autonomous Db Preview Versions in Oracle Cloud Infrastructure Database service.

    Gets a list of supported Autonomous Database versions. Note that preview version software is only available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) databases.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDbPreviewVersions = oci.Database.getAutonomousDbPreviewVersions({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_db_preview_versions = oci.Database.get_autonomous_db_preview_versions(compartment_id=compartment_id)
    
    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.GetAutonomousDbPreviewVersions(ctx, &database.GetAutonomousDbPreviewVersionsArgs{
    			CompartmentId: compartmentId,
    		}, 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 testAutonomousDbPreviewVersions = Oci.Database.GetAutonomousDbPreviewVersions.Invoke(new()
        {
            CompartmentId = compartmentId,
        });
    
    });
    
    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.GetAutonomousDbPreviewVersionsArgs;
    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 testAutonomousDbPreviewVersions = DatabaseFunctions.getAutonomousDbPreviewVersions(GetAutonomousDbPreviewVersionsArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testAutonomousDbPreviewVersions:
        fn::invoke:
          Function: oci:Database:getAutonomousDbPreviewVersions
          Arguments:
            compartmentId: ${compartmentId}
    

    Using getAutonomousDbPreviewVersions

    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 getAutonomousDbPreviewVersions(args: GetAutonomousDbPreviewVersionsArgs, opts?: InvokeOptions): Promise<GetAutonomousDbPreviewVersionsResult>
    function getAutonomousDbPreviewVersionsOutput(args: GetAutonomousDbPreviewVersionsOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDbPreviewVersionsResult>
    def get_autonomous_db_preview_versions(compartment_id: Optional[str] = None,
                                           filters: Optional[Sequence[_database.GetAutonomousDbPreviewVersionsFilter]] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAutonomousDbPreviewVersionsResult
    def get_autonomous_db_preview_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousDbPreviewVersionsFilterArgs]]]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDbPreviewVersionsResult]
    func GetAutonomousDbPreviewVersions(ctx *Context, args *GetAutonomousDbPreviewVersionsArgs, opts ...InvokeOption) (*GetAutonomousDbPreviewVersionsResult, error)
    func GetAutonomousDbPreviewVersionsOutput(ctx *Context, args *GetAutonomousDbPreviewVersionsOutputArgs, opts ...InvokeOption) GetAutonomousDbPreviewVersionsResultOutput

    > Note: This function is named GetAutonomousDbPreviewVersions in the Go SDK.

    public static class GetAutonomousDbPreviewVersions 
    {
        public static Task<GetAutonomousDbPreviewVersionsResult> InvokeAsync(GetAutonomousDbPreviewVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousDbPreviewVersionsResult> Invoke(GetAutonomousDbPreviewVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutonomousDbPreviewVersionsResult> getAutonomousDbPreviewVersions(GetAutonomousDbPreviewVersionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousDbPreviewVersions:getAutonomousDbPreviewVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getAutonomousDbPreviewVersions Result

    The following output properties are available:

    AutonomousDbPreviewVersions List<GetAutonomousDbPreviewVersionsAutonomousDbPreviewVersion>
    The list of autonomous_db_preview_versions.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetAutonomousDbPreviewVersionsFilter>
    AutonomousDbPreviewVersions []GetAutonomousDbPreviewVersionsAutonomousDbPreviewVersion
    The list of autonomous_db_preview_versions.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetAutonomousDbPreviewVersionsFilter
    autonomousDbPreviewVersions List<GetAutonomousDbPreviewVersionsAutonomousDbPreviewVersion>
    The list of autonomous_db_preview_versions.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetAutonomousDbPreviewVersionsFilter>
    autonomousDbPreviewVersions GetAutonomousDbPreviewVersionsAutonomousDbPreviewVersion[]
    The list of autonomous_db_preview_versions.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetAutonomousDbPreviewVersionsFilter[]
    autonomousDbPreviewVersions List<Property Map>
    The list of autonomous_db_preview_versions.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetAutonomousDbPreviewVersionsAutonomousDbPreviewVersion

    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.
    Details string
    A URL that points to a detailed description of the preview version.
    TimePreviewBegin string
    The date and time when the preview version availability begins.
    TimePreviewEnd string
    The date and time when the preview version availability ends.
    Version string
    A valid Autonomous Database preview version.
    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.
    Details string
    A URL that points to a detailed description of the preview version.
    TimePreviewBegin string
    The date and time when the preview version availability begins.
    TimePreviewEnd string
    The date and time when the preview version availability ends.
    Version string
    A valid Autonomous Database preview version.
    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.
    details String
    A URL that points to a detailed description of the preview version.
    timePreviewBegin String
    The date and time when the preview version availability begins.
    timePreviewEnd String
    The date and time when the preview version availability ends.
    version String
    A valid Autonomous Database preview version.
    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.
    details string
    A URL that points to a detailed description of the preview version.
    timePreviewBegin string
    The date and time when the preview version availability begins.
    timePreviewEnd string
    The date and time when the preview version availability ends.
    version string
    A valid Autonomous Database preview version.
    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.
    details str
    A URL that points to a detailed description of the preview version.
    time_preview_begin str
    The date and time when the preview version availability begins.
    time_preview_end str
    The date and time when the preview version availability ends.
    version str
    A valid Autonomous Database preview version.
    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.
    details String
    A URL that points to a detailed description of the preview version.
    timePreviewBegin String
    The date and time when the preview version availability begins.
    timePreviewEnd String
    The date and time when the preview version availability ends.
    version String
    A valid Autonomous Database preview version.

    GetAutonomousDbPreviewVersionsFilter

    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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi