pulumi-oci 2.12.0a1728593306__py3-none-any.whl → 2.12.0a1728642710__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. pulumi_oci/__init__.py +145 -0
  2. pulumi_oci/analytics/analytics_instance.py +54 -5
  3. pulumi_oci/analytics/get_analytics_instance.py +18 -4
  4. pulumi_oci/analytics/outputs.py +12 -1
  5. pulumi_oci/core/_inputs.py +648 -159
  6. pulumi_oci/core/cluster_network.py +7 -7
  7. pulumi_oci/core/get_instance.py +29 -1
  8. pulumi_oci/core/get_vcn.py +15 -1
  9. pulumi_oci/core/get_vnic.py +15 -1
  10. pulumi_oci/core/instance.py +87 -0
  11. pulumi_oci/core/instance_configuration.py +12 -0
  12. pulumi_oci/core/ipsec.py +183 -23
  13. pulumi_oci/core/network_security_group_security_rule.py +2 -2
  14. pulumi_oci/core/outputs.py +709 -107
  15. pulumi_oci/core/service_gateway.py +13 -7
  16. pulumi_oci/core/vcn.py +65 -23
  17. pulumi_oci/core/virtual_network.py +35 -1
  18. pulumi_oci/core/vnic_attachment.py +2 -0
  19. pulumi_oci/database/_inputs.py +905 -27
  20. pulumi_oci/database/autonomous_database.py +48 -28
  21. pulumi_oci/database/autonomous_database_backup.py +12 -12
  22. pulumi_oci/database/autonomous_exadata_infrastructure.py +2 -0
  23. pulumi_oci/database/autonomous_vm_cluster.py +2 -0
  24. pulumi_oci/database/backup.py +12 -12
  25. pulumi_oci/database/cloud_autonomous_vm_cluster.py +2 -0
  26. pulumi_oci/database/cloud_exadata_infrastructure.py +2 -0
  27. pulumi_oci/database/cloud_vm_cluster.py +71 -0
  28. pulumi_oci/database/database.py +15 -15
  29. pulumi_oci/database/database_upgrade.py +12 -12
  30. pulumi_oci/database/db_system.py +9 -9
  31. pulumi_oci/database/exadata_infrastructure.py +2 -0
  32. pulumi_oci/database/get_autonomous_container_database.py +1 -1
  33. pulumi_oci/database/get_autonomous_database.py +18 -4
  34. pulumi_oci/database/get_autonomous_database_backup.py +3 -3
  35. pulumi_oci/database/get_autonomous_databases.py +88 -5
  36. pulumi_oci/database/get_cloud_vm_cluster.py +15 -1
  37. pulumi_oci/database/get_database.py +3 -3
  38. pulumi_oci/database/get_pluggable_database.py +12 -1
  39. pulumi_oci/database/get_vm_cluster.py +15 -1
  40. pulumi_oci/database/outputs.py +1431 -74
  41. pulumi_oci/database/pluggable_database.py +34 -0
  42. pulumi_oci/database/vm_cluster.py +71 -0
  43. pulumi_oci/database/vm_cluster_add_virtual_network.py +28 -0
  44. pulumi_oci/database/vm_cluster_remove_virtual_machine.py +28 -0
  45. pulumi_oci/datasafe/__init__.py +12 -0
  46. pulumi_oci/datasafe/_inputs.py +441 -0
  47. pulumi_oci/datasafe/get_reports.py +23 -1
  48. pulumi_oci/datasafe/get_sql_collection.py +392 -0
  49. pulumi_oci/datasafe/get_sql_collection_analytics.py +309 -0
  50. pulumi_oci/datasafe/get_sql_collection_log_insights.py +207 -0
  51. pulumi_oci/datasafe/get_sql_collections.py +364 -0
  52. pulumi_oci/datasafe/get_sql_firewall_allowed_sql.py +337 -0
  53. pulumi_oci/datasafe/get_sql_firewall_allowed_sql_analytics.py +250 -0
  54. pulumi_oci/datasafe/get_sql_firewall_allowed_sqls.py +234 -0
  55. pulumi_oci/datasafe/get_sql_firewall_policies.py +386 -0
  56. pulumi_oci/datasafe/get_sql_firewall_policy.py +393 -0
  57. pulumi_oci/datasafe/get_sql_firewall_policy_analytics.py +305 -0
  58. pulumi_oci/datasafe/get_sql_firewall_violation_analytics.py +306 -0
  59. pulumi_oci/datasafe/get_sql_firewall_violations.py +208 -0
  60. pulumi_oci/datasafe/outputs.py +1808 -2
  61. pulumi_oci/desktops/_inputs.py +223 -7
  62. pulumi_oci/desktops/desktop_pool.py +186 -21
  63. pulumi_oci/desktops/get_desktop_pool.py +47 -5
  64. pulumi_oci/desktops/outputs.py +480 -19
  65. pulumi_oci/fleetappsmanagement/__init__.py +43 -0
  66. pulumi_oci/fleetappsmanagement/_inputs.py +2057 -0
  67. pulumi_oci/fleetappsmanagement/fleet.py +955 -0
  68. pulumi_oci/fleetappsmanagement/fleet_credential.py +615 -0
  69. pulumi_oci/fleetappsmanagement/fleet_property.py +585 -0
  70. pulumi_oci/fleetappsmanagement/fleet_resource.py +851 -0
  71. pulumi_oci/fleetappsmanagement/get_announcements.py +166 -0
  72. pulumi_oci/fleetappsmanagement/get_fleet.py +394 -0
  73. pulumi_oci/fleetappsmanagement/get_fleet_compliance_report.py +164 -0
  74. pulumi_oci/fleetappsmanagement/get_fleet_credential.py +273 -0
  75. pulumi_oci/fleetappsmanagement/get_fleet_credentials.py +240 -0
  76. pulumi_oci/fleetappsmanagement/get_fleet_products.py +232 -0
  77. pulumi_oci/fleetappsmanagement/get_fleet_properties.py +218 -0
  78. pulumi_oci/fleetappsmanagement/get_fleet_property.py +286 -0
  79. pulumi_oci/fleetappsmanagement/get_fleet_resource.py +398 -0
  80. pulumi_oci/fleetappsmanagement/get_fleet_resources.py +237 -0
  81. pulumi_oci/fleetappsmanagement/get_fleet_targets.py +232 -0
  82. pulumi_oci/fleetappsmanagement/get_fleets.py +284 -0
  83. pulumi_oci/fleetappsmanagement/get_inventory_resources.py +311 -0
  84. pulumi_oci/fleetappsmanagement/get_maintenance_window.py +365 -0
  85. pulumi_oci/fleetappsmanagement/get_maintenance_windows.py +199 -0
  86. pulumi_oci/fleetappsmanagement/get_onboarding_policies.py +123 -0
  87. pulumi_oci/fleetappsmanagement/get_onboardings.py +177 -0
  88. pulumi_oci/fleetappsmanagement/get_properties.py +221 -0
  89. pulumi_oci/fleetappsmanagement/get_property.py +323 -0
  90. pulumi_oci/fleetappsmanagement/get_runbook.py +377 -0
  91. pulumi_oci/fleetappsmanagement/get_runbooks.py +284 -0
  92. pulumi_oci/fleetappsmanagement/get_scheduler_definition.py +436 -0
  93. pulumi_oci/fleetappsmanagement/get_scheduler_definition_scheduled_fleets.py +185 -0
  94. pulumi_oci/fleetappsmanagement/get_scheduler_definitions.py +262 -0
  95. pulumi_oci/fleetappsmanagement/get_task_record.py +307 -0
  96. pulumi_oci/fleetappsmanagement/get_task_records.py +240 -0
  97. pulumi_oci/fleetappsmanagement/maintenance_window.py +935 -0
  98. pulumi_oci/fleetappsmanagement/onboarding.py +477 -0
  99. pulumi_oci/fleetappsmanagement/outputs.py +8128 -0
  100. pulumi_oci/fleetappsmanagement/property.py +697 -0
  101. pulumi_oci/fleetappsmanagement/scheduler_definition.py +1035 -0
  102. pulumi_oci/functions/get_fusion_environment_refresh_activity.py +15 -1
  103. pulumi_oci/functions/outputs.py +11 -0
  104. pulumi_oci/fusionapps/_inputs.py +21 -20
  105. pulumi_oci/fusionapps/fusion_environment.py +2 -2
  106. pulumi_oci/fusionapps/fusion_environment_admin_user.py +21 -22
  107. pulumi_oci/fusionapps/fusion_environment_refresh_activity.py +48 -51
  108. pulumi_oci/fusionapps/outputs.py +11 -10
  109. pulumi_oci/integration/__init__.py +1 -0
  110. pulumi_oci/integration/_inputs.py +289 -2
  111. pulumi_oci/integration/get_integration_instance.py +65 -1
  112. pulumi_oci/integration/integration_instance.py +172 -0
  113. pulumi_oci/integration/oracle_managed_custom_endpoint.py +307 -0
  114. pulumi_oci/integration/outputs.py +587 -19
  115. pulumi_oci/loadbalancer/_inputs.py +20 -0
  116. pulumi_oci/loadbalancer/listener.py +4 -2
  117. pulumi_oci/loadbalancer/outputs.py +16 -2
  118. pulumi_oci/monitoring/_inputs.py +137 -16
  119. pulumi_oci/monitoring/alarm_suppression.py +164 -35
  120. pulumi_oci/monitoring/get_alarm_statuses.py +5 -3
  121. pulumi_oci/monitoring/get_alarm_suppression.py +33 -3
  122. pulumi_oci/monitoring/get_alarm_suppressions.py +137 -14
  123. pulumi_oci/monitoring/outputs.py +291 -18
  124. pulumi_oci/mysql/mysql_db_system.py +7 -7
  125. pulumi_oci/objectstorage/__init__.py +3 -0
  126. pulumi_oci/objectstorage/_inputs.py +97 -0
  127. pulumi_oci/objectstorage/get_object_versions.py +6 -6
  128. pulumi_oci/objectstorage/get_objects.py +6 -6
  129. pulumi_oci/objectstorage/get_private_endpoint.py +263 -0
  130. pulumi_oci/objectstorage/get_private_endpoint_summaries.py +128 -0
  131. pulumi_oci/objectstorage/outputs.py +258 -0
  132. pulumi_oci/objectstorage/private_endpoint.py +630 -0
  133. pulumi_oci/objectstorage/storage_object.py +7 -7
  134. pulumi_oci/opsi/_inputs.py +268 -114
  135. pulumi_oci/opsi/database_insight.py +162 -21
  136. pulumi_oci/opsi/exadata_insight.py +44 -0
  137. pulumi_oci/opsi/get_database_insight.py +40 -1
  138. pulumi_oci/opsi/get_host_insights.py +2 -2
  139. pulumi_oci/opsi/host_insight.py +0 -48
  140. pulumi_oci/opsi/outputs.py +405 -109
  141. pulumi_oci/pulumi-plugin.json +1 -1
  142. pulumi_oci/securityattribute/__init__.py +15 -0
  143. pulumi_oci/securityattribute/_inputs.py +209 -0
  144. pulumi_oci/securityattribute/get_security_attribute.py +262 -0
  145. pulumi_oci/securityattribute/get_security_attribute_namespace.py +253 -0
  146. pulumi_oci/securityattribute/get_security_attribute_namespaces.py +210 -0
  147. pulumi_oci/securityattribute/get_security_attributes.py +169 -0
  148. pulumi_oci/securityattribute/outputs.py +466 -0
  149. pulumi_oci/securityattribute/security_attribute.py +588 -0
  150. pulumi_oci/securityattribute/security_attribute_namespace.py +609 -0
  151. pulumi_oci/stackmonitoring/__init__.py +5 -0
  152. pulumi_oci/stackmonitoring/_inputs.py +330 -0
  153. pulumi_oci/stackmonitoring/get_maintenance_window.py +254 -0
  154. pulumi_oci/stackmonitoring/get_maintenance_windows.py +210 -0
  155. pulumi_oci/stackmonitoring/maintenance_window.py +551 -0
  156. pulumi_oci/stackmonitoring/maintenance_windows_retry_failed_operation.py +217 -0
  157. pulumi_oci/stackmonitoring/maintenance_windows_stop.py +217 -0
  158. pulumi_oci/stackmonitoring/outputs.py +603 -0
  159. pulumi_oci/zpr/__init__.py +14 -0
  160. pulumi_oci/zpr/_inputs.py +79 -0
  161. pulumi_oci/zpr/configuration.py +516 -0
  162. pulumi_oci/zpr/get_configuration.py +230 -0
  163. pulumi_oci/zpr/get_zpr_policies.py +191 -0
  164. pulumi_oci/zpr/get_zpr_policy.py +264 -0
  165. pulumi_oci/zpr/outputs.py +203 -0
  166. pulumi_oci/zpr/zpr_policy.py +614 -0
  167. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/METADATA +1 -1
  168. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/RECORD +170 -95
  169. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/WHEEL +0 -0
  170. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/top_level.txt +0 -0
