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 the list of Cost Alert Subscriptions in Oracle Cloud Infrastructure Budget service.
Gets a list of Cost Alert Subscription in a compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCostAlertSubscriptions = oci.Budget.getCostAlertSubscriptions({
compartmentId: compartmentId,
name: costAlertSubscriptionName,
state: costAlertSubscriptionState,
});
import pulumi
import pulumi_oci as oci
test_cost_alert_subscriptions = oci.Budget.get_cost_alert_subscriptions(compartment_id=compartment_id,
name=cost_alert_subscription_name,
state=cost_alert_subscription_state)
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.GetCostAlertSubscriptions(ctx, &budget.GetCostAlertSubscriptionsArgs{
CompartmentId: compartmentId,
Name: pulumi.StringRef(costAlertSubscriptionName),
State: pulumi.StringRef(costAlertSubscriptionState),
}, 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 testCostAlertSubscriptions = Oci.Budget.GetCostAlertSubscriptions.Invoke(new()
{
CompartmentId = compartmentId,
Name = costAlertSubscriptionName,
State = costAlertSubscriptionState,
});
});
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.GetCostAlertSubscriptionsArgs;
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 testCostAlertSubscriptions = BudgetFunctions.getCostAlertSubscriptions(GetCostAlertSubscriptionsArgs.builder()
.compartmentId(compartmentId)
.name(costAlertSubscriptionName)
.state(costAlertSubscriptionState)
.build());
}
}
variables:
testCostAlertSubscriptions:
fn::invoke:
function: oci:Budget:getCostAlertSubscriptions
arguments:
compartmentId: ${compartmentId}
name: ${costAlertSubscriptionName}
state: ${costAlertSubscriptionState}
Using getCostAlertSubscriptions
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 getCostAlertSubscriptions(args: GetCostAlertSubscriptionsArgs, opts?: InvokeOptions): Promise<GetCostAlertSubscriptionsResult>
function getCostAlertSubscriptionsOutput(args: GetCostAlertSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetCostAlertSubscriptionsResult>def get_cost_alert_subscriptions(compartment_id: Optional[str] = None,
filters: Optional[Sequence[GetCostAlertSubscriptionsFilter]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostAlertSubscriptionsResult
def get_cost_alert_subscriptions_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCostAlertSubscriptionsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostAlertSubscriptionsResult]func GetCostAlertSubscriptions(ctx *Context, args *GetCostAlertSubscriptionsArgs, opts ...InvokeOption) (*GetCostAlertSubscriptionsResult, error)
func GetCostAlertSubscriptionsOutput(ctx *Context, args *GetCostAlertSubscriptionsOutputArgs, opts ...InvokeOption) GetCostAlertSubscriptionsResultOutput> Note: This function is named GetCostAlertSubscriptions in the Go SDK.
public static class GetCostAlertSubscriptions
{
public static Task<GetCostAlertSubscriptionsResult> InvokeAsync(GetCostAlertSubscriptionsArgs args, InvokeOptions? opts = null)
public static Output<GetCostAlertSubscriptionsResult> Invoke(GetCostAlertSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCostAlertSubscriptionsResult> getCostAlertSubscriptions(GetCostAlertSubscriptionsArgs args, InvokeOptions options)
public static Output<GetCostAlertSubscriptionsResult> getCostAlertSubscriptions(GetCostAlertSubscriptionsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Budget/getCostAlertSubscriptions:getCostAlertSubscriptions
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Filters
List<Get
Cost Alert Subscriptions Filter> - Name string
- Unique, non-changeable resource name.
- State string
- The current state of the cost alert subscription.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Filters
[]Get
Cost Alert Subscriptions Filter - Name string
- Unique, non-changeable resource name.
- State string
- The current state of the cost alert subscription.
- compartment
Id String - The ID of the compartment in which to list resources.
- filters
List<Get
Cost Alert Subscriptions Filter> - name String
- Unique, non-changeable resource name.
- state String
- The current state of the cost alert subscription.
- compartment
Id string - The ID of the compartment in which to list resources.
- filters
Get
Cost Alert Subscriptions Filter[] - name string
- Unique, non-changeable resource name.
- state string
- The current state of the cost alert subscription.
- compartment_
id str - The ID of the compartment in which to list resources.
- filters
Sequence[Get
Cost Alert Subscriptions Filter] - name str
- Unique, non-changeable resource name.
- state str
- The current state of the cost alert subscription.
- compartment
Id String - The ID of the compartment in which to list resources.
- filters List<Property Map>
- name String
- Unique, non-changeable resource name.
- state String
- The current state of the cost alert subscription.
getCostAlertSubscriptions Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment which hold the cost alert subscription resource.
- Cost
Alert List<GetSubscription Collections Cost Alert Subscriptions Cost Alert Subscription Collection> - The list of cost_alert_subscription_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Cost Alert Subscriptions Filter> - Name string
- The name of the cost alert subscription. Avoid entering confidential information.
- State string
- The current state of the cost alert subscription.
- Compartment
Id string - The OCID of the compartment which hold the cost alert subscription resource.
- Cost
Alert []GetSubscription Collections Cost Alert Subscriptions Cost Alert Subscription Collection - The list of cost_alert_subscription_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Cost Alert Subscriptions Filter - Name string
- The name of the cost alert subscription. Avoid entering confidential information.
- State string
- The current state of the cost alert subscription.
- compartment
Id String - The OCID of the compartment which hold the cost alert subscription resource.
- cost
Alert List<GetSubscription Collections Cost Alert Subscriptions Cost Alert Subscription Collection> - The list of cost_alert_subscription_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Cost Alert Subscriptions Filter> - name String
- The name of the cost alert subscription. Avoid entering confidential information.
- state String
- The current state of the cost alert subscription.
- compartment
Id string - The OCID of the compartment which hold the cost alert subscription resource.
- cost
Alert GetSubscription Collections Cost Alert Subscriptions Cost Alert Subscription Collection[] - The list of cost_alert_subscription_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Cost Alert Subscriptions Filter[] - name string
- The name of the cost alert subscription. Avoid entering confidential information.
- state string
- The current state of the cost alert subscription.
- compartment_
id str - The OCID of the compartment which hold the cost alert subscription resource.
- cost_
alert_ Sequence[Getsubscription_ collections Cost Alert Subscriptions Cost Alert Subscription Collection] - The list of cost_alert_subscription_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Cost Alert Subscriptions Filter] - name str
- The name of the cost alert subscription. Avoid entering confidential information.
- state str
- The current state of the cost alert subscription.
- compartment
Id String - The OCID of the compartment which hold the cost alert subscription resource.
- cost
Alert List<Property Map>Subscription Collections - The list of cost_alert_subscription_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- name String
- The name of the cost alert subscription. Avoid entering confidential information.
- state String
- The current state of the cost alert subscription.
Supporting Types
GetCostAlertSubscriptionsCostAlertSubscriptionCollection
GetCostAlertSubscriptionsCostAlertSubscriptionCollectionItem
- Channels string
- The notification channels string.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Cost
Anomaly stringMonitors - List of monitor identifiers
- 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"} - Description string
- The description of the cost alert subscription.
- 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 Alert Subscription.
- Name string
- Unique, non-changeable resource name.
- State string
- The current state of the cost alert subscription.
- 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"} - Time
Created string - The time that the cost alert subscription was created.
- Time
Updated string - The time that the cost alert subscription was updated.
- Channels string
- The notification channels string.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Cost
Anomaly stringMonitors - List of monitor identifiers
- 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"} - Description string
- The description of the cost alert subscription.
- 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 Alert Subscription.
- Name string
- Unique, non-changeable resource name.
- State string
- The current state of the cost alert subscription.
- 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"} - Time
Created string - The time that the cost alert subscription was created.
- Time
Updated string - The time that the cost alert subscription was updated.
- channels String
- The notification channels string.
- compartment
Id String - The ID of the compartment in which to list resources.
- cost
Anomaly StringMonitors - List of monitor identifiers
- 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"} - description String
- The description of the cost alert subscription.
- 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 Alert Subscription.
- name String
- Unique, non-changeable resource name.
- state String
- The current state of the cost alert subscription.
- 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"} - time
Created String - The time that the cost alert subscription was created.
- time
Updated String - The time that the cost alert subscription was updated.
- channels string
- The notification channels string.
- compartment
Id string - The ID of the compartment in which to list resources.
- cost
Anomaly stringMonitors - List of monitor identifiers
- {[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"} - description string
- The description of the cost alert subscription.
- {[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 Alert Subscription.
- name string
- Unique, non-changeable resource name.
- state string
- The current state of the cost alert subscription.
- {[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"} - time
Created string - The time that the cost alert subscription was created.
- time
Updated string - The time that the cost alert subscription was updated.
- channels str
- The notification channels string.
- compartment_
id str - The ID of the compartment in which to list resources.
- cost_
anomaly_ strmonitors - List of monitor identifiers
- 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"} - description str
- The description of the cost alert subscription.
- 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 Alert Subscription.
- name str
- Unique, non-changeable resource name.
- state str
- The current state of the cost alert subscription.
- 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"} - time_
created str - The time that the cost alert subscription was created.
- time_
updated str - The time that the cost alert subscription was updated.
- channels String
- The notification channels string.
- compartment
Id String - The ID of the compartment in which to list resources.
- cost
Anomaly StringMonitors - List of monitor identifiers
- 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"} - description String
- The description of the cost alert subscription.
- 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 Alert Subscription.
- name String
- Unique, non-changeable resource name.
- state String
- The current state of the cost alert subscription.
- 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"} - time
Created String - The time that the cost alert subscription was created.
- time
Updated String - The time that the cost alert subscription was updated.
GetCostAlertSubscriptionsFilter
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
