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 details about a specific Occ Metric Alarm resource in Oracle Cloud Infrastructure Demand Signal service.
Retrieves the specified OccMetricAlarm resource based on its identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccMetricAlarm = oci.DemandSignal.getOccMetricAlarm({
occMetricAlarmId: testOccMetricAlarmOciDemandSignalOccMetricAlarm.id,
});
import pulumi
import pulumi_oci as oci
test_occ_metric_alarm = oci.DemandSignal.get_occ_metric_alarm(occ_metric_alarm_id=test_occ_metric_alarm_oci_demand_signal_occ_metric_alarm["id"])
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.GetOccMetricAlarm(ctx, &demandsignal.GetOccMetricAlarmArgs{
OccMetricAlarmId: testOccMetricAlarmOciDemandSignalOccMetricAlarm.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 testOccMetricAlarm = Oci.DemandSignal.GetOccMetricAlarm.Invoke(new()
{
OccMetricAlarmId = testOccMetricAlarmOciDemandSignalOccMetricAlarm.Id,
});
});
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.GetOccMetricAlarmArgs;
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 testOccMetricAlarm = DemandSignalFunctions.getOccMetricAlarm(GetOccMetricAlarmArgs.builder()
.occMetricAlarmId(testOccMetricAlarmOciDemandSignalOccMetricAlarm.id())
.build());
}
}
variables:
testOccMetricAlarm:
fn::invoke:
function: oci:DemandSignal:getOccMetricAlarm
arguments:
occMetricAlarmId: ${testOccMetricAlarmOciDemandSignalOccMetricAlarm.id}
Using getOccMetricAlarm
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 getOccMetricAlarm(args: GetOccMetricAlarmArgs, opts?: InvokeOptions): Promise<GetOccMetricAlarmResult>
function getOccMetricAlarmOutput(args: GetOccMetricAlarmOutputArgs, opts?: InvokeOptions): Output<GetOccMetricAlarmResult>def get_occ_metric_alarm(occ_metric_alarm_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccMetricAlarmResult
def get_occ_metric_alarm_output(occ_metric_alarm_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccMetricAlarmResult]func LookupOccMetricAlarm(ctx *Context, args *LookupOccMetricAlarmArgs, opts ...InvokeOption) (*LookupOccMetricAlarmResult, error)
func LookupOccMetricAlarmOutput(ctx *Context, args *LookupOccMetricAlarmOutputArgs, opts ...InvokeOption) LookupOccMetricAlarmResultOutput> Note: This function is named LookupOccMetricAlarm in the Go SDK.
public static class GetOccMetricAlarm
{
public static Task<GetOccMetricAlarmResult> InvokeAsync(GetOccMetricAlarmArgs args, InvokeOptions? opts = null)
public static Output<GetOccMetricAlarmResult> Invoke(GetOccMetricAlarmInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOccMetricAlarmResult> getOccMetricAlarm(GetOccMetricAlarmArgs args, InvokeOptions options)
public static Output<GetOccMetricAlarmResult> getOccMetricAlarm(GetOccMetricAlarmArgs args, InvokeOptions options)
fn::invoke:
function: oci:DemandSignal/getOccMetricAlarm:getOccMetricAlarm
arguments:
# arguments dictionaryThe following arguments are supported:
- Occ
Metric stringAlarm Id - The OCID of the OccMetricAlarm.
- Occ
Metric stringAlarm Id - The OCID of the OccMetricAlarm.
- occ
Metric StringAlarm Id - The OCID of the OccMetricAlarm.
- occ
Metric stringAlarm Id - The OCID of the OccMetricAlarm.
- occ_
metric_ stralarm_ id - The OCID of the OccMetricAlarm.
- occ
Metric StringAlarm Id - The OCID of the OccMetricAlarm.
getOccMetricAlarm Result
The following output properties are available:
- Compartment
Id string - Compartment OCID in which the alarm is created.
- 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 - Human-readable name for the alarm.
- 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 - Alarm active status.
- Occ
Metric stringAlarm Id - Resource
Configurations List<GetOcc Metric Alarm 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 - Compartment OCID in which the alarm is created.
- 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 - Human-readable name for the alarm.
- 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 - Alarm active status.
- Occ
Metric stringAlarm Id - Resource
Configurations []GetOcc Metric Alarm 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 - Compartment OCID in which the alarm is created.
- 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 - Human-readable name for the alarm.
- 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 - Alarm active status.
- occ
Metric StringAlarm Id - resource
Configurations List<GetOcc Metric Alarm 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 - Compartment OCID in which the alarm is created.
- {[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 - Human-readable name for the alarm.
- {[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 - Alarm active status.
- occ
Metric stringAlarm Id - resource
Configurations GetOcc Metric Alarm 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 - Compartment OCID in which the alarm is created.
- 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 - Human-readable name for the alarm.
- 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 - Alarm active status.
- occ_
metric_ stralarm_ id - resource_
configurations Sequence[GetOcc Metric Alarm 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 - Compartment OCID in which the alarm is created.
- 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 - Human-readable name for the alarm.
- 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 - Alarm active status.
- occ
Metric StringAlarm Id - 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).
Supporting Types
GetOccMetricAlarmResourceConfiguration
- 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
