Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getAutonomousExadataInfrastructureOcpu
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
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/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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getAutonomousExadataInfrastructureOcpu:getAutonomousExadataInfrastructureOcpu
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Autonomous
Exadata stringInfrastructure Id  - The Autonomous Exadata Infrastructure OCID.
 
- Autonomous
Exadata stringInfrastructure Id  - The Autonomous Exadata Infrastructure OCID.
 
- autonomous
Exadata StringInfrastructure Id  - The Autonomous Exadata Infrastructure OCID.
 
- autonomous
Exadata stringInfrastructure Id  - The Autonomous Exadata Infrastructure OCID.
 
- autonomous_
exadata_ strinfrastructure_ id  - The Autonomous Exadata Infrastructure OCID.
 
- autonomous
Exadata StringInfrastructure Id  - The Autonomous Exadata Infrastructure OCID.
 
getAutonomousExadataInfrastructureOcpu Result
The following output properties are available:
- Autonomous
Exadata stringInfrastructure Id  - By
Workload List<GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type>  - The number of consumed OCPUs, by database workload type.
 - Consumed
Cpu double - The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Cpu double - The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
 
- Autonomous
Exadata stringInfrastructure Id  - By
Workload []GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type  - The number of consumed OCPUs, by database workload type.
 - Consumed
Cpu float64 - The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Total
Cpu float64 - The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
 
- autonomous
Exadata StringInfrastructure Id  - by
Workload List<GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type>  - The number of consumed OCPUs, by database workload type.
 - consumed
Cpu Double - The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - total
Cpu Double - The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
 
- autonomous
Exadata stringInfrastructure Id  - by
Workload GetTypes Autonomous Exadata Infrastructure Ocpu By Workload Type[]  - The number of consumed OCPUs, by database workload type.
 - consumed
Cpu number - The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - total
Cpu number - The total number of OCPUs in the Autonomous Exadata Infrastructure instance.
 
- autonomous_
exadata_ strinfrastructure_ id  - by_
workload_ Sequence[database.types Get 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.
 
- autonomous
Exadata StringInfrastructure Id  - by
Workload List<Property Map>Types  - The number of consumed OCPUs, by database workload type.
 - consumed
Cpu Number - The total number of consumed OCPUs in the Autonomous Exadata Infrastructure instance.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - total
Cpu 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. 
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi