oci.Database.getInfrastructureTargetVersion
Explore with Pulumi AI
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testInfrastructureTargetVersion:
    fn::invoke:
      function: oci:Database:getInfrastructureTargetVersion
      arguments:
        compartmentId: ${compartmentId}
        targetResourceId: ${testTargetResource.id}
        targetResourceType: ${infrastructureTargetVersionTargetResourceType}
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>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]func GetInfrastructureTargetVersion(ctx *Context, args *GetInfrastructureTargetVersionArgs, opts ...InvokeOption) (*GetInfrastructureTargetVersionResult, error)
func GetInfrastructureTargetVersionOutput(ctx *Context, args *GetInfrastructureTargetVersionOutputArgs, opts ...InvokeOption) GetInfrastructureTargetVersionResultOutput> 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)
}public static CompletableFuture<GetInfrastructureTargetVersionResult> getInfrastructureTargetVersion(GetInfrastructureTargetVersionArgs args, InvokeOptions options)
public static Output<GetInfrastructureTargetVersionResult> getInfrastructureTargetVersion(GetInfrastructureTargetVersionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getInfrastructureTargetVersion:getInfrastructureTargetVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment OCID.
- TargetResource stringId 
- The target resource ID.
- TargetResource stringType 
- The type of the target resource.
- CompartmentId string
- The compartment OCID.
- TargetResource stringId 
- The target resource ID.
- TargetResource stringType 
- The type of the target resource.
- compartmentId String
- The compartment OCID.
- targetResource StringId 
- The target resource ID.
- targetResource StringType 
- The type of the target resource.
- compartmentId string
- The compartment OCID.
- targetResource stringId 
- The target resource ID.
- targetResource stringType 
- The type of the target resource.
- compartment_id str
- The compartment OCID.
- target_resource_ strid 
- The target resource ID.
- target_resource_ strtype 
- The type of the target resource.
- compartmentId String
- The compartment OCID.
- targetResource StringId 
- The target resource ID.
- targetResource StringType 
- 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.
- TargetDb List<string>Version History Entries 
- The history entry of the target system software version for the database server patching operation.
- TargetStorage List<string>Version History Entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- TargetResource stringId 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- TargetResource stringType 
- 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.
- TargetDb []stringVersion History Entries 
- The history entry of the target system software version for the database server patching operation.
- TargetStorage []stringVersion History Entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- TargetResource stringId 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- TargetResource stringType 
- 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.
- targetDb List<String>Version History Entries 
- The history entry of the target system software version for the database server patching operation.
- targetStorage List<String>Version History Entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- targetResource StringId 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- targetResource StringType 
- 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.
- targetDb string[]Version History Entries 
- The history entry of the target system software version for the database server patching operation.
- targetStorage string[]Version History Entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- targetResource stringId 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- targetResource stringType 
- 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_ Sequence[str]version_ history_ entries 
- The history entry of the target system software version for the database server patching operation.
- target_storage_ Sequence[str]version_ history_ entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- target_resource_ strid 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- target_resource_ strtype 
- 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.
- targetDb List<String>Version History Entries 
- The history entry of the target system software version for the database server patching operation.
- targetStorage List<String>Version History Entries 
- The history entry of the target storage cell system software version for the storage cell patching operation.
- targetResource StringId 
- The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- targetResource StringType 
- 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 ociTerraform Provider.