Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.Database.getSystemVersions
Start a Neo task
Explain and create an oci.Database.getSystemVersions resource
This data source provides the list of System Versions in Oracle Cloud Infrastructure Database service.
Gets a list of supported Exadata system versions for a given shape and GI version.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSystemVersions = oci.Database.getSystemVersions({
compartmentId: compartmentId,
giVersion: systemVersionGiVersion,
isLatest: systemVersionIsLatest,
resourceId: testResource.id,
shape: systemVersionShape,
});
import pulumi
import pulumi_oci as oci
test_system_versions = oci.Database.get_system_versions(compartment_id=compartment_id,
gi_version=system_version_gi_version,
is_latest=system_version_is_latest,
resource_id=test_resource["id"],
shape=system_version_shape)
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.GetSystemVersions(ctx, &database.GetSystemVersionsArgs{
CompartmentId: compartmentId,
GiVersion: systemVersionGiVersion,
IsLatest: pulumi.BoolRef(systemVersionIsLatest),
ResourceId: pulumi.StringRef(testResource.Id),
Shape: pulumi.StringRef(systemVersionShape),
}, 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 testSystemVersions = Oci.Database.GetSystemVersions.Invoke(new()
{
CompartmentId = compartmentId,
GiVersion = systemVersionGiVersion,
IsLatest = systemVersionIsLatest,
ResourceId = testResource.Id,
Shape = systemVersionShape,
});
});
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.GetSystemVersionsArgs;
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 testSystemVersions = DatabaseFunctions.getSystemVersions(GetSystemVersionsArgs.builder()
.compartmentId(compartmentId)
.giVersion(systemVersionGiVersion)
.isLatest(systemVersionIsLatest)
.resourceId(testResource.id())
.shape(systemVersionShape)
.build());
}
}
variables:
testSystemVersions:
fn::invoke:
function: oci:Database:getSystemVersions
arguments:
compartmentId: ${compartmentId}
giVersion: ${systemVersionGiVersion}
isLatest: ${systemVersionIsLatest}
resourceId: ${testResource.id}
shape: ${systemVersionShape}
Using getSystemVersions
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 getSystemVersions(args: GetSystemVersionsArgs, opts?: InvokeOptions): Promise<GetSystemVersionsResult>
function getSystemVersionsOutput(args: GetSystemVersionsOutputArgs, opts?: InvokeOptions): Output<GetSystemVersionsResult>def get_system_versions(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetSystemVersionsFilter]] = None,
gi_version: Optional[str] = None,
is_latest: Optional[bool] = None,
resource_id: Optional[str] = None,
shape: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSystemVersionsResult
def get_system_versions_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSystemVersionsFilterArgs]]]] = None,
gi_version: Optional[pulumi.Input[str]] = None,
is_latest: Optional[pulumi.Input[bool]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
shape: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSystemVersionsResult]func GetSystemVersions(ctx *Context, args *GetSystemVersionsArgs, opts ...InvokeOption) (*GetSystemVersionsResult, error)
func GetSystemVersionsOutput(ctx *Context, args *GetSystemVersionsOutputArgs, opts ...InvokeOption) GetSystemVersionsResultOutput> Note: This function is named GetSystemVersions in the Go SDK.
public static class GetSystemVersions
{
public static Task<GetSystemVersionsResult> InvokeAsync(GetSystemVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetSystemVersionsResult> Invoke(GetSystemVersionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSystemVersionsResult> getSystemVersions(GetSystemVersionsArgs args, InvokeOptions options)
public static Output<GetSystemVersionsResult> getSystemVersions(GetSystemVersionsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Database/getSystemVersions:getSystemVersions
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Gi
Version string - Specifies gi version query parameter.
- Filters
List<Get
System Versions Filter> - Is
Latest bool - If provided, return highest versions from each major version family.
- Resource
Id string - If provided, filters the results for the specified resource Id.
- Shape string
- If provided, filters the results for the given shape.
- Compartment
Id string - The compartment OCID.
- Gi
Version string - Specifies gi version query parameter.
- Filters
[]Get
System Versions Filter - Is
Latest bool - If provided, return highest versions from each major version family.
- Resource
Id string - If provided, filters the results for the specified resource Id.
- Shape string
- If provided, filters the results for the given shape.
- compartment
Id String - The compartment OCID.
- gi
Version String - Specifies gi version query parameter.
- filters
List<Get
System Versions Filter> - is
Latest Boolean - If provided, return highest versions from each major version family.
- resource
Id String - If provided, filters the results for the specified resource Id.
- shape String
- If provided, filters the results for the given shape.
- compartment
Id string - The compartment OCID.
- gi
Version string - Specifies gi version query parameter.
- filters
Get
System Versions Filter[] - is
Latest boolean - If provided, return highest versions from each major version family.
- resource
Id string - If provided, filters the results for the specified resource Id.
- shape string
- If provided, filters the results for the given shape.
- compartment_
id str - The compartment OCID.
- gi_
version str - Specifies gi version query parameter.
- filters
Sequence[Get
System Versions Filter] - is_
latest bool - If provided, return highest versions from each major version family.
- resource_
id str - If provided, filters the results for the specified resource Id.
- shape str
- If provided, filters the results for the given shape.
- compartment
Id String - The compartment OCID.
- gi
Version String - Specifies gi version query parameter.
- filters List<Property Map>
- is
Latest Boolean - If provided, return highest versions from each major version family.
- resource
Id String - If provided, filters the results for the specified resource Id.
- shape String
- If provided, filters the results for the given shape.
getSystemVersions Result
The following output properties are available:
- Compartment
Id string - Gi
Version string - Grid Infrastructure version.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Version List<GetCollections System Versions System Version Collection> - The list of system_version_collection.
- Filters
List<Get
System Versions Filter> - Is
Latest bool - Resource
Id string - Shape string
- Exadata shape.
- Compartment
Id string - Gi
Version string - Grid Infrastructure version.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Version []GetCollections System Versions System Version Collection - The list of system_version_collection.
- Filters
[]Get
System Versions Filter - Is
Latest bool - Resource
Id string - Shape string
- Exadata shape.
- compartment
Id String - gi
Version String - Grid Infrastructure version.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Version List<GetCollections System Versions System Version Collection> - The list of system_version_collection.
- filters
List<Get
System Versions Filter> - is
Latest Boolean - resource
Id String - shape String
- Exadata shape.
- compartment
Id string - gi
Version string - Grid Infrastructure version.
- id string
- The provider-assigned unique ID for this managed resource.
- system
Version GetCollections System Versions System Version Collection[] - The list of system_version_collection.
- filters
Get
System Versions Filter[] - is
Latest boolean - resource
Id string - shape string
- Exadata shape.
- compartment_
id str - gi_
version str - Grid Infrastructure version.
- id str
- The provider-assigned unique ID for this managed resource.
- system_
version_ Sequence[Getcollections System Versions System Version Collection] - The list of system_version_collection.
- filters
Sequence[Get
System Versions Filter] - is_
latest bool - resource_
id str - shape str
- Exadata shape.
- compartment
Id String - gi
Version String - Grid Infrastructure version.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Version List<Property Map>Collections - The list of system_version_collection.
- filters List<Property Map>
- is
Latest Boolean - resource
Id String - shape String
- Exadata shape.
Supporting Types
GetSystemVersionsFilter
GetSystemVersionsSystemVersionCollection
- Items
List<Get
System Versions System Version Collection Item> - List of System versions.
- Items
[]Get
System Versions System Version Collection Item - List of System versions.
- items
List<Get
System Versions System Version Collection Item> - List of System versions.
- items
Get
System Versions System Version Collection Item[] - List of System versions.
- items
Sequence[Get
System Versions System Version Collection Item] - List of System versions.
- items List<Property Map>
- List of System versions.
GetSystemVersionsSystemVersionCollectionItem
- Gi
Version string - Specifies gi version query parameter.
- Shape string
- If provided, filters the results for the given shape.
- System
Versions List<string> - Compatible Exadata system versions for a given shape and GI version.
- Gi
Version string - Specifies gi version query parameter.
- Shape string
- If provided, filters the results for the given shape.
- System
Versions []string - Compatible Exadata system versions for a given shape and GI version.
- gi
Version String - Specifies gi version query parameter.
- shape String
- If provided, filters the results for the given shape.
- system
Versions List<String> - Compatible Exadata system versions for a given shape and GI version.
- gi
Version string - Specifies gi version query parameter.
- shape string
- If provided, filters the results for the given shape.
- system
Versions string[] - Compatible Exadata system versions for a given shape and GI version.
- gi_
version str - Specifies gi version query parameter.
- shape str
- If provided, filters the results for the given shape.
- system_
versions Sequence[str] - Compatible Exadata system versions for a given shape and GI version.
- gi
Version String - Specifies gi version query parameter.
- shape String
- If provided, filters the results for the given shape.
- system
Versions List<String> - Compatible Exadata system versions for a given shape and GI version.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
