1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getGiVersionMinorVersions
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Database.getGiVersionMinorVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Gi Version Minor Versions in Oracle Cloud Infrastructure Database service.

    Gets a list of supported Oracle Grid Infrastructure minor versions for the given major version and shape family.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testGiVersionMinorVersions = oci.Database.getGiVersionMinorVersions({
        version: giVersionMinorVersionVersion,
        availabilityDomain: giVersionMinorVersionAvailabilityDomain,
        compartmentId: compartmentId,
        isGiVersionForProvisioning: giVersionMinorVersionIsGiVersionForProvisioning,
        shape: giVersionMinorVersionShape,
        shapeFamily: giVersionMinorVersionShapeFamily,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_gi_version_minor_versions = oci.Database.get_gi_version_minor_versions(version=gi_version_minor_version_version,
        availability_domain=gi_version_minor_version_availability_domain,
        compartment_id=compartment_id,
        is_gi_version_for_provisioning=gi_version_minor_version_is_gi_version_for_provisioning,
        shape=gi_version_minor_version_shape,
        shape_family=gi_version_minor_version_shape_family)
    
    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.GetGiVersionMinorVersions(ctx, &database.GetGiVersionMinorVersionsArgs{
    			Version:                    giVersionMinorVersionVersion,
    			AvailabilityDomain:         pulumi.StringRef(giVersionMinorVersionAvailabilityDomain),
    			CompartmentId:              pulumi.StringRef(compartmentId),
    			IsGiVersionForProvisioning: pulumi.BoolRef(giVersionMinorVersionIsGiVersionForProvisioning),
    			Shape:                      pulumi.StringRef(giVersionMinorVersionShape),
    			ShapeFamily:                pulumi.StringRef(giVersionMinorVersionShapeFamily),
    		}, 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 testGiVersionMinorVersions = Oci.Database.GetGiVersionMinorVersions.Invoke(new()
        {
            Version = giVersionMinorVersionVersion,
            AvailabilityDomain = giVersionMinorVersionAvailabilityDomain,
            CompartmentId = compartmentId,
            IsGiVersionForProvisioning = giVersionMinorVersionIsGiVersionForProvisioning,
            Shape = giVersionMinorVersionShape,
            ShapeFamily = giVersionMinorVersionShapeFamily,
        });
    
    });
    
    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.GetGiVersionMinorVersionsArgs;
    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 testGiVersionMinorVersions = DatabaseFunctions.getGiVersionMinorVersions(GetGiVersionMinorVersionsArgs.builder()
                .version(giVersionMinorVersionVersion)
                .availabilityDomain(giVersionMinorVersionAvailabilityDomain)
                .compartmentId(compartmentId)
                .isGiVersionForProvisioning(giVersionMinorVersionIsGiVersionForProvisioning)
                .shape(giVersionMinorVersionShape)
                .shapeFamily(giVersionMinorVersionShapeFamily)
                .build());
    
        }
    }
    
    variables:
      testGiVersionMinorVersions:
        fn::invoke:
          Function: oci:Database:getGiVersionMinorVersions
          Arguments:
            version: ${giVersionMinorVersionVersion}
            availabilityDomain: ${giVersionMinorVersionAvailabilityDomain}
            compartmentId: ${compartmentId}
            isGiVersionForProvisioning: ${giVersionMinorVersionIsGiVersionForProvisioning}
            shape: ${giVersionMinorVersionShape}
            shapeFamily: ${giVersionMinorVersionShapeFamily}
    

    Using getGiVersionMinorVersions

    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 getGiVersionMinorVersions(args: GetGiVersionMinorVersionsArgs, opts?: InvokeOptions): Promise<GetGiVersionMinorVersionsResult>
    function getGiVersionMinorVersionsOutput(args: GetGiVersionMinorVersionsOutputArgs, opts?: InvokeOptions): Output<GetGiVersionMinorVersionsResult>
    def get_gi_version_minor_versions(availability_domain: Optional[str] = None,
                                      compartment_id: Optional[str] = None,
                                      filters: Optional[Sequence[_database.GetGiVersionMinorVersionsFilter]] = None,
                                      is_gi_version_for_provisioning: Optional[bool] = None,
                                      shape: Optional[str] = None,
                                      shape_family: Optional[str] = None,
                                      version: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetGiVersionMinorVersionsResult
    def get_gi_version_minor_versions_output(availability_domain: Optional[pulumi.Input[str]] = None,
                                      compartment_id: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetGiVersionMinorVersionsFilterArgs]]]] = None,
                                      is_gi_version_for_provisioning: Optional[pulumi.Input[bool]] = None,
                                      shape: Optional[pulumi.Input[str]] = None,
                                      shape_family: Optional[pulumi.Input[str]] = None,
                                      version: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetGiVersionMinorVersionsResult]
    func GetGiVersionMinorVersions(ctx *Context, args *GetGiVersionMinorVersionsArgs, opts ...InvokeOption) (*GetGiVersionMinorVersionsResult, error)
    func GetGiVersionMinorVersionsOutput(ctx *Context, args *GetGiVersionMinorVersionsOutputArgs, opts ...InvokeOption) GetGiVersionMinorVersionsResultOutput

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

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

    The following arguments are supported:

    Version string
    The Oracle Grid Infrastructure major version.
    AvailabilityDomain string
    The target availability domain. Only passed if the limit is AD-specific.
    CompartmentId string
    The compartment OCID.
    Filters List<GetGiVersionMinorVersionsFilter>
    IsGiVersionForProvisioning bool
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    Shape string
    If provided, filters the results for the given shape.
    ShapeFamily string
    If provided, filters the results to the set of database versions which are supported for the given shape family.
    Version string
    The Oracle Grid Infrastructure major version.
    AvailabilityDomain string
    The target availability domain. Only passed if the limit is AD-specific.
    CompartmentId string
    The compartment OCID.
    Filters []GetGiVersionMinorVersionsFilter
    IsGiVersionForProvisioning bool
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    Shape string
    If provided, filters the results for the given shape.
    ShapeFamily string
    If provided, filters the results to the set of database versions which are supported for the given shape family.
    version String
    The Oracle Grid Infrastructure major version.
    availabilityDomain String
    The target availability domain. Only passed if the limit is AD-specific.
    compartmentId String
    The compartment OCID.
    filters List<GetGiVersionMinorVersionsFilter>
    isGiVersionForProvisioning Boolean
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    shape String
    If provided, filters the results for the given shape.
    shapeFamily String
    If provided, filters the results to the set of database versions which are supported for the given shape family.
    version string
    The Oracle Grid Infrastructure major version.
    availabilityDomain string
    The target availability domain. Only passed if the limit is AD-specific.
    compartmentId string
    The compartment OCID.
    filters GetGiVersionMinorVersionsFilter[]
    isGiVersionForProvisioning boolean
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    shape string
    If provided, filters the results for the given shape.
    shapeFamily string
    If provided, filters the results to the set of database versions which are supported for the given shape family.
    version str
    The Oracle Grid Infrastructure major version.
    availability_domain str
    The target availability domain. Only passed if the limit is AD-specific.
    compartment_id str
    The compartment OCID.
    filters Sequence[database.GetGiVersionMinorVersionsFilter]
    is_gi_version_for_provisioning bool
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    shape str
    If provided, filters the results for the given shape.
    shape_family str
    If provided, filters the results to the set of database versions which are supported for the given shape family.
    version String
    The Oracle Grid Infrastructure major version.
    availabilityDomain String
    The target availability domain. Only passed if the limit is AD-specific.
    compartmentId String
    The compartment OCID.
    filters List<Property Map>
    isGiVersionForProvisioning Boolean
    If true, returns the Grid Infrastructure versions that can be used for provisioning a cluster
    shape String
    If provided, filters the results for the given shape.
    shapeFamily String
    If provided, filters the results to the set of database versions which are supported for the given shape family.

    getGiVersionMinorVersions Result

    The following output properties are available:

    GiMinorVersions List<GetGiVersionMinorVersionsGiMinorVersion>
    The list of gi_minor_versions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version string
    A valid Oracle Grid Infrastructure (GI) software version.
    AvailabilityDomain string
    CompartmentId string
    Filters List<GetGiVersionMinorVersionsFilter>
    IsGiVersionForProvisioning bool
    Shape string
    ShapeFamily string
    GiMinorVersions []GetGiVersionMinorVersionsGiMinorVersion
    The list of gi_minor_versions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version string
    A valid Oracle Grid Infrastructure (GI) software version.
    AvailabilityDomain string
    CompartmentId string
    Filters []GetGiVersionMinorVersionsFilter
    IsGiVersionForProvisioning bool
    Shape string
    ShapeFamily string
    giMinorVersions List<GetGiVersionMinorVersionsGiMinorVersion>
    The list of gi_minor_versions.
    id String
    The provider-assigned unique ID for this managed resource.
    version String
    A valid Oracle Grid Infrastructure (GI) software version.
    availabilityDomain String
    compartmentId String
    filters List<GetGiVersionMinorVersionsFilter>
    isGiVersionForProvisioning Boolean
    shape String
    shapeFamily String
    giMinorVersions GetGiVersionMinorVersionsGiMinorVersion[]
    The list of gi_minor_versions.
    id string
    The provider-assigned unique ID for this managed resource.
    version string
    A valid Oracle Grid Infrastructure (GI) software version.
    availabilityDomain string
    compartmentId string
    filters GetGiVersionMinorVersionsFilter[]
    isGiVersionForProvisioning boolean
    shape string
    shapeFamily string
    gi_minor_versions Sequence[database.GetGiVersionMinorVersionsGiMinorVersion]
    The list of gi_minor_versions.
    id str
    The provider-assigned unique ID for this managed resource.
    version str
    A valid Oracle Grid Infrastructure (GI) software version.
    availability_domain str
    compartment_id str
    filters Sequence[database.GetGiVersionMinorVersionsFilter]
    is_gi_version_for_provisioning bool
    shape str
    shape_family str
    giMinorVersions List<Property Map>
    The list of gi_minor_versions.
    id String
    The provider-assigned unique ID for this managed resource.
    version String
    A valid Oracle Grid Infrastructure (GI) software version.
    availabilityDomain String
    compartmentId String
    filters List<Property Map>
    isGiVersionForProvisioning Boolean
    shape String
    shapeFamily String

    Supporting Types

    GetGiVersionMinorVersionsFilter

    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

    GetGiVersionMinorVersionsGiMinorVersion

    GridImageId string
    Grid Infrastructure Image Id
    Version string
    The Oracle Grid Infrastructure major version.
    GridImageId string
    Grid Infrastructure Image Id
    Version string
    The Oracle Grid Infrastructure major version.
    gridImageId String
    Grid Infrastructure Image Id
    version String
    The Oracle Grid Infrastructure major version.
    gridImageId string
    Grid Infrastructure Image Id
    version string
    The Oracle Grid Infrastructure major version.
    grid_image_id str
    Grid Infrastructure Image Id
    version str
    The Oracle Grid Infrastructure major version.
    gridImageId String
    Grid Infrastructure Image Id
    version String
    The Oracle Grid Infrastructure major 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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi