oci.Monitoring.getAlarmSuppressions
Explore with Pulumi AI
This data source provides the list of Alarm Suppressions in Oracle Cloud Infrastructure Monitoring service.
Lists alarm suppressions for the specified alarm. Only dimension-level suppressions are listed. Alarm-level suppressions are not listed.
For important limits information, see Limits on Monitoring.
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAlarmSuppressions = oci.Monitoring.getAlarmSuppressions({
alarmId: testAlarm.id,
displayName: alarmSuppressionDisplayName,
state: alarmSuppressionState,
});
import pulumi
import pulumi_oci as oci
test_alarm_suppressions = oci.Monitoring.get_alarm_suppressions(alarm_id=test_alarm["id"],
display_name=alarm_suppression_display_name,
state=alarm_suppression_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Monitoring.GetAlarmSuppressions(ctx, &monitoring.GetAlarmSuppressionsArgs{
AlarmId: testAlarm.Id,
DisplayName: pulumi.StringRef(alarmSuppressionDisplayName),
State: pulumi.StringRef(alarmSuppressionState),
}, 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 testAlarmSuppressions = Oci.Monitoring.GetAlarmSuppressions.Invoke(new()
{
AlarmId = testAlarm.Id,
DisplayName = alarmSuppressionDisplayName,
State = alarmSuppressionState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Monitoring.MonitoringFunctions;
import com.pulumi.oci.Monitoring.inputs.GetAlarmSuppressionsArgs;
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 testAlarmSuppressions = MonitoringFunctions.getAlarmSuppressions(GetAlarmSuppressionsArgs.builder()
.alarmId(testAlarm.id())
.displayName(alarmSuppressionDisplayName)
.state(alarmSuppressionState)
.build());
}
}
variables:
testAlarmSuppressions:
fn::invoke:
Function: oci:Monitoring:getAlarmSuppressions
Arguments:
alarmId: ${testAlarm.id}
displayName: ${alarmSuppressionDisplayName}
state: ${alarmSuppressionState}
Using getAlarmSuppressions
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 getAlarmSuppressions(args: GetAlarmSuppressionsArgs, opts?: InvokeOptions): Promise<GetAlarmSuppressionsResult>
function getAlarmSuppressionsOutput(args: GetAlarmSuppressionsOutputArgs, opts?: InvokeOptions): Output<GetAlarmSuppressionsResult>
def get_alarm_suppressions(alarm_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_monitoring.GetAlarmSuppressionsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmSuppressionsResult
def get_alarm_suppressions_output(alarm_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_monitoring.GetAlarmSuppressionsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmSuppressionsResult]
func GetAlarmSuppressions(ctx *Context, args *GetAlarmSuppressionsArgs, opts ...InvokeOption) (*GetAlarmSuppressionsResult, error)
func GetAlarmSuppressionsOutput(ctx *Context, args *GetAlarmSuppressionsOutputArgs, opts ...InvokeOption) GetAlarmSuppressionsResultOutput
> Note: This function is named GetAlarmSuppressions
in the Go SDK.
public static class GetAlarmSuppressions
{
public static Task<GetAlarmSuppressionsResult> InvokeAsync(GetAlarmSuppressionsArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmSuppressionsResult> Invoke(GetAlarmSuppressionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmSuppressionsResult> getAlarmSuppressions(GetAlarmSuppressionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Monitoring/getAlarmSuppressions:getAlarmSuppressions
arguments:
# arguments dictionary
The following arguments are supported:
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Filters
List<Get
Alarm Suppressions Filter> - State string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Filters
[]Get
Alarm Suppressions Filter - State string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- filters
List<Get
Alarm Suppressions Filter> - state String
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- filters
Get
Alarm Suppressions Filter[] - state string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- alarm_
id str - The OCID of the alarm that is the target of the alarm suppression.
- display_
name str - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- filters
Sequence[monitoring.
Get Alarm Suppressions Filter] - state str
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- filters List<Property Map>
- state String
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
getAlarmSuppressions Result
The following output properties are available:
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Alarm
Suppression List<GetCollections Alarm Suppressions Alarm Suppression Collection> - The list of alarm_suppression_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Alarm Suppressions Filter> - State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Alarm
Suppression []GetCollections Alarm Suppressions Alarm Suppression Collection - The list of alarm_suppression_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Alarm Suppressions Filter - State string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- alarm
Suppression List<GetCollections Alarm Suppressions Alarm Suppression Collection> - The list of alarm_suppression_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Alarm Suppressions Filter> - state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
- alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- alarm
Suppression GetCollections Alarm Suppressions Alarm Suppression Collection[] - The list of alarm_suppression_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Alarm Suppressions Filter[] - state string
- The current lifecycle state of the alarm suppression. Example:
DELETED
- alarm_
id str - The OCID of the alarm that is the target of the alarm suppression.
- alarm_
suppression_ Sequence[monitoring.collections Get Alarm Suppressions Alarm Suppression Collection] - The list of alarm_suppression_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[monitoring.
Get Alarm Suppressions Filter] - state str
- The current lifecycle state of the alarm suppression. Example:
DELETED
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- alarm
Suppression List<Property Map>Collections - The list of alarm_suppression_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- state String
- The current lifecycle state of the alarm suppression. Example:
DELETED
Supporting Types
GetAlarmSuppressionsAlarmSuppressionCollection
GetAlarmSuppressionsAlarmSuppressionCollectionItem
- Alarm
Suppression List<GetTargets Alarm Suppressions Alarm Suppression Collection Item Alarm Suppression Target> - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- Dictionary<string, object>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dimensions Dictionary<string, object>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Id string
- The OCID of the alarm suppression.
- State string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringUntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- Alarm
Suppression []GetTargets Alarm Suppressions Alarm Suppression Collection Item Alarm Suppression Target - The target of the alarm suppression.
- Compartment
Id string - The OCID of the compartment containing the alarm suppression.
- map[string]interface{}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- Description string
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dimensions map[string]interface{}
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- Display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- Id string
- The OCID of the alarm suppression.
- State string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- Time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- Time
Suppress stringUntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- Time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression List<GetTargets Alarm Suppressions Alarm Suppression Collection Item Alarm Suppression Target> - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<String,Object>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- dimensions Map<String,Object>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id String
- The OCID of the alarm suppression.
- state String
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringUntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression GetTargets Alarm Suppressions Alarm Suppression Collection Item Alarm Suppression Target[] - The target of the alarm suppression.
- compartment
Id string - The OCID of the compartment containing the alarm suppression.
- {[key: string]: any}
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description string
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- dimensions {[key: string]: any}
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- display
Name string - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id string
- The OCID of the alarm suppression.
- state string
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- time
Created string - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress stringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress stringUntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- time
Updated string - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm_
suppression_ Sequence[monitoring.targets Get Alarm Suppressions Alarm Suppression Collection Item Alarm Suppression Target] - The target of the alarm suppression.
- compartment_
id str - The OCID of the compartment containing the alarm suppression.
- Mapping[str, Any]
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description str
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- dimensions Mapping[str, Any]
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- display_
name str - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id str
- The OCID of the alarm suppression.
- state str
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- time_
created str - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time_
suppress_ strfrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time_
suppress_ struntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- time_
updated str - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
- alarm
Suppression List<Property Map>Targets - The target of the alarm suppression.
- compartment
Id String - The OCID of the compartment containing the alarm suppression.
- Map<Any>
- Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example:
{"Operations.CostCenter": "42"}
- description String
- Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
- dimensions Map<Any>
- Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example:
{"resourceId": "instance.region1.phx.exampleuniqueID"}
- display
Name String - A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"Department": "Finance"}
- id String
- The OCID of the alarm suppression.
- state String
- A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
- time
Created String - The date and time the alarm suppression was created. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringFrom - The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T01:02:29.600Z
- time
Suppress StringUntil - The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example:
2018-02-01T02:02:29.600Z
- time
Updated String - The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example:
2018-02-03T01:02:29.600Z
GetAlarmSuppressionsAlarmSuppressionCollectionItemAlarmSuppressionTarget
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Target
Type string - The type of the alarm suppression target.
- Alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- Target
Type string - The type of the alarm suppression target.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- target
Type String - The type of the alarm suppression target.
- alarm
Id string - The OCID of the alarm that is the target of the alarm suppression.
- target
Type string - The type of the alarm suppression target.
- alarm_
id str - The OCID of the alarm that is the target of the alarm suppression.
- target_
type str - The type of the alarm suppression target.
- alarm
Id String - The OCID of the alarm that is the target of the alarm suppression.
- target
Type String - The type of the alarm suppression target.
GetAlarmSuppressionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.