@@ -28,13 +28,19 @@ class GetAlarmSuppressionsResult:
28
28
  """
29
29
  A collection of values returned by getAlarmSuppressions.
30
30
  """
31
- def __init__(__self__, alarm_id=None, alarm_suppression_collections=None, display_name=None, filters=None, id=None, state=None):
31
+ def __init__(__self__, alarm_id=None, alarm_suppression_collections=None, compartment_id=None, compartment_id_in_subtree=None, display_name=None, filters=None, id=None, is_all_suppressions=None, level=None, state=None, target_type=None):
32
32
  if alarm_id and not isinstance(alarm_id, str):
33
33
  raise TypeError("Expected argument 'alarm_id' to be a str")
34
34
  pulumi.set(__self__, "alarm_id", alarm_id)
35
35
  if alarm_suppression_collections and not isinstance(alarm_suppression_collections, list):
36
36
  raise TypeError("Expected argument 'alarm_suppression_collections' to be a list")
37
37
  pulumi.set(__self__, "alarm_suppression_collections", alarm_suppression_collections)
38
+ if compartment_id and not isinstance(compartment_id, str):
39
+ raise TypeError("Expected argument 'compartment_id' to be a str")
40
+ pulumi.set(__self__, "compartment_id", compartment_id)
41
+ if compartment_id_in_subtree and not isinstance(compartment_id_in_subtree, bool):
42
+ raise TypeError("Expected argument 'compartment_id_in_subtree' to be a bool")
43
+ pulumi.set(__self__, "compartment_id_in_subtree", compartment_id_in_subtree)
38
44
  if display_name and not isinstance(display_name, str):
