1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getInfrastructureTargetVersion
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Database.getInfrastructureTargetVersion

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides details about a specific Infrastructure Target Version resource in Oracle Cloud Infrastructure Database service.

Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. Applies to Exadata Cloud@Customer and Exadata Cloud instances only.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInfrastructureTargetVersion = oci.Database.getInfrastructureTargetVersion({
    compartmentId: compartmentId,
    targetResourceId: testTargetResource.id,
    targetResourceType: infrastructureTargetVersionTargetResourceType,
});
Copy
import pulumi
import pulumi_oci as oci

test_infrastructure_target_version = oci.Database.get_infrastructure_target_version(compartment_id=compartment_id,
    target_resource_id=test_target_resource["id"],
    target_resource_type=infrastructure_target_version_target_resource_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetInfrastructureTargetVersion(ctx, &database.GetInfrastructureTargetVersionArgs{
			CompartmentId:      compartmentId,
			TargetResourceId:   pulumi.StringRef(testTargetResource.Id),
			TargetResourceType: pulumi.StringRef(infrastructureTargetVersionTargetResourceType),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInfrastructureTargetVersion = Oci.Database.GetInfrastructureTargetVersion.Invoke(new()
    {
        CompartmentId = compartmentId,
        TargetResourceId = testTargetResource.Id,
        TargetResourceType = infrastructureTargetVersionTargetResourceType,
    });

});
Copy
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.GetInfrastructureTargetVersionArgs;
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 testInfrastructureTargetVersion = DatabaseFunctions.getInfrastructureTargetVersion(GetInfrastructureTargetVersionArgs.builder()
            .compartmentId(compartmentId)
            .targetResourceId(testTargetResource.id())
            .targetResourceType(infrastructureTargetVersionTargetResourceType)
            .build());

    }
}
Copy
variables:
  testInfrastructureTargetVersion:
    fn::invoke:
      function: oci:Database:getInfrastructureTargetVersion
      arguments:
        compartmentId: ${compartmentId}
        targetResourceId: ${testTargetResource.id}
        targetResourceType: ${infrastructureTargetVersionTargetResourceType}
Copy

Using getInfrastructureTargetVersion

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 getInfrastructureTargetVersion(args: GetInfrastructureTargetVersionArgs, opts?: InvokeOptions): Promise<GetInfrastructureTargetVersionResult>
function getInfrastructureTargetVersionOutput(args: GetInfrastructureTargetVersionOutputArgs, opts?: InvokeOptions): Output<GetInfrastructureTargetVersionResult>
Copy
def get_infrastructure_target_version(compartment_id: Optional[str] = None,
                                      target_resource_id: Optional[str] = None,
                                      target_resource_type: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetInfrastructureTargetVersionResult
def get_infrastructure_target_version_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      target_resource_id: Optional[pulumi.Input[str]] = None,
                                      target_resource_type: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetInfrastructureTargetVersionResult]
Copy
func GetInfrastructureTargetVersion(ctx *Context, args *GetInfrastructureTargetVersionArgs, opts ...InvokeOption) (*GetInfrastructureTargetVersionResult, error)
func GetInfrastructureTargetVersionOutput(ctx *Context, args *GetInfrastructureTargetVersionOutputArgs, opts ...InvokeOption) GetInfrastructureTargetVersionResultOutput
Copy

> Note: This function is named GetInfrastructureTargetVersion in the Go SDK.

public static class GetInfrastructureTargetVersion 
{
    public static Task<GetInfrastructureTargetVersionResult> InvokeAsync(GetInfrastructureTargetVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetInfrastructureTargetVersionResult> Invoke(GetInfrastructureTargetVersionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInfrastructureTargetVersionResult> getInfrastructureTargetVersion(GetInfrastructureTargetVersionArgs args, InvokeOptions options)
public static Output<GetInfrastructureTargetVersionResult> getInfrastructureTargetVersion(GetInfrastructureTargetVersionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getInfrastructureTargetVersion:getInfrastructureTargetVersion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment OCID.
TargetResourceId string
The target resource ID.
TargetResourceType string
The type of the target resource.
CompartmentId This property is required. string
The compartment OCID.
TargetResourceId string
The target resource ID.
TargetResourceType string
The type of the target resource.
compartmentId This property is required. String
The compartment OCID.
targetResourceId String
The target resource ID.
targetResourceType String
The type of the target resource.
compartmentId This property is required. string
The compartment OCID.
targetResourceId string
The target resource ID.
targetResourceType string
The type of the target resource.
compartment_id This property is required. str
The compartment OCID.
target_resource_id str
The target resource ID.
target_resource_type str
The type of the target resource.
compartmentId This property is required. String
The compartment OCID.
targetResourceId String
The target resource ID.
targetResourceType String
The type of the target resource.

getInfrastructureTargetVersion Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
TargetDbVersionHistoryEntries List<string>
The history entry of the target system software version for the database server patching operation.
TargetStorageVersionHistoryEntries List<string>
The history entry of the target storage cell system software version for the storage cell patching operation.
TargetResourceId string
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
TargetResourceType string
The resource type of the target Exadata infrastructure resource that will receive the system software update.
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
TargetDbVersionHistoryEntries []string
The history entry of the target system software version for the database server patching operation.
TargetStorageVersionHistoryEntries []string
The history entry of the target storage cell system software version for the storage cell patching operation.
TargetResourceId string
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
TargetResourceType string
The resource type of the target Exadata infrastructure resource that will receive the system software update.
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
targetDbVersionHistoryEntries List<String>
The history entry of the target system software version for the database server patching operation.
targetStorageVersionHistoryEntries List<String>
The history entry of the target storage cell system software version for the storage cell patching operation.
targetResourceId String
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
targetResourceType String
The resource type of the target Exadata infrastructure resource that will receive the system software update.
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
targetDbVersionHistoryEntries string[]
The history entry of the target system software version for the database server patching operation.
targetStorageVersionHistoryEntries string[]
The history entry of the target storage cell system software version for the storage cell patching operation.
targetResourceId string
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
targetResourceType string
The resource type of the target Exadata infrastructure resource that will receive the system software update.
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
target_db_version_history_entries Sequence[str]
The history entry of the target system software version for the database server patching operation.
target_storage_version_history_entries Sequence[str]
The history entry of the target storage cell system software version for the storage cell patching operation.
target_resource_id str
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
target_resource_type str
The resource type of the target Exadata infrastructure resource that will receive the system software update.
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
targetDbVersionHistoryEntries List<String>
The history entry of the target system software version for the database server patching operation.
targetStorageVersionHistoryEntries List<String>
The history entry of the target storage cell system software version for the storage cell patching operation.
targetResourceId String
The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
targetResourceType String
The resource type of the target Exadata infrastructure resource that will receive the system software update.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi