Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
This data source provides details about a specific Cost Anomaly Event resource in Oracle Cloud Infrastructure Budget service.
Gets a CostAnomalyEvent by the identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCostAnomalyEvent = oci.Budget.getCostAnomalyEvent({
costAnomalyEventId: testCostAnomalyEventOciBudgetCostAnomalyEvent.id,
});
import pulumi
import pulumi_oci as oci
test_cost_anomaly_event = oci.Budget.get_cost_anomaly_event(cost_anomaly_event_id=test_cost_anomaly_event_oci_budget_cost_anomaly_event["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/budget"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := budget.GetCostAnomalyEvent(ctx, &budget.GetCostAnomalyEventArgs{
CostAnomalyEventId: testCostAnomalyEventOciBudgetCostAnomalyEvent.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 testCostAnomalyEvent = Oci.Budget.GetCostAnomalyEvent.Invoke(new()
{
CostAnomalyEventId = testCostAnomalyEventOciBudgetCostAnomalyEvent.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Budget.BudgetFunctions;
import com.pulumi.oci.Budget.inputs.GetCostAnomalyEventArgs;
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 testCostAnomalyEvent = BudgetFunctions.getCostAnomalyEvent(GetCostAnomalyEventArgs.builder()
.costAnomalyEventId(testCostAnomalyEventOciBudgetCostAnomalyEvent.id())
.build());
}
}
variables:
testCostAnomalyEvent:
fn::invoke:
function: oci:Budget:getCostAnomalyEvent
arguments:
costAnomalyEventId: ${testCostAnomalyEventOciBudgetCostAnomalyEvent.id}
Using getCostAnomalyEvent
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 getCostAnomalyEvent(args: GetCostAnomalyEventArgs, opts?: InvokeOptions): Promise<GetCostAnomalyEventResult>
function getCostAnomalyEventOutput(args: GetCostAnomalyEventOutputArgs, opts?: InvokeOptions): Output<GetCostAnomalyEventResult>def get_cost_anomaly_event(cost_anomaly_event_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostAnomalyEventResult
def get_cost_anomaly_event_output(cost_anomaly_event_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostAnomalyEventResult]func LookupCostAnomalyEvent(ctx *Context, args *LookupCostAnomalyEventArgs, opts ...InvokeOption) (*LookupCostAnomalyEventResult, error)
func LookupCostAnomalyEventOutput(ctx *Context, args *LookupCostAnomalyEventOutputArgs, opts ...InvokeOption) LookupCostAnomalyEventResultOutput> Note: This function is named LookupCostAnomalyEvent in the Go SDK.
public static class GetCostAnomalyEvent
{
public static Task<GetCostAnomalyEventResult> InvokeAsync(GetCostAnomalyEventArgs args, InvokeOptions? opts = null)
public static Output<GetCostAnomalyEventResult> Invoke(GetCostAnomalyEventInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCostAnomalyEventResult> getCostAnomalyEvent(GetCostAnomalyEventArgs args, InvokeOptions options)
public static Output<GetCostAnomalyEventResult> getCostAnomalyEvent(GetCostAnomalyEventArgs args, InvokeOptions options)
fn::invoke:
function: oci:Budget/getCostAnomalyEvent:getCostAnomalyEvent
arguments:
# arguments dictionaryThe following arguments are supported:
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
- cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- cost_
anomaly_ strevent_ id - The unique costAnomalyEventId OCID.
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
getCostAnomalyEvent Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringEvent Id - Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact double - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance doublePercentage - The cost variance percentage of the detected anomaly.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Feedback
Response string - The feedback response for the cost anomaly event.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the Cost Anomaly Event.
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Resource stringFilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- Time
Anomaly stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringEvent Id - Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact float64 - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance float64Percentage - The cost variance percentage of the detected anomaly.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Feedback
Response string - The feedback response for the cost anomaly event.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the Cost Anomaly Event.
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Resource stringFilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- Time
Anomaly stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringEvent Id - cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Double - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance DoublePercentage - The cost variance percentage of the detected anomaly.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - feedback
Response String - The feedback response for the cost anomaly event.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the Cost Anomaly Event.
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Resource StringFilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- time
Anomaly StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
- compartment
Id string - The OCID of the compartment.
- cost
Anomaly stringEvent Id - cost
Anomaly stringName - The name of the associated cost monitor.
- cost
Impact number - The cost impact of the detected anomaly.
- cost
Monitor stringId - The OCID of the associated cost monitor.
- cost
Monitor stringName - The name of the associated cost monitor.
- cost
Monitor stringType - Type of cost monitor
- cost
Variance numberPercentage - The cost variance percentage of the detected anomaly.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - feedback
Response string - The feedback response for the cost anomaly event.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The OCID of the Cost Anomaly Event.
- root
Cause stringDetail - The root cause details of the cost anomaly event.
- state string
- The current state of the cost anomaly event.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Resource stringFilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- time
Anomaly stringEvent Date - The event date of the anomaly event.
- time
Created string - The created time of the cost anomaly event.
- time
Updated string - The updated time of the cost anomaly event.
- compartment_
id str - The OCID of the compartment.
- cost_
anomaly_ strevent_ id - cost_
anomaly_ strname - The name of the associated cost monitor.
- cost_
impact float - The cost impact of the detected anomaly.
- cost_
monitor_ strid - The OCID of the associated cost monitor.
- cost_
monitor_ strname - The name of the associated cost monitor.
- cost_
monitor_ strtype - Type of cost monitor
- cost_
variance_ floatpercentage - The cost variance percentage of the detected anomaly.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - feedback_
response str - The feedback response for the cost anomaly event.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The OCID of the Cost Anomaly Event.
- root_
cause_ strdetail - The root cause details of the cost anomaly event.
- state str
- The current state of the cost anomaly event.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
resource_ strfilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- time_
anomaly_ strevent_ date - The event date of the anomaly event.
- time_
created str - The created time of the cost anomaly event.
- time_
updated str - The updated time of the cost anomaly event.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringEvent Id - cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Number - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance NumberPercentage - The cost variance percentage of the detected anomaly.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - feedback
Response String - The feedback response for the cost anomaly event.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the Cost Anomaly Event.
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Resource StringFilter - The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
- time
Anomaly StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
