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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getInfrastructureTargetVersion:getInfrastructureTargetVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment OCID.
- Target
Resource stringId - The target resource ID.
- Target
Resource stringType - The type of the target resource.
- Compartment
Id string - The compartment OCID.
- Target
Resource stringId - The target resource ID.
- Target
Resource stringType - The type of the target resource.
- compartment
Id String - The compartment OCID.
- target
Resource StringId - The target resource ID.
- target
Resource StringType - The type of the target resource.
- compartment
Id string - The compartment OCID.
- target
Resource stringId - The target resource ID.
- target
Resource 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.
- compartment
Id String - The compartment OCID.
- target
Resource StringId - The target resource ID.
- target
Resource StringType - The type of the target resource.
getInfrastructureTargetVersion Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Target
Db List<string>Version History Entries - The history entry of the target system software version for the database server patching operation.
- Target
Storage List<string>Version History Entries - The history entry of the target storage cell system software version for the storage cell patching operation.
- Target
Resource stringId - The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- Target
Resource stringType - The resource type of the target Exadata infrastructure resource that will receive the system software update.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Target
Db []stringVersion History Entries - The history entry of the target system software version for the database server patching operation.
- Target
Storage []stringVersion History Entries - The history entry of the target storage cell system software version for the storage cell patching operation.
- Target
Resource stringId - The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- Target
Resource stringType - The resource type of the target Exadata infrastructure resource that will receive the system software update.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- target
Db List<String>Version History Entries - The history entry of the target system software version for the database server patching operation.
- target
Storage List<String>Version History Entries - The history entry of the target storage cell system software version for the storage cell patching operation.
- target
Resource StringId - The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- target
Resource StringType - The resource type of the target Exadata infrastructure resource that will receive the system software update.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- target
Db string[]Version History Entries - The history entry of the target system software version for the database server patching operation.
- target
Storage string[]Version History Entries - The history entry of the target storage cell system software version for the storage cell patching operation.
- target
Resource stringId - The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- target
Resource 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.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- target
Db List<String>Version History Entries - The history entry of the target system software version for the database server patching operation.
- target
Storage List<String>Version History Entries - The history entry of the target storage cell system software version for the storage cell patching operation.
- target
Resource StringId - The OCID of the target Exadata Infrastructure resource that will receive the maintenance update.
- target
Resource 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
oci
Terraform Provider.