39
45
  raise TypeError("Expected argument 'display_name' to be a str")
40
46
  pulumi.set(__self__, "display_name", display_name)
@@ -44,13 +50,22 @@ class GetAlarmSuppressionsResult:
44
50
  if id and not isinstance(id, str):
45
51
  raise TypeError("Expected argument 'id' to be a str")
46
52
  pulumi.set(__self__, "id", id)
53
+ if is_all_suppressions and not isinstance(is_all_suppressions, bool):
54
+ raise TypeError("Expected argument 'is_all_suppressions' to be a bool")
55
+ pulumi.set(__self__, "is_all_suppressions", is_all_suppressions)
56
+ if level and not isinstance(level, str):
57
+ raise TypeError("Expected argument 'level' to be a str")
58
+ pulumi.set(__self__, "level", level)
47
59
  if state and not isinstance(state, str):
48
60
  raise TypeError("Expected argument 'state' to be a str")
49
61
  pulumi.set(__self__, "state", state)
62
+ if target_type and not isinstance(target_type, str):
63
+ raise TypeError("Expected argument 'target_type' to be a str")
64
+ pulumi.set(__self__, "target_type", target_type)
50
65
 
51
66
  @property
52
67
  @pulumi.getter(name="alarmId")
53
- def alarm_id(self) -> str:
68
+ def alarm_id(self) -> Optional[str]:
54
69
  """
55
70
  The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
56
71
  """
