Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Database.getGiVersions
Start a Neo task
Explain and create an oci.Database.getGiVersions resource
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 oci from "@pulumi/oci";
const testGiVersions = oci.Database.getGiVersions({
compartmentId: compartmentId,
availabilityDomain: giVersionAvailabilityDomain,
resourceId: testResource.id,
shape: giVersionShape,
shapeAttribute: giVersionShapeAttribute,
});
import pulumi
import pulumi_oci as oci
test_gi_versions = oci.Database.get_gi_versions(compartment_id=compartment_id,
availability_domain=gi_version_availability_domain,
resource_id=test_resource["id"],
shape=gi_version_shape,
shape_attribute=gi_version_shape_attribute)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/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: compartmentId,
AvailabilityDomain: pulumi.StringRef(giVersionAvailabilityDomain),
ResourceId: pulumi.StringRef(testResource.Id),
Shape: pulumi.StringRef(giVersionShape),
ShapeAttribute: pulumi.StringRef(giVersionShapeAttribute),
}, 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 testGiVersions = Oci.Database.GetGiVersions.Invoke(new()
{
CompartmentId = compartmentId,
AvailabilityDomain = giVersionAvailabilityDomain,
ResourceId = testResource.Id,
Shape = giVersionShape,
ShapeAttribute = giVersionShapeAttribute,
});
});
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(compartmentId)
.availabilityDomain(giVersionAvailabilityDomain)
.resourceId(testResource.id())
.shape(giVersionShape)
.shapeAttribute(giVersionShapeAttribute)
.build());
}
}
variables:
testGiVersions:
fn::invoke:
function: oci:Database:getGiVersions
arguments:
compartmentId: ${compartmentId}
availabilityDomain: ${giVersionAvailabilityDomain}
resourceId: ${testResource.id}
shape: ${giVersionShape}
shapeAttribute: ${giVersionShapeAttribute}
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(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetGiVersionsFilter]] = None,
resource_id: Optional[str] = None,
shape: Optional[str] = None,
shape_attribute: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGiVersionsResult
def get_gi_versions_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetGiVersionsFilterArgs]]]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
shape: Optional[pulumi.Input[str]] = None,
shape_attribute: 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: oci:Database/getGiVersions:getGiVersions
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Availability
Domain string - The target availability domain. Only passed if the limit is AD-specific.
- Filters
List<Get
Gi Versions Filter> - Resource
Id string - If provided, filters the results for the specified resource Id.
- Shape string
- If provided, filters the results for the given shape.
- Shape
Attribute string - If provided and applicable, return the results based on the shapeAttribute provided
- Compartment
Id string - The compartment OCID.
- Availability
Domain string - The target availability domain. Only passed if the limit is AD-specific.
- Filters
[]Get
Gi Versions Filter - Resource
Id string - If provided, filters the results for the specified resource Id.
- Shape string
- If provided, filters the results for the given shape.
- Shape
Attribute string - If provided and applicable, return the results based on the shapeAttribute provided
- compartment
Id String - The compartment OCID.
- availability
Domain String - The target availability domain. Only passed if the limit is AD-specific.
- filters
List<Get
Gi Versions Filter> - resource
Id String - If provided, filters the results for the specified resource Id.
- shape String
- If provided, filters the results for the given shape.
- shape
Attribute String - If provided and applicable, return the results based on the shapeAttribute provided
- compartment
Id string - The compartment OCID.
- availability
Domain string - The target availability domain. Only passed if the limit is AD-specific.
- filters
Get
Gi Versions Filter[] - resource
Id string - If provided, filters the results for the specified resource Id.
- shape string
- If provided, filters the results for the given shape.
- shape
Attribute string - If provided and applicable, return the results based on the shapeAttribute provided
- compartment_
id str - The compartment OCID.
- availability_
domain str - The target availability domain. Only passed if the limit is AD-specific.
- filters
Sequence[Get
Gi Versions Filter] - resource_
id str - If provided, filters the results for the specified resource Id.
- shape str
- If provided, filters the results for the given shape.
- shape_
attribute str - If provided and applicable, return the results based on the shapeAttribute provided
- compartment
Id String - The compartment OCID.
- availability
Domain String - The target availability domain. Only passed if the limit is AD-specific.
- filters List<Property Map>
- resource
Id String - If provided, filters the results for the specified resource Id.
- shape String
- If provided, filters the results for the given shape.
- shape
Attribute String - If provided and applicable, return the results based on the shapeAttribute provided
getGiVersions Result
The following output properties are available:
- Compartment
Id string - Gi
Versions List<GetGi Versions Gi Version> - The list of gi_versions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Filters
List<Get
Gi Versions Filter> - Resource
Id string - Shape string
- Shape
Attribute string
- Compartment
Id string - Gi
Versions []GetGi Versions Gi Version - The list of gi_versions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - Filters
[]Get
Gi Versions Filter - Resource
Id string - Shape string
- Shape
Attribute string
- compartment
Id String - gi
Versions List<GetGi Versions Gi Version> - The list of gi_versions.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - filters
List<Get
Gi Versions Filter> - resource
Id String - shape String
- shape
Attribute String
- compartment
Id string - gi
Versions GetGi Versions Gi Version[] - The list of gi_versions.
- id string
- The provider-assigned unique ID for this managed resource.
- availability
Domain string - filters
Get
Gi Versions Filter[] - resource
Id string - shape string
- shape
Attribute string
- compartment_
id str - gi_
versions Sequence[GetGi Versions Gi Version] - The list of gi_versions.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_
domain str - filters
Sequence[Get
Gi Versions Filter] - resource_
id str - shape str
- shape_
attribute str
- compartment
Id String - gi
Versions List<Property Map> - The list of gi_versions.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - filters List<Property Map>
- resource
Id String - shape String
- shape
Attribute String
Supporting Types
GetGiVersionsFilter
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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
