pulumi-oci 2.25.0a1740032973__py3-none-any.whl → 2.26.0__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.
- pulumi_oci/__init__.py +102 -0
- pulumi_oci/config/__init__.pyi +2 -0
- pulumi_oci/config/vars.py +4 -0
- pulumi_oci/containerengine/_inputs.py +74 -35
- pulumi_oci/containerengine/cluster.py +4 -0
- pulumi_oci/containerengine/container_instance.py +2 -4
- pulumi_oci/containerengine/outputs.py +180 -21
- pulumi_oci/containerinstances/outputs.py +0 -14
- pulumi_oci/core/_inputs.py +21 -33
- pulumi_oci/core/outputs.py +13 -21
- pulumi_oci/database/__init__.py +1 -0
- pulumi_oci/database/_inputs.py +1246 -57
- pulumi_oci/database/application_vip.py +59 -10
- pulumi_oci/database/autonomous_container_database.py +92 -0
- pulumi_oci/database/autonomous_database.py +90 -22
- pulumi_oci/database/backup.py +153 -5
- pulumi_oci/database/backup_destination.py +84 -0
- pulumi_oci/database/cloud_exadata_infrastructure.py +126 -0
- pulumi_oci/database/cloud_vm_cluster.py +163 -30
- pulumi_oci/database/data_guard_association.py +49 -0
- pulumi_oci/database/db_node.py +64 -8
- pulumi_oci/database/db_system.py +111 -8
- pulumi_oci/database/exadata_infrastructure.py +157 -3
- pulumi_oci/database/exadata_infrastructure_configure_exascale_management.py +1615 -0
- pulumi_oci/database/exadb_vm_cluster.py +84 -7
- pulumi_oci/database/exascale_db_storage_vault.py +147 -0
- pulumi_oci/database/external_container_database.py +4 -4
- pulumi_oci/database/external_non_container_database.py +4 -4
- pulumi_oci/database/external_pluggable_database.py +4 -4
- pulumi_oci/database/get_application_vip.py +16 -2
- pulumi_oci/database/get_autonomous_container_database.py +43 -1
- pulumi_oci/database/get_autonomous_database.py +29 -1
- pulumi_oci/database/get_autonomous_databases.py +0 -26
- pulumi_oci/database/get_backup_destination.py +43 -1
- pulumi_oci/database/get_backups.py +136 -10
- pulumi_oci/database/get_cloud_exadata_infrastructure.py +43 -1
- pulumi_oci/database/get_cloud_vm_cluster.py +59 -3
- pulumi_oci/database/get_cloud_vm_clusters.py +28 -6
- pulumi_oci/database/get_data_guard_association.py +12 -1
- pulumi_oci/database/get_database_software_images.py +20 -1
- pulumi_oci/database/get_db_node.py +31 -4
- pulumi_oci/database/get_db_server.py +15 -1
- pulumi_oci/database/get_exadata_infrastructure.py +57 -1
- pulumi_oci/database/get_exadb_vm_cluster.py +29 -1
- pulumi_oci/database/get_exadb_vm_clusters.py +25 -3
- pulumi_oci/database/get_exascale_db_storage_vault.py +43 -1
- pulumi_oci/database/get_exascale_db_storage_vaults.py +47 -3
- pulumi_oci/database/get_external_container_database.py +1 -1
- pulumi_oci/database/get_external_non_container_database.py +1 -1
- pulumi_oci/database/get_external_pluggable_database.py +1 -1
- pulumi_oci/database/get_flex_components.py +28 -6
- pulumi_oci/database/get_maintenance_runs.py +20 -1
- pulumi_oci/database/get_vm_cluster.py +60 -4
- pulumi_oci/database/get_vm_clusters.py +25 -3
- pulumi_oci/database/outputs.py +2260 -87
- pulumi_oci/database/pluggable_database.py +13 -13
- pulumi_oci/database/vm_cluster.py +172 -18
- pulumi_oci/database/vm_cluster_add_virtual_network.py +114 -2
- pulumi_oci/database/vm_cluster_remove_virtual_machine.py +114 -2
- pulumi_oci/datasafe/__init__.py +7 -0
- pulumi_oci/datasafe/_inputs.py +301 -0
- pulumi_oci/datasafe/discovery_mod.py +49 -0
- pulumi_oci/datasafe/get_discovery_job.py +15 -1
- pulumi_oci/datasafe/get_masking_report.py +46 -4
- pulumi_oci/datasafe/get_masking_report_masking_errors.py +166 -0
- pulumi_oci/datasafe/get_security_assessment_finding.py +31 -1
- pulumi_oci/datasafe/get_security_assessment_findings.py +43 -3
- pulumi_oci/datasafe/get_sensitive_column_analytics.py +370 -0
- pulumi_oci/datasafe/get_sensitive_data_model.py +15 -1
- pulumi_oci/datasafe/get_sensitive_type_group.py +253 -0
- pulumi_oci/datasafe/get_sensitive_type_group_grouped_sensitive_types.py +166 -0
- pulumi_oci/datasafe/get_sensitive_type_groups.py +294 -0
- pulumi_oci/datasafe/outputs.py +676 -3
- pulumi_oci/datasafe/sensitive_data_model.py +49 -0
- pulumi_oci/datasafe/sensitive_type_group.py +563 -0
- pulumi_oci/datasafe/sensitive_type_group_grouped_sensitive_type.py +287 -0
- pulumi_oci/datascience/__init__.py +4 -0
- pulumi_oci/datascience/_inputs.py +1160 -41
- pulumi_oci/datascience/get_model.py +29 -1
- pulumi_oci/datascience/get_model_custom_metadata_artifact_content.py +151 -0
- pulumi_oci/datascience/get_model_defined_metadata_artifact_content.py +151 -0
- pulumi_oci/datascience/get_model_version_set.py +15 -1
- pulumi_oci/datascience/get_model_version_sets.py +25 -3
- pulumi_oci/datascience/get_models.py +25 -3
- pulumi_oci/datascience/get_pipeline.py +15 -1
- pulumi_oci/datascience/model.py +64 -0
- pulumi_oci/datascience/model_custom_metadata_artifact.py +418 -0
- pulumi_oci/datascience/model_defined_metadata_artifact.py +418 -0
- pulumi_oci/datascience/model_version_set.py +28 -0
- pulumi_oci/datascience/outputs.py +4343 -2164
- pulumi_oci/datascience/pipeline.py +48 -141
- pulumi_oci/datascience/pipeline_run.py +32 -0
- pulumi_oci/dblm/__init__.py +17 -0
- pulumi_oci/dblm/_inputs.py +275 -0
- pulumi_oci/dblm/get_vulnerability.py +242 -0
- pulumi_oci/dblm/get_vulnerability_aggregated_vulnerability_data.py +220 -0
- pulumi_oci/dblm/get_vulnerability_notifications.py +144 -0
- pulumi_oci/dblm/get_vulnerability_resources.py +258 -0
- pulumi_oci/dblm/get_vulnerability_scan.py +267 -0
- pulumi_oci/dblm/get_vulnerability_scans.py +270 -0
- pulumi_oci/dblm/get_vulnerability_vulnerabilities.py +258 -0
- pulumi_oci/dblm/outputs.py +1294 -0
- pulumi_oci/dblm/vulnerability_scan.py +521 -0
- pulumi_oci/email/dkim.py +120 -20
- pulumi_oci/email/get_dkim.py +40 -1
- pulumi_oci/email/outputs.py +29 -0
- pulumi_oci/filestorage/__init__.py +3 -0
- pulumi_oci/filestorage/_inputs.py +49 -0
- pulumi_oci/filestorage/file_system.py +133 -0
- pulumi_oci/filestorage/file_system_quota_rule.py +593 -0
- pulumi_oci/filestorage/filesystem_snapshot_policy.py +28 -0
- pulumi_oci/filestorage/get_file_system_quota_rule.py +248 -0
- pulumi_oci/filestorage/get_file_system_quota_rules.py +210 -0
- pulumi_oci/filestorage/get_filesystem_snapshot_policy.py +15 -1
- pulumi_oci/filestorage/get_outbound_connector.py +15 -1
- pulumi_oci/filestorage/get_replication.py +15 -1
- pulumi_oci/filestorage/get_replication_target.py +15 -1
- pulumi_oci/filestorage/get_snapshot.py +15 -1
- pulumi_oci/filestorage/mount_target.py +28 -0
- pulumi_oci/filestorage/outbound_connector.py +28 -0
- pulumi_oci/filestorage/outputs.py +263 -0
- pulumi_oci/filestorage/replication.py +28 -0
- pulumi_oci/filestorage/snapshot.py +28 -0
- pulumi_oci/goldengate/connection.py +561 -162
- pulumi_oci/goldengate/database_registration.py +14 -14
- pulumi_oci/goldengate/get_connection.py +117 -6
- pulumi_oci/goldengate/outputs.py +96 -10
- pulumi_oci/jms/__init__.py +4 -0
- pulumi_oci/jms/_inputs.py +196 -0
- pulumi_oci/jms/get_fleet_error_analytics.py +163 -0
- pulumi_oci/jms/get_fleet_errors.py +264 -0
- pulumi_oci/jms/get_fleet_performance_tuning_analysis_results.py +23 -1
- pulumi_oci/jms/get_jms_plugins.py +23 -1
- pulumi_oci/jms/get_plugin_error_analytics.py +163 -0
- pulumi_oci/jms/get_plugin_errors.py +264 -0
- pulumi_oci/jms/outputs.py +566 -6
- pulumi_oci/mysql/_inputs.py +1239 -10
- pulumi_oci/mysql/channel.py +28 -0
- pulumi_oci/mysql/get_channel.py +15 -1
- pulumi_oci/mysql/get_mysql_backup.py +15 -1
- pulumi_oci/mysql/get_mysql_configuration.py +15 -1
- pulumi_oci/mysql/get_mysql_db_system.py +15 -1
- pulumi_oci/mysql/mysql_backup.py +28 -0
- pulumi_oci/mysql/mysql_configuration.py +106 -0
- pulumi_oci/mysql/mysql_db_system.py +36 -0
- pulumi_oci/mysql/outputs.py +2008 -35
- pulumi_oci/opensearch/__init__.py +3 -0
- pulumi_oci/opensearch/_inputs.py +101 -0
- pulumi_oci/opensearch/cluster.py +76 -29
- pulumi_oci/opensearch/get_opensearch_cluster.py +12 -1
- pulumi_oci/opensearch/get_opensearch_cluster_pipeline.py +433 -0
- pulumi_oci/opensearch/get_opensearch_cluster_pipelines.py +218 -0
- pulumi_oci/opensearch/opensearch_cluster_pipeline.py +1172 -0
- pulumi_oci/opensearch/outputs.py +425 -0
- pulumi_oci/provider.py +20 -0
- pulumi_oci/psql/_inputs.py +258 -0
- pulumi_oci/psql/backup.py +129 -28
- pulumi_oci/psql/db_system.py +10 -0
- pulumi_oci/psql/get_backup.py +47 -2
- pulumi_oci/psql/get_backups.py +3 -0
- pulumi_oci/psql/get_configurations.py +23 -1
- pulumi_oci/psql/get_db_system.py +1 -1
- pulumi_oci/psql/get_db_systems.py +1 -1
- pulumi_oci/psql/outputs.py +541 -5
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/redis/redis_cluster.py +7 -7
- pulumi_oci/stackmonitoring/__init__.py +8 -0
- pulumi_oci/stackmonitoring/_inputs.py +372 -1
- pulumi_oci/stackmonitoring/get_defined_monitoring_templates.py +185 -0
- pulumi_oci/stackmonitoring/get_metric_extension.py +1 -1
- pulumi_oci/stackmonitoring/get_monitored_resource_type.py +15 -1
- pulumi_oci/stackmonitoring/get_monitoring_template.py +380 -0
- pulumi_oci/stackmonitoring/get_monitoring_template_alarm_condition.py +318 -0
- pulumi_oci/stackmonitoring/get_monitoring_template_alarm_conditions.py +262 -0
- pulumi_oci/stackmonitoring/get_monitoring_templates.py +289 -0
- pulumi_oci/stackmonitoring/metric_extension.py +4 -4
- pulumi_oci/stackmonitoring/monitored_resource_type.py +30 -0
- pulumi_oci/stackmonitoring/monitoring_template.py +954 -0
- pulumi_oci/stackmonitoring/monitoring_template_alarm_condition.py +780 -0
- pulumi_oci/stackmonitoring/monitoring_template_monitoring_template_on_given_resources_management.py +253 -0
- pulumi_oci/stackmonitoring/outputs.py +1305 -118
- pulumi_oci/tenantmanagercontrolplane/__init__.py +33 -0
- pulumi_oci/tenantmanagercontrolplane/_inputs.py +685 -0
- pulumi_oci/tenantmanagercontrolplane/get_assigned_subscription.py +478 -0
- pulumi_oci/tenantmanagercontrolplane/get_assigned_subscription_line_items.py +144 -0
- pulumi_oci/tenantmanagercontrolplane/get_assigned_subscriptions.py +188 -0
- pulumi_oci/tenantmanagercontrolplane/get_domain.py +253 -0
- pulumi_oci/tenantmanagercontrolplane/get_domain_governance.py +281 -0
- pulumi_oci/tenantmanagercontrolplane/get_domain_governances.py +226 -0
- pulumi_oci/tenantmanagercontrolplane/get_domains.py +226 -0
- pulumi_oci/tenantmanagercontrolplane/get_link.py +197 -0
- pulumi_oci/tenantmanagercontrolplane/get_links.py +191 -0
- pulumi_oci/tenantmanagercontrolplane/get_organization.py +211 -0
- pulumi_oci/tenantmanagercontrolplane/get_organization_tenancies.py +144 -0
- pulumi_oci/tenantmanagercontrolplane/get_organization_tenancy.py +233 -0
- pulumi_oci/tenantmanagercontrolplane/get_organizations.py +147 -0
- pulumi_oci/tenantmanagercontrolplane/get_recipient_invitation.py +295 -0
- pulumi_oci/tenantmanagercontrolplane/get_recipient_invitations.py +213 -0
- pulumi_oci/tenantmanagercontrolplane/get_sender_invitation.py +295 -0
- pulumi_oci/tenantmanagercontrolplane/get_sender_invitations.py +235 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscription.py +464 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscription_available_regions.py +144 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscription_line_items.py +144 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscription_mapping.py +211 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscription_mappings.py +210 -0
- pulumi_oci/tenantmanagercontrolplane/get_subscriptions.py +188 -0
- pulumi_oci/tenantmanagercontrolplane/outputs.py +3257 -0
- pulumi_oci/tenantmanagercontrolplane/subscription_mapping.py +409 -0
- pulumi_oci/vault/__init__.py +1 -1
- pulumi_oci/vault/_inputs.py +92 -0
- pulumi_oci/vault/get_secret.py +40 -1
- pulumi_oci/vault/{get_secret_version.py → get_secret_version_sdk_v2.py} +32 -77
- pulumi_oci/vault/outputs.py +210 -0
- pulumi_oci/vault/secret.py +122 -0
- {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/METADATA +1 -1
- {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/RECORD +218 -150
- {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/WHEEL +1 -1
- {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,185 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetDefinedMonitoringTemplatesResult',
|
21
|
+
'AwaitableGetDefinedMonitoringTemplatesResult',
|
22
|
+
'get_defined_monitoring_templates',
|
23
|
+
'get_defined_monitoring_templates_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetDefinedMonitoringTemplatesResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getDefinedMonitoringTemplates.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, compartment_id=None, defined_monitoring_template_collections=None, display_name=None, filters=None, id=None, resource_types=None):
|
32
|
+
if compartment_id and not isinstance(compartment_id, str):
|
33
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
34
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
35
|
+
if defined_monitoring_template_collections and not isinstance(defined_monitoring_template_collections, list):
|
36
|
+
raise TypeError("Expected argument 'defined_monitoring_template_collections' to be a list")
|
37
|
+
pulumi.set(__self__, "defined_monitoring_template_collections", defined_monitoring_template_collections)
|
38
|
+
if display_name and not isinstance(display_name, str):
|
39
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
40
|
+
pulumi.set(__self__, "display_name", display_name)
|
41
|
+
if filters and not isinstance(filters, list):
|
42
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
43
|
+
pulumi.set(__self__, "filters", filters)
|
44
|
+
if id and not isinstance(id, str):
|
45
|
+
raise TypeError("Expected argument 'id' to be a str")
|
46
|
+
pulumi.set(__self__, "id", id)
|
47
|
+
if resource_types and not isinstance(resource_types, list):
|
48
|
+
raise TypeError("Expected argument 'resource_types' to be a list")
|
49
|
+
pulumi.set(__self__, "resource_types", resource_types)
|
50
|
+
|
51
|
+
@property
|
52
|
+
@pulumi.getter(name="compartmentId")
|
53
|
+
def compartment_id(self) -> str:
|
54
|
+
return pulumi.get(self, "compartment_id")
|
55
|
+
|
56
|
+
@property
|
57
|
+
@pulumi.getter(name="definedMonitoringTemplateCollections")
|
58
|
+
def defined_monitoring_template_collections(self) -> Sequence['outputs.GetDefinedMonitoringTemplatesDefinedMonitoringTemplateCollectionResult']:
|
59
|
+
"""
|
60
|
+
The list of defined_monitoring_template_collection.
|
61
|
+
"""
|
62
|
+
return pulumi.get(self, "defined_monitoring_template_collections")
|
63
|
+
|
64
|
+
@property
|
65
|
+
@pulumi.getter(name="displayName")
|
66
|
+
def display_name(self) -> Optional[str]:
|
67
|
+
"""
|
68
|
+
The name of the definedMonitoringTemplate.
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "display_name")
|
71
|
+
|
72
|
+
@property
|
73
|
+
@pulumi.getter
|
74
|
+
def filters(self) -> Optional[Sequence['outputs.GetDefinedMonitoringTemplatesFilterResult']]:
|
75
|
+
return pulumi.get(self, "filters")
|
76
|
+
|
77
|
+
@property
|
78
|
+
@pulumi.getter
|
79
|
+
def id(self) -> str:
|
80
|
+
"""
|
81
|
+
The provider-assigned unique ID for this managed resource.
|
82
|
+
"""
|
83
|
+
return pulumi.get(self, "id")
|
84
|
+
|
85
|
+
@property
|
86
|
+
@pulumi.getter(name="resourceTypes")
|
87
|
+
def resource_types(self) -> Optional[Sequence[str]]:
|
88
|
+
return pulumi.get(self, "resource_types")
|
89
|
+
|
90
|
+
|
91
|
+
class AwaitableGetDefinedMonitoringTemplatesResult(GetDefinedMonitoringTemplatesResult):
|
92
|
+
# pylint: disable=using-constant-test
|
93
|
+
def __await__(self):
|
94
|
+
if False:
|
95
|
+
yield self
|
96
|
+
return GetDefinedMonitoringTemplatesResult(
|
97
|
+
compartment_id=self.compartment_id,
|
98
|
+
defined_monitoring_template_collections=self.defined_monitoring_template_collections,
|
99
|
+
display_name=self.display_name,
|
100
|
+
filters=self.filters,
|
101
|
+
id=self.id,
|
102
|
+
resource_types=self.resource_types)
|
103
|
+
|
104
|
+
|
105
|
+
def get_defined_monitoring_templates(compartment_id: Optional[str] = None,
|
106
|
+
display_name: Optional[str] = None,
|
107
|
+
filters: Optional[Sequence[Union['GetDefinedMonitoringTemplatesFilterArgs', 'GetDefinedMonitoringTemplatesFilterArgsDict']]] = None,
|
108
|
+
resource_types: Optional[Sequence[str]] = None,
|
109
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDefinedMonitoringTemplatesResult:
|
110
|
+
"""
|
111
|
+
This data source provides the list of Defined Monitoring Templates in Oracle Cloud Infrastructure Stack Monitoring service.
|
112
|
+
|
113
|
+
List Defined Monitoring Templates.
|
114
|
+
|
115
|
+
## Example Usage
|
116
|
+
|
117
|
+
```python
|
118
|
+
import pulumi
|
119
|
+
import pulumi_oci as oci
|
120
|
+
|
121
|
+
test_defined_monitoring_templates = oci.StackMonitoring.get_defined_monitoring_templates(compartment_id=compartment_id,
|
122
|
+
display_name=defined_monitoring_template_display_name,
|
123
|
+
resource_types=defined_monitoring_template_resource_types)
|
124
|
+
```
|
125
|
+
|
126
|
+
|
127
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy(root) for which defined monitored templates should be listed.
|
128
|
+
:param str display_name: A filter to return monitoring template based on name.
|
129
|
+
:param Sequence[str] resource_types: Multiple resource types filter.
|
130
|
+
"""
|
131
|
+
__args__ = dict()
|
132
|
+
__args__['compartmentId'] = compartment_id
|
133
|
+
__args__['displayName'] = display_name
|
134
|
+
__args__['filters'] = filters
|
135
|
+
__args__['resourceTypes'] = resource_types
|
136
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
137
|
+
__ret__ = pulumi.runtime.invoke('oci:StackMonitoring/getDefinedMonitoringTemplates:getDefinedMonitoringTemplates', __args__, opts=opts, typ=GetDefinedMonitoringTemplatesResult).value
|
138
|
+
|
139
|
+
return AwaitableGetDefinedMonitoringTemplatesResult(
|
140
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
141
|
+
defined_monitoring_template_collections=pulumi.get(__ret__, 'defined_monitoring_template_collections'),
|
142
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
143
|
+
filters=pulumi.get(__ret__, 'filters'),
|
144
|
+
id=pulumi.get(__ret__, 'id'),
|
145
|
+
resource_types=pulumi.get(__ret__, 'resource_types'))
|
146
|
+
def get_defined_monitoring_templates_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
147
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
148
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetDefinedMonitoringTemplatesFilterArgs', 'GetDefinedMonitoringTemplatesFilterArgsDict']]]]] = None,
|
149
|
+
resource_types: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
150
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDefinedMonitoringTemplatesResult]:
|
151
|
+
"""
|
152
|
+
This data source provides the list of Defined Monitoring Templates in Oracle Cloud Infrastructure Stack Monitoring service.
|
153
|
+
|
154
|
+
List Defined Monitoring Templates.
|
155
|
+
|
156
|
+
## Example Usage
|
157
|
+
|
158
|
+
```python
|
159
|
+
import pulumi
|
160
|
+
import pulumi_oci as oci
|
161
|
+
|
162
|
+
test_defined_monitoring_templates = oci.StackMonitoring.get_defined_monitoring_templates(compartment_id=compartment_id,
|
163
|
+
display_name=defined_monitoring_template_display_name,
|
164
|
+
resource_types=defined_monitoring_template_resource_types)
|
165
|
+
```
|
166
|
+
|
167
|
+
|
168
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy(root) for which defined monitored templates should be listed.
|
169
|
+
:param str display_name: A filter to return monitoring template based on name.
|
170
|
+
:param Sequence[str] resource_types: Multiple resource types filter.
|
171
|
+
"""
|
172
|
+
__args__ = dict()
|
173
|
+
__args__['compartmentId'] = compartment_id
|
174
|
+
__args__['displayName'] = display_name
|
175
|
+
__args__['filters'] = filters
|
176
|
+
__args__['resourceTypes'] = resource_types
|
177
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
178
|
+
__ret__ = pulumi.runtime.invoke_output('oci:StackMonitoring/getDefinedMonitoringTemplates:getDefinedMonitoringTemplates', __args__, opts=opts, typ=GetDefinedMonitoringTemplatesResult)
|
179
|
+
return __ret__.apply(lambda __response__: GetDefinedMonitoringTemplatesResult(
|
180
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
181
|
+
defined_monitoring_template_collections=pulumi.get(__response__, 'defined_monitoring_template_collections'),
|
182
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
183
|
+
filters=pulumi.get(__response__, 'filters'),
|
184
|
+
id=pulumi.get(__response__, 'id'),
|
185
|
+
resource_types=pulumi.get(__response__, 'resource_types')))
|
@@ -147,7 +147,7 @@ class GetMetricExtensionResult:
|
|
147
147
|
@pulumi.getter(name="enabledOnResources")
|
148
148
|
def enabled_on_resources(self) -> Sequence['outputs.GetMetricExtensionEnabledOnResourceResult']:
|
149
149
|
"""
|
150
|
-
List of resource objects on which this metric extension is enabled.
|
150
|
+
List of resource details objects having resourceIds on which this metric extension is enabled.
|
151
151
|
"""
|
152
152
|
return pulumi.get(self, "enabled_on_resources")
|
153
153
|
|
@@ -27,7 +27,10 @@ class GetMonitoredResourceTypeResult:
|
|
27
27
|
"""
|
28
28
|
A collection of values returned by getMonitoredResourceType.
|
29
29
|
"""
|
30
|
-
def __init__(__self__, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, metadatas=None, metric_namespace=None, monitored_resource_type_id=None, name=None, resource_category=None, source_type=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
30
|
+
def __init__(__self__, additional_namespace_map=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, metadatas=None, metric_namespace=None, monitored_resource_type_id=None, name=None, resource_category=None, source_type=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
31
|
+
if additional_namespace_map and not isinstance(additional_namespace_map, dict):
|
32
|
+
raise TypeError("Expected argument 'additional_namespace_map' to be a dict")
|
33
|
+
pulumi.set(__self__, "additional_namespace_map", additional_namespace_map)
|
31
34
|
if compartment_id and not isinstance(compartment_id, str):
|
32
35
|
raise TypeError("Expected argument 'compartment_id' to be a str")
|
33
36
|
pulumi.set(__self__, "compartment_id", compartment_id)
|
@@ -77,6 +80,14 @@ class GetMonitoredResourceTypeResult:
|
|
77
80
|
raise TypeError("Expected argument 'time_updated' to be a str")
|
78
81
|
pulumi.set(__self__, "time_updated", time_updated)
|
79
82
|
|
83
|
+
@property
|
84
|
+
@pulumi.getter(name="additionalNamespaceMap")
|
85
|
+
def additional_namespace_map(self) -> Mapping[str, str]:
|
86
|
+
"""
|
87
|
+
Key/Value pair for additional namespaces used by stack monitoring services for SYSTEM (SMB) resource types.
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "additional_namespace_map")
|
90
|
+
|
80
91
|
@property
|
81
92
|
@pulumi.getter(name="compartmentId")
|
82
93
|
def compartment_id(self) -> str:
|
@@ -209,6 +220,7 @@ class AwaitableGetMonitoredResourceTypeResult(GetMonitoredResourceTypeResult):
|
|
209
220
|
if False:
|
210
221
|
yield self
|
211
222
|
return GetMonitoredResourceTypeResult(
|
223
|
+
additional_namespace_map=self.additional_namespace_map,
|
212
224
|
compartment_id=self.compartment_id,
|
213
225
|
defined_tags=self.defined_tags,
|
214
226
|
description=self.description,
|
@@ -252,6 +264,7 @@ def get_monitored_resource_type(monitored_resource_type_id: Optional[str] = None
|
|
252
264
|
__ret__ = pulumi.runtime.invoke('oci:StackMonitoring/getMonitoredResourceType:getMonitoredResourceType', __args__, opts=opts, typ=GetMonitoredResourceTypeResult).value
|
253
265
|
|
254
266
|
return AwaitableGetMonitoredResourceTypeResult(
|
267
|
+
additional_namespace_map=pulumi.get(__ret__, 'additional_namespace_map'),
|
255
268
|
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
256
269
|
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
257
270
|
description=pulumi.get(__ret__, 'description'),
|
@@ -292,6 +305,7 @@ def get_monitored_resource_type_output(monitored_resource_type_id: Optional[pulu
|
|
292
305
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
293
306
|
__ret__ = pulumi.runtime.invoke_output('oci:StackMonitoring/getMonitoredResourceType:getMonitoredResourceType', __args__, opts=opts, typ=GetMonitoredResourceTypeResult)
|
294
307
|
return __ret__.apply(lambda __response__: GetMonitoredResourceTypeResult(
|
308
|
+
additional_namespace_map=pulumi.get(__response__, 'additional_namespace_map'),
|
295
309
|
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
296
310
|
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
297
311
|
description=pulumi.get(__response__, 'description'),
|
@@ -0,0 +1,380 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetMonitoringTemplateResult',
|
20
|
+
'AwaitableGetMonitoringTemplateResult',
|
21
|
+
'get_monitoring_template',
|
22
|
+
'get_monitoring_template_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetMonitoringTemplateResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getMonitoringTemplate.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, compartment_id=None, defined_tags=None, description=None, destinations=None, display_name=None, freeform_tags=None, id=None, is_alarms_enabled=None, is_split_notification_enabled=None, members=None, message_format=None, monitoring_template_id=None, repeat_notification_duration=None, state=None, status=None, system_tags=None, tenant_id=None, time_created=None, time_updated=None, total_alarm_conditions=None, total_applied_alarm_conditions=None):
|
31
|
+
if compartment_id and not isinstance(compartment_id, str):
|
32
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
33
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
34
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
35
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
36
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
37
|
+
if description and not isinstance(description, str):
|
38
|
+
raise TypeError("Expected argument 'description' to be a str")
|
39
|
+
pulumi.set(__self__, "description", description)
|
40
|
+
if destinations and not isinstance(destinations, list):
|
41
|
+
raise TypeError("Expected argument 'destinations' to be a list")
|
42
|
+
pulumi.set(__self__, "destinations", destinations)
|
43
|
+
if display_name and not isinstance(display_name, str):
|
44
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
45
|
+
pulumi.set(__self__, "display_name", display_name)
|
46
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
47
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
48
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
49
|
+
if id and not isinstance(id, str):
|
50
|
+
raise TypeError("Expected argument 'id' to be a str")
|
51
|
+
pulumi.set(__self__, "id", id)
|
52
|
+
if is_alarms_enabled and not isinstance(is_alarms_enabled, bool):
|
53
|
+
raise TypeError("Expected argument 'is_alarms_enabled' to be a bool")
|
54
|
+
pulumi.set(__self__, "is_alarms_enabled", is_alarms_enabled)
|
55
|
+
if is_split_notification_enabled and not isinstance(is_split_notification_enabled, bool):
|
56
|
+
raise TypeError("Expected argument 'is_split_notification_enabled' to be a bool")
|
57
|
+
pulumi.set(__self__, "is_split_notification_enabled", is_split_notification_enabled)
|
58
|
+
if members and not isinstance(members, list):
|
59
|
+
raise TypeError("Expected argument 'members' to be a list")
|
60
|
+
pulumi.set(__self__, "members", members)
|
61
|
+
if message_format and not isinstance(message_format, str):
|
62
|
+
raise TypeError("Expected argument 'message_format' to be a str")
|
63
|
+
pulumi.set(__self__, "message_format", message_format)
|
64
|
+
if monitoring_template_id and not isinstance(monitoring_template_id, str):
|
65
|
+
raise TypeError("Expected argument 'monitoring_template_id' to be a str")
|
66
|
+
pulumi.set(__self__, "monitoring_template_id", monitoring_template_id)
|
67
|
+
if repeat_notification_duration and not isinstance(repeat_notification_duration, str):
|
68
|
+
raise TypeError("Expected argument 'repeat_notification_duration' to be a str")
|
69
|
+
pulumi.set(__self__, "repeat_notification_duration", repeat_notification_duration)
|
70
|
+
if state and not isinstance(state, str):
|
71
|
+
raise TypeError("Expected argument 'state' to be a str")
|
72
|
+
pulumi.set(__self__, "state", state)
|
73
|
+
if status and not isinstance(status, str):
|
74
|
+
raise TypeError("Expected argument 'status' to be a str")
|
75
|
+
pulumi.set(__self__, "status", status)
|
76
|
+
if system_tags and not isinstance(system_tags, dict):
|
77
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
78
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
79
|
+
if tenant_id and not isinstance(tenant_id, str):
|
80
|
+
raise TypeError("Expected argument 'tenant_id' to be a str")
|
81
|
+
pulumi.set(__self__, "tenant_id", tenant_id)
|
82
|
+
if time_created and not isinstance(time_created, str):
|
83
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
84
|
+
pulumi.set(__self__, "time_created", time_created)
|
85
|
+
if time_updated and not isinstance(time_updated, str):
|
86
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
87
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
88
|
+
if total_alarm_conditions and not isinstance(total_alarm_conditions, float):
|
89
|
+
raise TypeError("Expected argument 'total_alarm_conditions' to be a float")
|
90
|
+
pulumi.set(__self__, "total_alarm_conditions", total_alarm_conditions)
|
91
|
+
if total_applied_alarm_conditions and not isinstance(total_applied_alarm_conditions, float):
|
92
|
+
raise TypeError("Expected argument 'total_applied_alarm_conditions' to be a float")
|
93
|
+
pulumi.set(__self__, "total_applied_alarm_conditions", total_applied_alarm_conditions)
|
94
|
+
|
95
|
+
@property
|
96
|
+
@pulumi.getter(name="compartmentId")
|
97
|
+
def compartment_id(self) -> str:
|
98
|
+
"""
|
99
|
+
The OCID of the compartment containing the monitoringTemplate.
|
100
|
+
"""
|
101
|
+
return pulumi.get(self, "compartment_id")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter(name="definedTags")
|
105
|
+
def defined_tags(self) -> Mapping[str, str]:
|
106
|
+
"""
|
107
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
|
108
|
+
"""
|
109
|
+
return pulumi.get(self, "defined_tags")
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter
|
113
|
+
def description(self) -> str:
|
114
|
+
"""
|
115
|
+
A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "description")
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter
|
121
|
+
def destinations(self) -> Sequence[str]:
|
122
|
+
"""
|
123
|
+
A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource.
|
124
|
+
"""
|
125
|
+
return pulumi.get(self, "destinations")
|
126
|
+
|
127
|
+
@property
|
128
|
+
@pulumi.getter(name="displayName")
|
129
|
+
def display_name(self) -> str:
|
130
|
+
"""
|
131
|
+
A user-friendly name for the monitoring template. It should be unique, and it's mutable in nature. Avoid entering confidential information.
|
132
|
+
"""
|
133
|
+
return pulumi.get(self, "display_name")
|
134
|
+
|
135
|
+
@property
|
136
|
+
@pulumi.getter(name="freeformTags")
|
137
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
138
|
+
"""
|
139
|
+
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
140
|
+
"""
|
141
|
+
return pulumi.get(self, "freeform_tags")
|
142
|
+
|
143
|
+
@property
|
144
|
+
@pulumi.getter
|
145
|
+
def id(self) -> str:
|
146
|
+
"""
|
147
|
+
The OCID of the resourceInstance/resourceType/resourceGroup
|
148
|
+
"""
|
149
|
+
return pulumi.get(self, "id")
|
150
|
+
|
151
|
+
@property
|
152
|
+
@pulumi.getter(name="isAlarmsEnabled")
|
153
|
+
def is_alarms_enabled(self) -> bool:
|
154
|
+
"""
|
155
|
+
Whether the alarm is enabled or disabled. Default value is enabled.
|
156
|
+
"""
|
157
|
+
return pulumi.get(self, "is_alarms_enabled")
|
158
|
+
|
159
|
+
@property
|
160
|
+
@pulumi.getter(name="isSplitNotificationEnabled")
|
161
|
+
def is_split_notification_enabled(self) -> bool:
|
162
|
+
"""
|
163
|
+
Whether the alarm notification is enabled or disabled, it will be Enabled by default.
|
164
|
+
"""
|
165
|
+
return pulumi.get(self, "is_split_notification_enabled")
|
166
|
+
|
167
|
+
@property
|
168
|
+
@pulumi.getter
|
169
|
+
def members(self) -> Sequence['outputs.GetMonitoringTemplateMemberResult']:
|
170
|
+
"""
|
171
|
+
List of members of this monitoring template.
|
172
|
+
"""
|
173
|
+
return pulumi.get(self, "members")
|
174
|
+
|
175
|
+
@property
|
176
|
+
@pulumi.getter(name="messageFormat")
|
177
|
+
def message_format(self) -> str:
|
178
|
+
"""
|
179
|
+
The format to use for alarm notifications.
|
180
|
+
"""
|
181
|
+
return pulumi.get(self, "message_format")
|
182
|
+
|
183
|
+
@property
|
184
|
+
@pulumi.getter(name="monitoringTemplateId")
|
185
|
+
def monitoring_template_id(self) -> str:
|
186
|
+
return pulumi.get(self, "monitoring_template_id")
|
187
|
+
|
188
|
+
@property
|
189
|
+
@pulumi.getter(name="repeatNotificationDuration")
|
190
|
+
def repeat_notification_duration(self) -> str:
|
191
|
+
"""
|
192
|
+
The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
|
193
|
+
"""
|
194
|
+
return pulumi.get(self, "repeat_notification_duration")
|
195
|
+
|
196
|
+
@property
|
197
|
+
@pulumi.getter
|
198
|
+
def state(self) -> str:
|
199
|
+
"""
|
200
|
+
The current lifecycle state of the monitoring template.
|
201
|
+
"""
|
202
|
+
return pulumi.get(self, "state")
|
203
|
+
|
204
|
+
@property
|
205
|
+
@pulumi.getter
|
206
|
+
def status(self) -> str:
|
207
|
+
"""
|
208
|
+
The current status of the monitoring template i.e. whether it is Applied or NotApplied.
|
209
|
+
"""
|
210
|
+
return pulumi.get(self, "status")
|
211
|
+
|
212
|
+
@property
|
213
|
+
@pulumi.getter(name="systemTags")
|
214
|
+
def system_tags(self) -> Mapping[str, str]:
|
215
|
+
"""
|
216
|
+
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
217
|
+
"""
|
218
|
+
return pulumi.get(self, "system_tags")
|
219
|
+
|
220
|
+
@property
|
221
|
+
@pulumi.getter(name="tenantId")
|
222
|
+
def tenant_id(self) -> str:
|
223
|
+
"""
|
224
|
+
Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
|
225
|
+
"""
|
226
|
+
return pulumi.get(self, "tenant_id")
|
227
|
+
|
228
|
+
@property
|
229
|
+
@pulumi.getter(name="timeCreated")
|
230
|
+
def time_created(self) -> str:
|
231
|
+
"""
|
232
|
+
The date and time the monitoringTemplate was created. Format defined by RFC3339.
|
233
|
+
"""
|
234
|
+
return pulumi.get(self, "time_created")
|
235
|
+
|
236
|
+
@property
|
237
|
+
@pulumi.getter(name="timeUpdated")
|
238
|
+
def time_updated(self) -> str:
|
239
|
+
"""
|
240
|
+
The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
|
241
|
+
"""
|
242
|
+
return pulumi.get(self, "time_updated")
|
243
|
+
|
244
|
+
@property
|
245
|
+
@pulumi.getter(name="totalAlarmConditions")
|
246
|
+
def total_alarm_conditions(self) -> float:
|
247
|
+
"""
|
248
|
+
Total Alarm Conditions
|
249
|
+
"""
|
250
|
+
return pulumi.get(self, "total_alarm_conditions")
|
251
|
+
|
252
|
+
@property
|
253
|
+
@pulumi.getter(name="totalAppliedAlarmConditions")
|
254
|
+
def total_applied_alarm_conditions(self) -> float:
|
255
|
+
"""
|
256
|
+
Total Applied Alarm Conditions
|
257
|
+
"""
|
258
|
+
return pulumi.get(self, "total_applied_alarm_conditions")
|
259
|
+
|
260
|
+
|
261
|
+
class AwaitableGetMonitoringTemplateResult(GetMonitoringTemplateResult):
|
262
|
+
# pylint: disable=using-constant-test
|
263
|
+
def __await__(self):
|
264
|
+
if False:
|
265
|
+
yield self
|
266
|
+
return GetMonitoringTemplateResult(
|
267
|
+
compartment_id=self.compartment_id,
|
268
|
+
defined_tags=self.defined_tags,
|
269
|
+
description=self.description,
|
270
|
+
destinations=self.destinations,
|
271
|
+
display_name=self.display_name,
|
272
|
+
freeform_tags=self.freeform_tags,
|
273
|
+
id=self.id,
|
274
|
+
is_alarms_enabled=self.is_alarms_enabled,
|
275
|
+
is_split_notification_enabled=self.is_split_notification_enabled,
|
276
|
+
members=self.members,
|
277
|
+
message_format=self.message_format,
|
278
|
+
monitoring_template_id=self.monitoring_template_id,
|
279
|
+
repeat_notification_duration=self.repeat_notification_duration,
|
280
|
+
state=self.state,
|
281
|
+
status=self.status,
|
282
|
+
system_tags=self.system_tags,
|
283
|
+
tenant_id=self.tenant_id,
|
284
|
+
time_created=self.time_created,
|
285
|
+
time_updated=self.time_updated,
|
286
|
+
total_alarm_conditions=self.total_alarm_conditions,
|
287
|
+
total_applied_alarm_conditions=self.total_applied_alarm_conditions)
|
288
|
+
|
289
|
+
|
290
|
+
def get_monitoring_template(monitoring_template_id: Optional[str] = None,
|
291
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMonitoringTemplateResult:
|
292
|
+
"""
|
293
|
+
This data source provides details about a specific Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service.
|
294
|
+
|
295
|
+
Gets a Monitoring Template by identifier
|
296
|
+
|
297
|
+
## Example Usage
|
298
|
+
|
299
|
+
```python
|
300
|
+
import pulumi
|
301
|
+
import pulumi_oci as oci
|
302
|
+
|
303
|
+
test_monitoring_template = oci.StackMonitoring.get_monitoring_template(monitoring_template_id=test_monitoring_template_oci_stack_monitoring_monitoring_template["id"])
|
304
|
+
```
|
305
|
+
|
306
|
+
|
307
|
+
:param str monitoring_template_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the monitoring template.
|
308
|
+
"""
|
309
|
+
__args__ = dict()
|
310
|
+
__args__['monitoringTemplateId'] = monitoring_template_id
|
311
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
312
|
+
__ret__ = pulumi.runtime.invoke('oci:StackMonitoring/getMonitoringTemplate:getMonitoringTemplate', __args__, opts=opts, typ=GetMonitoringTemplateResult).value
|
313
|
+
|
314
|
+
return AwaitableGetMonitoringTemplateResult(
|
315
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
316
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
317
|
+
description=pulumi.get(__ret__, 'description'),
|
318
|
+
destinations=pulumi.get(__ret__, 'destinations'),
|
319
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
320
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
321
|
+
id=pulumi.get(__ret__, 'id'),
|
322
|
+
is_alarms_enabled=pulumi.get(__ret__, 'is_alarms_enabled'),
|
323
|
+
is_split_notification_enabled=pulumi.get(__ret__, 'is_split_notification_enabled'),
|
324
|
+
members=pulumi.get(__ret__, 'members'),
|
325
|
+
message_format=pulumi.get(__ret__, 'message_format'),
|
326
|
+
monitoring_template_id=pulumi.get(__ret__, 'monitoring_template_id'),
|
327
|
+
repeat_notification_duration=pulumi.get(__ret__, 'repeat_notification_duration'),
|
328
|
+
state=pulumi.get(__ret__, 'state'),
|
329
|
+
status=pulumi.get(__ret__, 'status'),
|
330
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
331
|
+
tenant_id=pulumi.get(__ret__, 'tenant_id'),
|
332
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
333
|
+
time_updated=pulumi.get(__ret__, 'time_updated'),
|
334
|
+
total_alarm_conditions=pulumi.get(__ret__, 'total_alarm_conditions'),
|
335
|
+
total_applied_alarm_conditions=pulumi.get(__ret__, 'total_applied_alarm_conditions'))
|
336
|
+
def get_monitoring_template_output(monitoring_template_id: Optional[pulumi.Input[str]] = None,
|
337
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMonitoringTemplateResult]:
|
338
|
+
"""
|
339
|
+
This data source provides details about a specific Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service.
|
340
|
+
|
341
|
+
Gets a Monitoring Template by identifier
|
342
|
+
|
343
|
+
## Example Usage
|
344
|
+
|
345
|
+
```python
|
346
|
+
import pulumi
|
347
|
+
import pulumi_oci as oci
|
348
|
+
|
349
|
+
test_monitoring_template = oci.StackMonitoring.get_monitoring_template(monitoring_template_id=test_monitoring_template_oci_stack_monitoring_monitoring_template["id"])
|
350
|
+
```
|
351
|
+
|
352
|
+
|
353
|
+
:param str monitoring_template_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the monitoring template.
|
354
|
+
"""
|
355
|
+
__args__ = dict()
|
356
|
+
__args__['monitoringTemplateId'] = monitoring_template_id
|
357
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
358
|
+
__ret__ = pulumi.runtime.invoke_output('oci:StackMonitoring/getMonitoringTemplate:getMonitoringTemplate', __args__, opts=opts, typ=GetMonitoringTemplateResult)
|
359
|
+
return __ret__.apply(lambda __response__: GetMonitoringTemplateResult(
|
360
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
361
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
362
|
+
description=pulumi.get(__response__, 'description'),
|
363
|
+
destinations=pulumi.get(__response__, 'destinations'),
|
364
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
365
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
366
|
+
id=pulumi.get(__response__, 'id'),
|
367
|
+
is_alarms_enabled=pulumi.get(__response__, 'is_alarms_enabled'),
|
368
|
+
is_split_notification_enabled=pulumi.get(__response__, 'is_split_notification_enabled'),
|
369
|
+
members=pulumi.get(__response__, 'members'),
|
370
|
+
message_format=pulumi.get(__response__, 'message_format'),
|
371
|
+
monitoring_template_id=pulumi.get(__response__, 'monitoring_template_id'),
|
372
|
+
repeat_notification_duration=pulumi.get(__response__, 'repeat_notification_duration'),
|
373
|
+
state=pulumi.get(__response__, 'state'),
|
374
|
+
status=pulumi.get(__response__, 'status'),
|
375
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
376
|
+
tenant_id=pulumi.get(__response__, 'tenant_id'),
|
377
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
378
|
+
time_updated=pulumi.get(__response__, 'time_updated'),
|
379
|
+
total_alarm_conditions=pulumi.get(__response__, 'total_alarm_conditions'),
|
380
|
+
total_applied_alarm_conditions=pulumi.get(__response__, 'total_applied_alarm_conditions')))
|