get Gi Versions
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,
};
}
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.oracle.get_gi_versions(location="West Europe")
pulumi.export("example", example)
Content copied to clipboard
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,
};
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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));
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:oracle:getGiVersions
arguments:
location: West Europe
outputs:
example: ${example}
Content copied to clipboard
Return
A collection of values returned by getGiVersions.
Parameters
argument
A collection of arguments for invoking getGiVersions.
Return
A collection of values returned by getGiVersions.
Parameters
location
The Azure Region to query for the GI Versions in.
See also
suspend fun getGiVersions(argument: suspend GetGiVersionsPlainArgsBuilder.() -> Unit): GetGiVersionsResult
Return
A collection of values returned by getGiVersions.
Parameters
argument
Builder for com.pulumi.azure.oracle.kotlin.inputs.GetGiVersionsPlainArgs.