Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getGiVersions

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

Gets a list of supported GI versions for the Exadata Cloud@Customer VM cluster.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testGiVersions = Oci.Database.GetGiVersions.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        Shape = @var.Gi_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.GetGiVersions(ctx, &database.GetGiVersionsArgs{
			CompartmentId: _var.Compartment_id,
			Shape:         pulumi.StringRef(_var.Gi_version_shape),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.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 testGiVersions = DatabaseFunctions.getGiVersions(GetGiVersionsArgs.builder()
            .compartmentId(var_.compartment_id())
            .shape(var_.gi_version_shape())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_gi_versions = oci.Database.get_gi_versions(compartment_id=var["compartment_id"],
    shape=var["gi_version_shape"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testGiVersions = oci.Database.getGiVersions({
    compartmentId: _var.compartment_id,
    shape: _var.gi_version_shape,
});
variables:
  testGiVersions:
    Fn::Invoke:
      Function: oci:Database:getGiVersions
      Arguments:
        compartmentId: ${var.compartment_id}
        shape: ${var.gi_version_shape}

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(compartment_id: Optional[str] = None,
                    filters: Optional[Sequence[_database.GetGiVersionsFilter]] = None,
                    shape: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetGiVersionsResult
def get_gi_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetGiVersionsFilterArgs]]]] = None,
                    shape: 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: oci:Database/getGiVersions:getGiVersions
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The compartment OCID.

Filters List<GetGiVersionsFilter>
Shape string

If provided, filters the results for the given shape.

CompartmentId string

The compartment OCID.

Filters []GetGiVersionsFilter
Shape string

If provided, filters the results for the given shape.

compartmentId String

The compartment OCID.

filters List<GetGiVersionsFilter>
shape String

If provided, filters the results for the given shape.

compartmentId string

The compartment OCID.

filters GetGiVersionsFilter[]
shape string

If provided, filters the results for the given shape.

compartment_id str

The compartment OCID.

filters GetGiVersionsFilter]
shape str

If provided, filters the results for the given shape.

compartmentId String

The compartment OCID.

filters List<Property Map>
shape String

If provided, filters the results for the given shape.

getGiVersions Result

The following output properties are available:

CompartmentId string
GiVersions List<GetGiVersionsGiVersion>

The list of gi_versions.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetGiVersionsFilter>
Shape string
CompartmentId string
GiVersions []GetGiVersionsGiVersion

The list of gi_versions.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetGiVersionsFilter
Shape string
compartmentId String
giVersions List<GetGiVersionsGiVersion>

The list of gi_versions.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetGiVersionsFilter>
shape String
compartmentId string
giVersions GetGiVersionsGiVersion[]

The list of gi_versions.

id string

The provider-assigned unique ID for this managed resource.

filters GetGiVersionsFilter[]
shape string
compartment_id str
gi_versions GetGiVersionsGiVersion]

The list of gi_versions.

id str

The provider-assigned unique ID for this managed resource.

filters GetGiVersionsFilter]
shape str
compartmentId String
giVersions List<Property Map>

The list of gi_versions.

id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>
shape String

Supporting Types

GetGiVersionsFilter

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

GetGiVersionsGiVersion

Version string

A valid Oracle Grid Infrastructure (GI) software version.

Version string

A valid Oracle Grid Infrastructure (GI) software version.

version String

A valid Oracle Grid Infrastructure (GI) software version.

version string

A valid Oracle Grid Infrastructure (GI) software version.

version str

A valid Oracle Grid Infrastructure (GI) software version.

version String

A valid Oracle Grid Infrastructure (GI) software version.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.