1. Packages
  2. Azure Classic
  3. API Docs
  4. oracle
  5. getGiVersions

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.oracle.getGiVersions

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

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

    Gets a list of supported GI versions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    export = async () => {
        const example = await azure.oracle.getGiVersions({
            location: "eastus",
            zone: "2",
            shape: "Exadata.X9M",
        });
        return {
            example: example,
        };
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.oracle.get_gi_versions(location="eastus",
        zone="2",
        shape="Exadata.X9M")
    pulumi.export("example", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/oracle"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := oracle.GetGiVersions(ctx, &oracle.GetGiVersionsArgs{
    			Location: "eastus",
    			Zone:     pulumi.StringRef("2"),
    			Shape:    pulumi.StringRef("Exadata.X9M"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("example", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.Oracle.GetGiVersions.Invoke(new()
        {
            Location = "eastus",
            Zone = "2",
            Shape = "Exadata.X9M",
        });
    
        return new Dictionary<string, object?>
        {
            ["example"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.oracle.OracleFunctions;
    import com.pulumi.azure.oracle.inputs.GetGiVersionsArgs;
    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 example = OracleFunctions.getGiVersions(GetGiVersionsArgs.builder()
                .location("eastus")
                .zone("2")
                .shape("Exadata.X9M")
                .build());
    
            ctx.export("example", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:oracle:getGiVersions
          arguments:
            location: eastus
            zone: '2'
            shape: Exadata.X9M
    outputs:
      example: ${example}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Oracle.Database - 2025-03-01

    Using getGiVersions

    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 getGiVersions(args: GetGiVersionsArgs, opts?: InvokeOptions): Promise<GetGiVersionsResult>
    function getGiVersionsOutput(args: GetGiVersionsOutputArgs, opts?: InvokeOptions): Output<GetGiVersionsResult>
    def get_gi_versions(location: Optional[str] = None,
                        shape: Optional[str] = None,
                        zone: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetGiVersionsResult
    def get_gi_versions_output(location: Optional[pulumi.Input[str]] = None,
                        shape: Optional[pulumi.Input[str]] = None,
                        zone: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetGiVersionsResult]
    func GetGiVersions(ctx *Context, args *GetGiVersionsArgs, opts ...InvokeOption) (*GetGiVersionsResult, error)
    func GetGiVersionsOutput(ctx *Context, args *GetGiVersionsOutputArgs, opts ...InvokeOption) GetGiVersionsResultOutput

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

    public static class GetGiVersions 
    {
        public static Task<GetGiVersionsResult> InvokeAsync(GetGiVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetGiVersionsResult> Invoke(GetGiVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGiVersionsResult> getGiVersions(GetGiVersionsArgs args, InvokeOptions options)
    public static Output<GetGiVersionsResult> getGiVersions(GetGiVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:oracle/getGiVersions:getGiVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    The Azure Region to query for the GI Versions in.
    Shape string
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    Zone string
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.
    Location string
    The Azure Region to query for the GI Versions in.
    Shape string
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    Zone string
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.
    location String
    The Azure Region to query for the GI Versions in.
    shape String
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    zone String
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.
    location string
    The Azure Region to query for the GI Versions in.
    shape string
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    zone string
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.
    location str
    The Azure Region to query for the GI Versions in.
    shape str
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    zone str
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.
    location String
    The Azure Region to query for the GI Versions in.
    shape String
    The model name of the Cloud Exadata Infrastructure resource. Possible values are ExaDbXS, Exadata.X9M, and Exadata.X11M. This is used to filter out the available GI versions compatible with the given model.
    zone String
    Indicates the Azure zone for the Cloud Exadata Infrastructure, used to filter the available GI versions within a given zone.

    getGiVersions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Versions List<string>
    A list of valid GI software versions.
    Shape string
    Zone string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Versions []string
    A list of valid GI software versions.
    Shape string
    Zone string
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<String>
    A list of valid GI software versions.
    shape String
    zone String
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    versions string[]
    A list of valid GI software versions.
    shape string
    zone string
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    versions Sequence[str]
    A list of valid GI software versions.
    shape str
    zone str
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<String>
    A list of valid GI software versions.
    shape String
    zone String

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi