Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getAutonomousExadataInfrastructureOcpu

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAutonomousExadataInfrastructureOcpu = Oci.Database.GetAutonomousExadataInfrastructureOcpu.Invoke(new()
    {
        AutonomousExadataInfrastructureId = oci_database_autonomous_exadata_infrastructure.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: oci_database_autonomous_exadata_infrastructure.Test_autonomous_exadata_infrastructure.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_database_autonomous_exadata_infrastructure.test_autonomous_exadata_infrastructure().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_autonomous_exadata_infrastructure_ocpu = oci.Database.get_autonomous_exadata_infrastructure_ocpu(autonomous_exadata_infrastructure_id=oci_database_autonomous_exadata_infrastructure["test_autonomous_exadata_infrastructure"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutonomousExadataInfrastructureOcpu = oci.Database.getAutonomousExadataInfrastructureOcpu({
    autonomousExadataInfrastructureId: oci_database_autonomous_exadata_infrastructure.test_autonomous_exadata_infrastructure.id,
});
variables:
  testAutonomousExadataInfrastructureOcpu:
    Fn::Invoke:
      Function: oci:Database:getAutonomousExadataInfrastructureOcpu
      Arguments:
        autonomousExadataInfrastructureId: ${oci_database_autonomous_exadata_infrastructure.test_autonomous_exadata_infrastructure.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 dictionary

The following arguments are supported:

AutonomousExadataInfrastructureId string

The Autonomous Exadata Infrastructure OCID.

AutonomousExadataInfrastructureId string

The Autonomous Exadata Infrastructure OCID.

autonomousExadataInfrastructureId String

The Autonomous Exadata Infrastructure OCID.

autonomousExadataInfrastructureId string

The Autonomous Exadata Infrastructure OCID.

autonomous_exadata_infrastructure_id str

The Autonomous Exadata Infrastructure OCID.

autonomousExadataInfrastructureId String

The Autonomous Exadata Infrastructure OCID.

getAutonomousExadataInfrastructureOcpu Result

The following output properties are available:

AutonomousExadataInfrastructureId string
ByWorkloadTypes List<GetAutonomousExadataInfrastructureOcpuByWorkloadType>

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.

AutonomousExadataInfrastructureId string
ByWorkloadTypes []GetAutonomousExadataInfrastructureOcpuByWorkloadType

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.

autonomousExadataInfrastructureId String
byWorkloadTypes List<GetAutonomousExadataInfrastructureOcpuByWorkloadType>

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.

autonomousExadataInfrastructureId string
byWorkloadTypes GetAutonomousExadataInfrastructureOcpuByWorkloadType[]

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_infrastructure_id str
by_workload_types GetAutonomousExadataInfrastructureOcpuByWorkloadType]

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.

autonomousExadataInfrastructureId String
byWorkloadTypes List<Property Map>

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

Adw double

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

Atp double

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

Adw float64

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

Atp float64

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

adw Double

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

atp Double

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

adw number

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

atp number

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

adw float

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

atp float

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

adw Number

The total number of OCPU cores in use for Autonomous Data Warehouse databases in the infrastructure instance.

atp Number

The total number of OCPU cores in use for Autonomous Transaction Processing databases in the infrastructure instance.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.