@@ -64,6 +79,22 @@ class GetAlarmSuppressionsResult:
64
79
  """
65
80
  return pulumi.get(self, "alarm_suppression_collections")
66
81
 
82
+ @property
83
+ @pulumi.getter(name="compartmentId")
84
+ def compartment_id(self) -> Optional[str]:
85
+ """
86
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression.
87
+ """
88
+ return pulumi.get(self, "compartment_id")
89
+
90
+ @property
91
+ @pulumi.getter(name="compartmentIdInSubtree")
92
+ def compartment_id_in_subtree(self) -> Optional[bool]:
93
+ """
94
+ When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
95
+ """
96
+ return pulumi.get(self, "compartment_id_in_subtree")
97
+
67
98
  @property
68
99
  @pulumi.getter(name="displayName")
69
100
  def display_name(self) -> Optional[str]:
@@ -85,6 +116,19 @@ class GetAlarmSuppressionsResult:
85
116
  """
86
117
  return pulumi.get(self, "id")
87
118
 
119
+ @property
120
+ @pulumi.getter(name="isAllSuppressions")
121
+ def is_all_suppressions(self) -> Optional[bool]:
122
+ return pulumi.get(self, "is_all_suppressions")
123
+
124
+ @property
125
+ @pulumi.getter
126
+ def level(self) -> Optional[str]:
127
+ """
128
+ The level of this alarm suppression. `ALARM` indicates a suppression of the entire alarm, regardless of dimension. `DIMENSION` indicates a suppression configured for specified dimensions.
129
+ """
130
+ return pulumi.get(self, "level")
131
+
88
132
  @property
