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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.oracle.getGiVersions

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 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: "West Europe",
        });
        return {
            example: example,
        };
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.oracle.get_gi_versions(location="West Europe")
    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: "West Europe",
    		}, 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 = "West Europe",
        });
    
        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("West Europe")
                .build());
    
            ctx.export("example", example.applyValue(getGiVersionsResult -> getGiVersionsResult));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:oracle:getGiVersions
          Arguments:
            location: West Europe
    outputs:
      example: ${example}
    

    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,
                        opts: Optional[InvokeOptions] = None) -> GetGiVersionsResult
    def get_gi_versions_output(location: 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)
    // Output-based functions aren't available in Java yet
    
    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.
    Location string
    The Azure Region to query for the GI Versions in.
    location String
    The Azure Region to query for the GI Versions in.
    location string
    The Azure Region to query for the GI Versions in.
    location str
    The Azure Region to query for the GI Versions in.
    location String
    The Azure Region to query for the GI Versions in.

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Versions []string
    A list of valid GI software versions.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<String>
    A list of valid GI software versions.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    versions string[]
    A list of valid GI software versions.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    versions Sequence[str]
    A list of valid GI software versions.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    versions List<String>
    A list of valid GI software versions.

    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.10.0 published on Tuesday, Nov 19, 2024 by Pulumi