Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getAutonomousExadataInfrastructureOcpu
Explore with Pulumi AI
This data source provides details about a specific Autonomous Exadata Infrastructure Ocpu resource in Oracle Cloud Infrastructure Database service.
Gets details of the available and consumed OCPUs for the specified Autonomous Exadata Infrastructure resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousExadataInfrastructureOcpu = oci.Database.getAutonomousExadataInfrastructureOcpu({
    autonomousExadataInfrastructureId: testAutonomousExadataInfrastructure.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_exadata_infrastructure_ocpu = oci.Database.get_autonomous_exadata_infrastructure_ocpu(autonomous_exadata_infrastructure_id=test_autonomous_exadata_infrastructure["id"])
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.GetAutonomousExadataInfrastructureOcpu(ctx, &database.GetAutonomousExadataInfrastructureOcpuArgs{
			AutonomousExadataInfrastructureId: testAutonomousExadataInfrastructure.Id,
		}, 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 testAutonomousExadataInfrastructureOcpu = Oci.Database.GetAutonomousExadataInfrastructureOcpu.Invoke(new()
    {
        AutonomousExadataInfrastructureId = testAutonomousExadataInfrastructure.Id,
    });
});
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.GetAutonomousExadataInfrastructureOcpuArgs;
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 testAutonomousExadataInfrastructureOcpu = DatabaseFunctions.getAutonomousExadataInfrastructureOcpu(GetAutonomousExadataInfrastructureOcpuArgs.builder()
            .autonomousExadataInfrastructureId(testAutonomousExadataInfrastructure.id())
            .build());
    }
}
variables:
  testAutonomousExadataInfrastructureOcpu:
    fn::invoke:
      function: oci:Database:getAutonomousExadataInfrastructureOcpu
      arguments:
        autonomousExadataInfrastructureId: ${testAutonomousExadataInfrastructure.id}
Using getAutonomousExadataInfrastructureOcpu
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 getAutonomousExadataInfrastructureOcpu(args: GetAutonomousExadataInfrastructureOcpuArgs, opts?: InvokeOptions): Promise<GetAutonomousExadataInfrastructureOcpuResult>
function getAutonomousExadataInfrastructureOcpuOutput(args: GetAutonomousExadataInfrastructureOcpuOutputArgs, opts?: InvokeOptions): Output<GetAutonomousExadataInfrastructureOcpuResult>def get_autonomous_exadata_infrastructure_ocpu(autonomous_exadata_infrastructure_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetAutonomousExadataInfrastructureOcpuResult
def get_autonomous_exadata_infrastructure_ocpu_output(autonomous_exadata_infrastructure_id: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousExadataInfrastructureOcpuResult]func GetAutonomousExadataInfrastructureOcpu(ctx *Context, args *GetAutonomousExadataInfrastructureOcpuArgs, opts ...InvokeOption) (*GetAutonomousExadataInfrastructureOcpuResult, error)
func GetAutonomousExadataInfrastructureOcpuOutput(ctx *Context, args *GetAutonomousExadataInfrastructureOcpuOutputArgs, opts ...InvokeOption) GetAutonomousExadataInfrastructureOcpuResultOutput> Note: This function is named GetAutonomousExadataInfrastructureOcpu in the Go SDK.
public static class GetAutonomousExadataInfrastructureOcpu 
{
    public static Task<GetAutonomousExadataInfrastructureOcpuResult> InvokeAsync(GetAutonomousExadataInfrastructureOcpuArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousExadataInfrastructureOcpuResult> Invoke(GetAutonomousExadataInfrastructureOcpuInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousExadataInfrastructureOcpuResult> getAutonomousExadataInfrastructureOcpu(GetAutonomousExadataInfrastructureOcpuArgs args, InvokeOptions options)
public static Output<GetAutonomousExadataInfrastructureOcpuResult> getAutonomousExadataInfrastructureOcpu(GetAutonomousExadataInfrastructureOcpuArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousExadataInfrastructureOcpu:getAutonomousExadataInfrastructureOcpu
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AutonomousExadata stringInfrastructure Id 
- The Autonomous Exadata Infrastructure OCID.
- AutonomousExadata stringInfrastructure Id 
- The Autonomous Exadata Infrastructure OCID.
- autonomousExadata StringInfrastructure Id 
- The Autonomous Exadata Infrastructure OCID.
- autonomousExadata stringInfrastructure Id 
- The Autonomous Exadata Infrastructure OCID.
- autonomous_exadata_ strinfrastructure_ id 
- The Autonomous Exadata Infrastructure OCID.
- autonomousExadata StringInfrastructure Id 
- The Autonomous Exadata Infrastructure OCID.
getAutonomousExadataInfrastructureOcpu Result
The following output properties are available:
- AutonomousExadata stringInfrastructure Id 
- ByWorkload List<GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type> 
- The number of consumed OCPUs, by database workload type.
- ConsumedCpu double
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCpu double
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
- AutonomousExadata stringInfrastructure Id 
- ByWorkload []GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type 
- The number of consumed OCPUs, by database workload type.
- ConsumedCpu float64
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCpu float64
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
- autonomousExadata StringInfrastructure Id 
- byWorkload List<GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type> 
- The number of consumed OCPUs, by database workload type.
- consumedCpu Double
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCpu Double
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
- autonomousExadata stringInfrastructure Id 
- byWorkload GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type[] 
- The number of consumed OCPUs, by database workload type.
- consumedCpu number
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCpu number
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
- autonomous_exadata_ strinfrastructure_ id 
- by_workload_ Sequence[Gettypes Autonomous Exadata Infrastructure Ocpu By Workload Type] 
- The number of consumed OCPUs, by database workload type.
- consumed_cpu float
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- id str
- The provider-assigned unique ID for this managed resource.
- total_cpu float
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
- autonomousExadata StringInfrastructure Id 
- byWorkload List<Property Map>Types 
- The number of consumed OCPUs, by database workload type.
- consumedCpu Number
- The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCpu Number
- The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
Supporting Types
GetAutonomousExadataInfrastructureOcpuByWorkloadType       
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.