89
133
  @pulumi.getter
90
134
  def state(self) -> Optional[str]:
@@ -93,6 +137,14 @@ class GetAlarmSuppressionsResult:
93
137
  """
94
138
  return pulumi.get(self, "state")
95
139
 
140
+ @property
141
+ @pulumi.getter(name="targetType")
142
+ def target_type(self) -> Optional[str]:
143
+ """
144
+ The type of the alarm suppression target.
145
+ """
146
+ return pulumi.get(self, "target_type")
147
+
96
148
 
97
149
  class AwaitableGetAlarmSuppressionsResult(GetAlarmSuppressionsResult):
98
150
  # pylint: disable=using-constant-test
@@ -102,22 +154,32 @@ class AwaitableGetAlarmSuppressionsResult(GetAlarmSuppressionsResult):
102
154
  return GetAlarmSuppressionsResult(
103
155
  alarm_id=self.alarm_id,
104
156
  alarm_suppression_collections=self.alarm_suppression_collections,
157
+ compartment_id=self.compartment_id,
158
+ compartment_id_in_subtree=self.compartment_id_in_subtree,
105
159
  display_name=self.display_name,
106
160
  filters=self.filters,
107
161
  id=self.id,
108
- state=self.state)
162
+ is_all_suppressions=self.is_all_suppressions,
163
+ level=self.level,
164
+ state=self.state,
165
+ target_type=self.target_type)
109
166
 
110
167
 
111
168
  def get_alarm_suppressions(alarm_id: Optional[str] = None,
169
+ compartment_id: Optional[str] = None,
170
+ compartment_id_in_subtree: Optional[bool] = None,
112
171
  display_name: Optional[str] = None,
113
172
  filters: Optional[Sequence[Union['GetAlarmSuppressionsFilterArgs', 'GetAlarmSuppressionsFilterArgsDict']]] = None,
173
+ is_all_suppressions: Optional[bool] = None,
174
+ level: Optional[str] = None,
114
175
  state: Optional[str] = None,
176
+ target_type: Optional[str] = None,
115
177
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlarmSuppressionsResult:
116
178
  """
117
179
  This data source provides the list of Alarm Suppressions in Oracle Cloud Infrastructure Monitoring service.
118
180
 
119
- Lists alarm suppressions for the specified alarm.
120
- Only dimension-level suppressions are listed. Alarm-level suppressions are not listed.
181
+ Lists alarm suppressions for the specified alarm. For more information, see
182
+ [Listing Alarm Suppressions](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-suppression.htm).
121
183
 
122
184
  For important limits information, see
