Viewing docs for Oracle Cloud Infrastructure v4.9.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.9.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
This data source provides the list of Occ Metric Alarms in Oracle Cloud Infrastructure Demand Signal service.
Gets a list of OccMetricAlarms.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccMetricAlarms = oci.DemandSignal.getOccMetricAlarms({
compartmentId: compartmentId,
displayName: occMetricAlarmDisplayName,
isActive: occMetricAlarmIsActive,
});
import pulumi
import pulumi_oci as oci
test_occ_metric_alarms = oci.DemandSignal.get_occ_metric_alarms(compartment_id=compartment_id,
display_name=occ_metric_alarm_display_name,
is_active=occ_metric_alarm_is_active)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/demandsignal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := demandsignal.GetOccMetricAlarms(ctx, &demandsignal.GetOccMetricAlarmsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(occMetricAlarmDisplayName),
IsActive: pulumi.BoolRef(occMetricAlarmIsActive),
}, 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 testOccMetricAlarms = Oci.DemandSignal.GetOccMetricAlarms.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = occMetricAlarmDisplayName,
IsActive = occMetricAlarmIsActive,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DemandSignal.DemandSignalFunctions;
import com.pulumi.oci.DemandSignal.inputs.GetOccMetricAlarmsArgs;
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 testOccMetricAlarms = DemandSignalFunctions.getOccMetricAlarms(GetOccMetricAlarmsArgs.builder()
.compartmentId(compartmentId)
.displayName(occMetricAlarmDisplayName)
.isActive(occMetricAlarmIsActive)
.build());
}
}
variables:
testOccMetricAlarms:
fn::invoke:
function: oci:DemandSignal:getOccMetricAlarms
arguments:
compartmentId: ${compartmentId}
displayName: ${occMetricAlarmDisplayName}
isActive: ${occMetricAlarmIsActive}
Using getOccMetricAlarms
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 getOccMetricAlarms(args: GetOccMetricAlarmsArgs, opts?: InvokeOptions): Promise<GetOccMetricAlarmsResult>
function getOccMetricAlarmsOutput(args: GetOccMetricAlarmsOutputArgs, opts?: InvokeOptions): Output<GetOccMetricAlarmsResult>def get_occ_metric_alarms(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetOccMetricAlarmsFilter]] = None,
is_active: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetOccMetricAlarmsResult
def get_occ_metric_alarms_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetOccMetricAlarmsFilterArgs]]]] = None,
is_active: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccMetricAlarmsResult]func GetOccMetricAlarms(ctx *Context, args *GetOccMetricAlarmsArgs, opts ...InvokeOption) (*GetOccMetricAlarmsResult, error)
func GetOccMetricAlarmsOutput(ctx *Context, args *GetOccMetricAlarmsOutputArgs, opts ...InvokeOption) GetOccMetricAlarmsResultOutput> Note: This function is named GetOccMetricAlarms in the Go SDK.
public static class GetOccMetricAlarms
{
public static Task<GetOccMetricAlarmsResult> InvokeAsync(GetOccMetricAlarmsArgs args, InvokeOptions? opts = null)
public static Output<GetOccMetricAlarmsResult> Invoke(GetOccMetricAlarmsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOccMetricAlarmsResult> getOccMetricAlarms(GetOccMetricAlarmsArgs args, InvokeOptions options)
public static Output<GetOccMetricAlarmsResult> getOccMetricAlarms(GetOccMetricAlarmsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DemandSignal/getOccMetricAlarms:getOccMetricAlarms
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Occ Metric Alarms Filter> - Is
Active bool - Filter to list only active or inactive alarms.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Occ Metric Alarms Filter - Is
Active bool - Filter to list only active or inactive alarms.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Occ Metric Alarms Filter> - is
Active Boolean - Filter to list only active or inactive alarms.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Occ Metric Alarms Filter[] - is
Active boolean - Filter to list only active or inactive alarms.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[Get
Occ Metric Alarms Filter] - is_
active bool - Filter to list only active or inactive alarms.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- is
Active Boolean - Filter to list only active or inactive alarms.
getOccMetricAlarms Result
The following output properties are available:
- Compartment
Id string - Compartment OCID in which the alarm is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Metric List<GetAlarm Collections Occ Metric Alarms Occ Metric Alarm Collection> - The list of occ_metric_alarm_collection.
- Display
Name string - Human-readable name for the alarm.
- Filters
List<Get
Occ Metric Alarms Filter> - Is
Active bool - Alarm active status.
- Compartment
Id string - Compartment OCID in which the alarm is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Occ
Metric []GetAlarm Collections Occ Metric Alarms Occ Metric Alarm Collection - The list of occ_metric_alarm_collection.
- Display
Name string - Human-readable name for the alarm.
- Filters
[]Get
Occ Metric Alarms Filter - Is
Active bool - Alarm active status.
- compartment
Id String - Compartment OCID in which the alarm is created.
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Metric List<GetAlarm Collections Occ Metric Alarms Occ Metric Alarm Collection> - The list of occ_metric_alarm_collection.
- display
Name String - Human-readable name for the alarm.
- filters
List<Get
Occ Metric Alarms Filter> - is
Active Boolean - Alarm active status.
- compartment
Id string - Compartment OCID in which the alarm is created.
- id string
- The provider-assigned unique ID for this managed resource.
- occ
Metric GetAlarm Collections Occ Metric Alarms Occ Metric Alarm Collection[] - The list of occ_metric_alarm_collection.
- display
Name string - Human-readable name for the alarm.
- filters
Get
Occ Metric Alarms Filter[] - is
Active boolean - Alarm active status.
- compartment_
id str - Compartment OCID in which the alarm is created.
- id str
- The provider-assigned unique ID for this managed resource.
- occ_
metric_ Sequence[Getalarm_ collections Occ Metric Alarms Occ Metric Alarm Collection] - The list of occ_metric_alarm_collection.
- display_
name str - Human-readable name for the alarm.
- filters
Sequence[Get
Occ Metric Alarms Filter] - is_
active bool - Alarm active status.
- compartment
Id String - Compartment OCID in which the alarm is created.
- id String
- The provider-assigned unique ID for this managed resource.
- occ
Metric List<Property Map>Alarm Collections - The list of occ_metric_alarm_collection.
- display
Name String - Human-readable name for the alarm.
- filters List<Property Map>
- is
Active Boolean - Alarm active status.
Supporting Types
GetOccMetricAlarmsFilter
GetOccMetricAlarmsOccMetricAlarmCollection
GetOccMetricAlarmsOccMetricAlarmCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- 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
- Optional description for the alarm.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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"} - Frequency string
- Frequency at which notifications should be sent.
- Id string
- Unique OCID for this alarm configuration.
- Is
Active bool - Filter to list only active or inactive alarms.
- Resource
Configurations List<GetOcc Metric Alarms Occ Metric Alarm Collection Item Resource Configuration> - Configuration for a given 'resource'
- State string
- The current lifecycle state of the resource.
- Subscribers List<string>
- List of topic OCIDs for notifications.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Threshold int
- Threshold at which alarm must be triggered.
- Threshold
Type string - Units in which threshold is being stored.
- Time
Created string - Creation timestamp (RFC 3339).
- Time
Updated string - Last update timestamp (RFC 3339).
- Compartment
Id string - The OCID of the compartment in which to list resources.
- 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
- Optional description for the alarm.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- 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"} - Frequency string
- Frequency at which notifications should be sent.
- Id string
- Unique OCID for this alarm configuration.
- Is
Active bool - Filter to list only active or inactive alarms.
- Resource
Configurations []GetOcc Metric Alarms Occ Metric Alarm Collection Item Resource Configuration - Configuration for a given 'resource'
- State string
- The current lifecycle state of the resource.
- Subscribers []string
- List of topic OCIDs for notifications.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Threshold int
- Threshold at which alarm must be triggered.
- Threshold
Type string - Units in which threshold is being stored.
- Time
Created string - Creation timestamp (RFC 3339).
- Time
Updated string - Last update timestamp (RFC 3339).
- compartment
Id String - The OCID of the compartment in which to list resources.
- 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
- Optional description for the alarm.
- display
Name String - A filter to return only resources that match the given display name exactly.
- 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"} - frequency String
- Frequency at which notifications should be sent.
- id String
- Unique OCID for this alarm configuration.
- is
Active Boolean - Filter to list only active or inactive alarms.
- resource
Configurations List<GetOcc Metric Alarms Occ Metric Alarm Collection Item Resource Configuration> - Configuration for a given 'resource'
- state String
- The current lifecycle state of the resource.
- subscribers List<String>
- List of topic OCIDs for notifications.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - threshold Integer
- Threshold at which alarm must be triggered.
- threshold
Type String - Units in which threshold is being stored.
- time
Created String - Creation timestamp (RFC 3339).
- time
Updated String - Last update timestamp (RFC 3339).
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[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
- Optional description for the alarm.
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[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"} - frequency string
- Frequency at which notifications should be sent.
- id string
- Unique OCID for this alarm configuration.
- is
Active boolean - Filter to list only active or inactive alarms.
- resource
Configurations GetOcc Metric Alarms Occ Metric Alarm Collection Item Resource Configuration[] - Configuration for a given 'resource'
- state string
- The current lifecycle state of the resource.
- subscribers string[]
- List of topic OCIDs for notifications.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - threshold number
- Threshold at which alarm must be triggered.
- threshold
Type string - Units in which threshold is being stored.
- time
Created string - Creation timestamp (RFC 3339).
- time
Updated string - Last update timestamp (RFC 3339).
- compartment_
id str - The OCID of the compartment in which to list resources.
- 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
- Optional description for the alarm.
- display_
name str - A filter to return only resources that match the given display name exactly.
- 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"} - frequency str
- Frequency at which notifications should be sent.
- id str
- Unique OCID for this alarm configuration.
- is_
active bool - Filter to list only active or inactive alarms.
- resource_
configurations Sequence[GetOcc Metric Alarms Occ Metric Alarm Collection Item Resource Configuration] - Configuration for a given 'resource'
- state str
- The current lifecycle state of the resource.
- subscribers Sequence[str]
- List of topic OCIDs for notifications.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - threshold int
- Threshold at which alarm must be triggered.
- threshold_
type str - Units in which threshold is being stored.
- time_
created str - Creation timestamp (RFC 3339).
- time_
updated str - Last update timestamp (RFC 3339).
- compartment
Id String - The OCID of the compartment in which to list resources.
- 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
- Optional description for the alarm.
- display
Name String - A filter to return only resources that match the given display name exactly.
- 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"} - frequency String
- Frequency at which notifications should be sent.
- id String
- Unique OCID for this alarm configuration.
- is
Active Boolean - Filter to list only active or inactive alarms.
- resource
Configurations List<Property Map> - Configuration for a given 'resource'
- state String
- The current lifecycle state of the resource.
- subscribers List<String>
- List of topic OCIDs for notifications.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - threshold Number
- Threshold at which alarm must be triggered.
- threshold
Type String - Units in which threshold is being stored.
- time
Created String - Creation timestamp (RFC 3339).
- time
Updated String - Last update timestamp (RFC 3339).
GetOccMetricAlarmsOccMetricAlarmCollectionItemResourceConfiguration
- Compute
Hw stringGeneration - The hardware generation of the compute resource.
- Hw
Generation string - The hardware generation of the Exadata system.
- Link
Role string - The role of the link in the network.
- Node
Type string - The type of node in the Exadata system.
- Occ
Metric stringAlarm Provider - The provider of the network service.
- Resource string
- Resources like COMPUTE, STORAGE, EXADATA etc.
- Shape string
- The shape of the compute instance.
- Storage
Type string - The type of storage resource.
- Usage
Type string - The type of usage for the resource.
- Compute
Hw stringGeneration - The hardware generation of the compute resource.
- Hw
Generation string - The hardware generation of the Exadata system.
- Link
Role string - The role of the link in the network.
- Node
Type string - The type of node in the Exadata system.
- Occ
Metric stringAlarm Provider - The provider of the network service.
- Resource string
- Resources like COMPUTE, STORAGE, EXADATA etc.
- Shape string
- The shape of the compute instance.
- Storage
Type string - The type of storage resource.
- Usage
Type string - The type of usage for the resource.
- compute
Hw StringGeneration - The hardware generation of the compute resource.
- hw
Generation String - The hardware generation of the Exadata system.
- link
Role String - The role of the link in the network.
- node
Type String - The type of node in the Exadata system.
- occ
Metric StringAlarm Provider - The provider of the network service.
- resource String
- Resources like COMPUTE, STORAGE, EXADATA etc.
- shape String
- The shape of the compute instance.
- storage
Type String - The type of storage resource.
- usage
Type String - The type of usage for the resource.
- compute
Hw stringGeneration - The hardware generation of the compute resource.
- hw
Generation string - The hardware generation of the Exadata system.
- link
Role string - The role of the link in the network.
- node
Type string - The type of node in the Exadata system.
- occ
Metric stringAlarm Provider - The provider of the network service.
- resource string
- Resources like COMPUTE, STORAGE, EXADATA etc.
- shape string
- The shape of the compute instance.
- storage
Type string - The type of storage resource.
- usage
Type string - The type of usage for the resource.
- compute_
hw_ strgeneration - The hardware generation of the compute resource.
- hw_
generation str - The hardware generation of the Exadata system.
- link_
role str - The role of the link in the network.
- node_
type str - The type of node in the Exadata system.
- occ_
metric_ stralarm_ provider - The provider of the network service.
- resource str
- Resources like COMPUTE, STORAGE, EXADATA etc.
- shape str
- The shape of the compute instance.
- storage_
type str - The type of storage resource.
- usage_
type str - The type of usage for the resource.
- compute
Hw StringGeneration - The hardware generation of the compute resource.
- hw
Generation String - The hardware generation of the Exadata system.
- link
Role String - The role of the link in the network.
- node
Type String - The type of node in the Exadata system.
- occ
Metric StringAlarm Provider - The provider of the network service.
- resource String
- Resources like COMPUTE, STORAGE, EXADATA etc.
- shape String
- The shape of the compute instance.
- storage
Type String - The type of storage resource.
- usage
Type String - The type of usage for the resource.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.9.0
published on Thursday, Apr 30, 2026 by Pulumi
published on Thursday, Apr 30, 2026 by Pulumi
