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
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 = 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:
- 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_ 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.
- 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
oci
Terraform Provider.