1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getSystemVersions
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.Database.getSystemVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    This data source provides the list of System Versions in Oracle Cloud Infrastructure Database service.

    Gets a list of supported Exadata system versions for a given shape and GI version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSystemVersions = oci.Database.getSystemVersions({
        compartmentId: compartmentId,
        giVersion: systemVersionGiVersion,
        shape: systemVersionShape,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_system_versions = oci.Database.get_system_versions(compartment_id=compartment_id,
        gi_version=system_version_gi_version,
        shape=system_version_shape)
    
    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.GetSystemVersions(ctx, &database.GetSystemVersionsArgs{
    			CompartmentId: compartmentId,
    			GiVersion:     systemVersionGiVersion,
    			Shape:         systemVersionShape,
    		}, 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 testSystemVersions = Oci.Database.GetSystemVersions.Invoke(new()
        {
            CompartmentId = compartmentId,
            GiVersion = systemVersionGiVersion,
            Shape = systemVersionShape,
        });
    
    });
    
    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.GetSystemVersionsArgs;
    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 testSystemVersions = DatabaseFunctions.getSystemVersions(GetSystemVersionsArgs.builder()
                .compartmentId(compartmentId)
                .giVersion(systemVersionGiVersion)
                .shape(systemVersionShape)
                .build());
    
        }
    }
    
    variables:
      testSystemVersions:
        fn::invoke:
          Function: oci:Database:getSystemVersions
          Arguments:
            compartmentId: ${compartmentId}
            giVersion: ${systemVersionGiVersion}
            shape: ${systemVersionShape}
    

    Using getSystemVersions

    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 getSystemVersions(args: GetSystemVersionsArgs, opts?: InvokeOptions): Promise<GetSystemVersionsResult>
    function getSystemVersionsOutput(args: GetSystemVersionsOutputArgs, opts?: InvokeOptions): Output<GetSystemVersionsResult>
    def get_system_versions(compartment_id: Optional[str] = None,
                            filters: Optional[Sequence[_database.GetSystemVersionsFilter]] = None,
                            gi_version: Optional[str] = None,
                            shape: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetSystemVersionsResult
    def get_system_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetSystemVersionsFilterArgs]]]] = None,
                            gi_version: Optional[pulumi.Input[str]] = None,
                            shape: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetSystemVersionsResult]
    func GetSystemVersions(ctx *Context, args *GetSystemVersionsArgs, opts ...InvokeOption) (*GetSystemVersionsResult, error)
    func GetSystemVersionsOutput(ctx *Context, args *GetSystemVersionsOutputArgs, opts ...InvokeOption) GetSystemVersionsResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The compartment OCID.
    GiVersion string
    Specifies gi version query parameter.
    Shape string
    Specifies shape query parameter.
    Filters List<GetSystemVersionsFilter>
    CompartmentId string
    The compartment OCID.
    GiVersion string
    Specifies gi version query parameter.
    Shape string
    Specifies shape query parameter.
    Filters []GetSystemVersionsFilter
    compartmentId String
    The compartment OCID.
    giVersion String
    Specifies gi version query parameter.
    shape String
    Specifies shape query parameter.
    filters List<GetSystemVersionsFilter>
    compartmentId string
    The compartment OCID.
    giVersion string
    Specifies gi version query parameter.
    shape string
    Specifies shape query parameter.
    filters GetSystemVersionsFilter[]
    compartment_id str
    The compartment OCID.
    gi_version str
    Specifies gi version query parameter.
    shape str
    Specifies shape query parameter.
    filters Sequence[database.GetSystemVersionsFilter]
    compartmentId String
    The compartment OCID.
    giVersion String
    Specifies gi version query parameter.
    shape String
    Specifies shape query parameter.
    filters List<Property Map>

    getSystemVersions Result

    The following output properties are available:

    CompartmentId string
    GiVersion string
    Grid Infrastructure version.
    Id string
    The provider-assigned unique ID for this managed resource.
    Shape string
    Exadata shape.
    SystemVersionCollections List<GetSystemVersionsSystemVersionCollection>
    The list of system_version_collection.
    Filters List<GetSystemVersionsFilter>
    CompartmentId string
    GiVersion string
    Grid Infrastructure version.
    Id string
    The provider-assigned unique ID for this managed resource.
    Shape string
    Exadata shape.
    SystemVersionCollections []GetSystemVersionsSystemVersionCollection
    The list of system_version_collection.
    Filters []GetSystemVersionsFilter
    compartmentId String
    giVersion String
    Grid Infrastructure version.
    id String
    The provider-assigned unique ID for this managed resource.
    shape String
    Exadata shape.
    systemVersionCollections List<GetSystemVersionsSystemVersionCollection>
    The list of system_version_collection.
    filters List<GetSystemVersionsFilter>
    compartmentId string
    giVersion string
    Grid Infrastructure version.
    id string
    The provider-assigned unique ID for this managed resource.
    shape string
    Exadata shape.
    systemVersionCollections GetSystemVersionsSystemVersionCollection[]
    The list of system_version_collection.
    filters GetSystemVersionsFilter[]
    compartment_id str
    gi_version str
    Grid Infrastructure version.
    id str
    The provider-assigned unique ID for this managed resource.
    shape str
    Exadata shape.
    system_version_collections Sequence[database.GetSystemVersionsSystemVersionCollection]
    The list of system_version_collection.
    filters Sequence[database.GetSystemVersionsFilter]
    compartmentId String
    giVersion String
    Grid Infrastructure version.
    id String
    The provider-assigned unique ID for this managed resource.
    shape String
    Exadata shape.
    systemVersionCollections List<Property Map>
    The list of system_version_collection.
    filters List<Property Map>

    Supporting Types

    GetSystemVersionsFilter

    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

    GetSystemVersionsSystemVersionCollection

    items List<Property Map>
    List of System versions.

    GetSystemVersionsSystemVersionCollectionItem

    GiVersion string
    Specifies gi version query parameter.
    Shape string
    Specifies shape query parameter.
    SystemVersions List<string>
    Compatible Exadata system versions for a given shape and GI version.
    GiVersion string
    Specifies gi version query parameter.
    Shape string
    Specifies shape query parameter.
    SystemVersions []string
    Compatible Exadata system versions for a given shape and GI version.
    giVersion String
    Specifies gi version query parameter.
    shape String
    Specifies shape query parameter.
    systemVersions List<String>
    Compatible Exadata system versions for a given shape and GI version.
    giVersion string
    Specifies gi version query parameter.
    shape string
    Specifies shape query parameter.
    systemVersions string[]
    Compatible Exadata system versions for a given shape and GI version.
    gi_version str
    Specifies gi version query parameter.
    shape str
    Specifies shape query parameter.
    system_versions Sequence[str]
    Compatible Exadata system versions for a given shape and GI version.
    giVersion String
    Specifies gi version query parameter.
    shape String
    Specifies shape query parameter.
    systemVersions List<String>
    Compatible Exadata system versions for a given shape and GI version.

    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.34.0 published on Friday, May 3, 2024 by Pulumi