123
185
  [Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
@@ -133,40 +195,73 @@ def get_alarm_suppressions(alarm_id: Optional[str] = None,
133
195
  import pulumi_oci as oci
134
196
 
135
197
  test_alarm_suppressions = oci.Monitoring.get_alarm_suppressions(alarm_id=test_alarm["id"],
198
+ compartment_id=compartment_id,
199
+ compartment_id_in_subtree=alarm_suppression_compartment_id_in_subtree,
136
200
  display_name=alarm_suppression_display_name,
137
- state=alarm_suppression_state)
201
+ is_all_suppressions=alarm_suppression_is_all_suppressions,
202
+ level=alarm_suppression_level,
203
+ state=alarm_suppression_state,
204
+ target_type=alarm_suppression_target_type)
138
205
  ```
139
206
 
140
207
 
141
208
  :param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
142
- :param str display_name: 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.
209
+ :param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching. Use the tenancy OCID to search in the root compartment.
210
+
211
+ If targetType is not specified, searches all suppressions defined under the compartment. If targetType is `COMPARTMENT`, searches suppressions in the specified compartment only.
212
+
213
+ Example: `ocid1.compartment.oc1..exampleuniqueID`
214
+ :param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
215
+ :param str display_name: A filter to return only resources that match the given display name exactly. Use this filter to list an alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
216
+ :param bool is_all_suppressions: Setting this parameter to true requires the query to specify the alarm (`alarmId`).
217
+
218
+ When true, lists all alarm suppressions that affect the specified alarm, including suppressions that target the corresponding compartment or tenancy. When false, lists only the alarm suppressions that target the specified alarm.
219
+
220
+ Default is false.
221
+ :param str level: The level of this alarm suppression. `ALARM` indicates a suppression of the entire alarm, regardless of dimension. `DIMENSION` indicates a suppression configured for specified dimensions.
143
222
  :param str state: 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.
223
+ :param str target_type: The target type to use when listing alarm suppressions. `ALARM` lists all suppression records for the specified alarm. `COMPARTMENT` lists all suppression records for the specified compartment or tenancy.
144
224
  """
145
225
  __args__ = dict()
146
226
  __args__['alarmId'] = alarm_id
227
+ __args__['compartmentId'] = compartment_id
228
+ __args__['compartmentIdInSubtree'] = compartment_id_in_subtree
147
229
  __args__['displayName'] = display_name
148
230
  __args__['filters'] = filters
231
+ __args__['isAllSuppressions'] = is_all_suppressions
232
+ __args__['level'] = level
149
233
  __args__['state'] = state
234
+ __args__['targetType'] = target_type
150
235
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
151
236
  __ret__ = pulumi.runtime.invoke('oci:Monitoring/getAlarmSuppressions:getAlarmSuppressions', __args__, opts=opts, typ=GetAlarmSuppressionsResult).value
152
237
 
153
238
  return AwaitableGetAlarmSuppressionsResult(
154
239
  alarm_id=pulumi.get(__ret__, 'alarm_id'),
155
240
  alarm_suppression_collections=pulumi.get(__ret__, 'alarm_suppression_collections'),
241
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
242
+ compartment_id_in_subtree=pulumi.get(__ret__, 'compartment_id_in_subtree'),
156
243
  display_name=pulumi.get(__ret__, 'display_name'),
157
244
  filters=pulumi.get(__ret__, 'filters'),
158
245
  id=pulumi.get(__ret__, 'id'),
159
- state=pulumi.get(__ret__, 'state'))
160
- def get_alarm_suppressions_output(alarm_id: Optional[pulumi.Input[str]] = None,
246
+ is_all_suppressions=pulumi.get(__ret__, 'is_all_suppressions'),
247
+ level=pulumi.get(__ret__, 'level'),
248
+ state=pulumi.get(__ret__, 'state'),
249
+ target_type=pulumi.get(__ret__, 'target_type'))
250
+ def get_alarm_suppressions_output(alarm_id: Optional[pulumi.Input[Optional[str]]] = None,
251
+ compartment_id: Optional[pulumi.Input[Optional[str]]] = None,
252
+ compartment_id_in_subtree: Optional[pulumi.Input[Optional[bool]]] = None,
161
253
  display_name: Optional[pulumi.Input[Optional[str]]] = None,
162
254
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAlarmSuppressionsFilterArgs', 'GetAlarmSuppressionsFilterArgsDict']]]]] = None,
255
+ is_all_suppressions: Optional[pulumi.Input[Optional[bool]]] = None,
256
+ level: Optional[pulumi.Input[Optional[str]]] = None,
163
257
  state: Optional[pulumi.Input[Optional[str]]] = None,
258
+ target_type: Optional[pulumi.Input[Optional[str]]] = None,
164
259
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlarmSuppressionsResult]:
165
260
  """
166
261
  This data source provides the list of Alarm Suppressions in Oracle Cloud Infrastructure Monitoring service.
167
262
 
168
- Lists alarm suppressions for the specified alarm.
169
- Only dimension-level suppressions are listed. Alarm-level suppressions are not listed.
263
+ Lists alarm suppressions for the specified alarm. For more information, see
264
+ [Listing Alarm Suppressions](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-suppression.htm).
170
265
 
171
266
  For important limits information, see
172
267
  [Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
@@ -182,26 +277,54 @@ def get_alarm_suppressions_output(alarm_id: Optional[pulumi.Input[str]] = None,
182
277
  import pulumi_oci as oci
183
278
 
184
279
  test_alarm_suppressions = oci.Monitoring.get_alarm_suppressions(alarm_id=test_alarm["id"],
280
+ compartment_id=compartment_id,
281
+ compartment_id_in_subtree=alarm_suppression_compartment_id_in_subtree,
185
282
  display_name=alarm_suppression_display_name,
186
- state=alarm_suppression_state)
283
+ is_all_suppressions=alarm_suppression_is_all_suppressions,
284
+ level=alarm_suppression_level,
285
+ state=alarm_suppression_state,
286
+ target_type=alarm_suppression_target_type)
187
287
  ```
188
288
 
189
289
 
190
290
  :param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
191
- :param str display_name: 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.
291
+ :param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching. Use the tenancy OCID to search in the root compartment.
292
+
293
+ If targetType is not specified, searches all suppressions defined under the compartment. If targetType is `COMPARTMENT`, searches suppressions in the specified compartment only.
294
+
295
+ Example: `ocid1.compartment.oc1..exampleuniqueID`
296
+ :param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
297
+ :param str display_name: A filter to return only resources that match the given display name exactly. Use this filter to list an alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
298
+ :param bool is_all_suppressions: Setting this parameter to true requires the query to specify the alarm (`alarmId`).
299
+
300
+ When true, lists all alarm suppressions that affect the specified alarm, including suppressions that target the corresponding compartment or tenancy. When false, lists only the alarm suppressions that target the specified alarm.
301
+
302
+ Default is false.
303
+ :param str level: The level of this alarm suppression. `ALARM` indicates a suppression of the entire alarm, regardless of dimension. `DIMENSION` indicates a suppression configured for specified dimensions.
192
304
  :param str state: 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.
305
+ :param str target_type: The target type to use when listing alarm suppressions. `ALARM` lists all suppression records for the specified alarm. `COMPARTMENT` lists all suppression records for the specified compartment or tenancy.
193
306
  """
194
307
  __args__ = dict()
195
308
  __args__['alarmId'] = alarm_id
309
+ __args__['compartmentId'] = compartment_id
310
+ __args__['compartmentIdInSubtree'] = compartment_id_in_subtree
196
311
  __args__['displayName'] = display_name
197
312
  __args__['filters'] = filters
313
+ __args__['isAllSuppressions'] = is_all_suppressions
314
+ __args__['level'] = level
198
315
  __args__['state'] = state
316
+ __args__['targetType'] = target_type
199
317
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
200
318
  __ret__ = pulumi.runtime.invoke_output('oci:Monitoring/getAlarmSuppressions:getAlarmSuppressions', __args__, opts=opts, typ=GetAlarmSuppressionsResult)
201
319
  return __ret__.apply(lambda __response__: GetAlarmSuppressionsResult(
202
320
  alarm_id=pulumi.get(__response__, 'alarm_id'),
203
321
  alarm_suppression_collections=pulumi.get(__response__, 'alarm_suppression_collections'),
322
+ compartment_id=pulumi.get(__response__, 'compartment_id'),
323
+ compartment_id_in_subtree=pulumi.get(__response__, 'compartment_id_in_subtree'),
204
324
  display_name=pulumi.get(__response__, 'display_name'),
205
325
  filters=pulumi.get(__response__, 'filters'),
206
326
  id=pulumi.get(__response__, 'id'),
207
- state=pulumi.get(__response__, 'state')))
327
+ is_all_suppressions=pulumi.get(__response__, 'is_all_suppressions'),
328
+ level=pulumi.get(__response__, 'level'),
329
+ state=pulumi.get(__response__, 'state'),
330
+ target_type=pulumi.get(__response__, 'target_type')))