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,258 @@
|
|
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
|
+
'GetVulnerabilityResourcesResult',
|
21
|
+
'AwaitableGetVulnerabilityResourcesResult',
|
22
|
+
'get_vulnerability_resources',
|
23
|
+
'get_vulnerability_resources_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetVulnerabilityResourcesResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getVulnerabilityResources.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, compartment_id=None, cve_id=None, database_release=None, display_name=None, filters=None, id=None, patch_recommendations=None, severity_types=None, state=None, vulnerability_resource_collections=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 cve_id and not isinstance(cve_id, str):
|
36
|
+
raise TypeError("Expected argument 'cve_id' to be a str")
|
37
|
+
pulumi.set(__self__, "cve_id", cve_id)
|
38
|
+
if database_release and not isinstance(database_release, str):
|
39
|
+
raise TypeError("Expected argument 'database_release' to be a str")
|
40
|
+
pulumi.set(__self__, "database_release", database_release)
|
41
|
+
if display_name and not isinstance(display_name, str):
|
42
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
43
|
+
pulumi.set(__self__, "display_name", display_name)
|
44
|
+
if filters and not isinstance(filters, list):
|
45
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
46
|
+
pulumi.set(__self__, "filters", filters)
|
47
|
+
if id and not isinstance(id, str):
|
48
|
+
raise TypeError("Expected argument 'id' to be a str")
|
49
|
+
pulumi.set(__self__, "id", id)
|
50
|
+
if patch_recommendations and not isinstance(patch_recommendations, list):
|
51
|
+
raise TypeError("Expected argument 'patch_recommendations' to be a list")
|
52
|
+
pulumi.set(__self__, "patch_recommendations", patch_recommendations)
|
53
|
+
if severity_types and not isinstance(severity_types, list):
|
54
|
+
raise TypeError("Expected argument 'severity_types' to be a list")
|
55
|
+
pulumi.set(__self__, "severity_types", severity_types)
|
56
|
+
if state and not isinstance(state, str):
|
57
|
+
raise TypeError("Expected argument 'state' to be a str")
|
58
|
+
pulumi.set(__self__, "state", state)
|
59
|
+
if vulnerability_resource_collections and not isinstance(vulnerability_resource_collections, list):
|
60
|
+
raise TypeError("Expected argument 'vulnerability_resource_collections' to be a list")
|
61
|
+
pulumi.set(__self__, "vulnerability_resource_collections", vulnerability_resource_collections)
|
62
|
+
|
63
|
+
@property
|
64
|
+
@pulumi.getter(name="compartmentId")
|
65
|
+
def compartment_id(self) -> str:
|
66
|
+
return pulumi.get(self, "compartment_id")
|
67
|
+
|
68
|
+
@property
|
69
|
+
@pulumi.getter(name="cveId")
|
70
|
+
def cve_id(self) -> Optional[str]:
|
71
|
+
return pulumi.get(self, "cve_id")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter(name="databaseRelease")
|
75
|
+
def database_release(self) -> Optional[str]:
|
76
|
+
return pulumi.get(self, "database_release")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter(name="displayName")
|
80
|
+
def display_name(self) -> Optional[str]:
|
81
|
+
return pulumi.get(self, "display_name")
|
82
|
+
|
83
|
+
@property
|
84
|
+
@pulumi.getter
|
85
|
+
def filters(self) -> Optional[Sequence['outputs.GetVulnerabilityResourcesFilterResult']]:
|
86
|
+
return pulumi.get(self, "filters")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def id(self) -> str:
|
91
|
+
"""
|
92
|
+
The provider-assigned unique ID for this managed resource.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter(name="patchRecommendations")
|
98
|
+
def patch_recommendations(self) -> Optional[Sequence[str]]:
|
99
|
+
return pulumi.get(self, "patch_recommendations")
|
100
|
+
|
101
|
+
@property
|
102
|
+
@pulumi.getter(name="severityTypes")
|
103
|
+
def severity_types(self) -> Optional[Sequence[str]]:
|
104
|
+
return pulumi.get(self, "severity_types")
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter
|
108
|
+
def state(self) -> Optional[str]:
|
109
|
+
return pulumi.get(self, "state")
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter(name="vulnerabilityResourceCollections")
|
113
|
+
def vulnerability_resource_collections(self) -> Sequence['outputs.GetVulnerabilityResourcesVulnerabilityResourceCollectionResult']:
|
114
|
+
"""
|
115
|
+
The list of vulnerability_resource_collection.
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "vulnerability_resource_collections")
|
118
|
+
|
119
|
+
|
120
|
+
class AwaitableGetVulnerabilityResourcesResult(GetVulnerabilityResourcesResult):
|
121
|
+
# pylint: disable=using-constant-test
|
122
|
+
def __await__(self):
|
123
|
+
if False:
|
124
|
+
yield self
|
125
|
+
return GetVulnerabilityResourcesResult(
|
126
|
+
compartment_id=self.compartment_id,
|
127
|
+
cve_id=self.cve_id,
|
128
|
+
database_release=self.database_release,
|
129
|
+
display_name=self.display_name,
|
130
|
+
filters=self.filters,
|
131
|
+
id=self.id,
|
132
|
+
patch_recommendations=self.patch_recommendations,
|
133
|
+
severity_types=self.severity_types,
|
134
|
+
state=self.state,
|
135
|
+
vulnerability_resource_collections=self.vulnerability_resource_collections)
|
136
|
+
|
137
|
+
|
138
|
+
def get_vulnerability_resources(compartment_id: Optional[str] = None,
|
139
|
+
cve_id: Optional[str] = None,
|
140
|
+
database_release: Optional[str] = None,
|
141
|
+
display_name: Optional[str] = None,
|
142
|
+
filters: Optional[Sequence[Union['GetVulnerabilityResourcesFilterArgs', 'GetVulnerabilityResourcesFilterArgsDict']]] = None,
|
143
|
+
patch_recommendations: Optional[Sequence[str]] = None,
|
144
|
+
severity_types: Optional[Sequence[str]] = None,
|
145
|
+
state: Optional[str] = None,
|
146
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVulnerabilityResourcesResult:
|
147
|
+
"""
|
148
|
+
This data source provides the list of Vulnerability Resources in Oracle Cloud Infrastructure Dblm service.
|
149
|
+
|
150
|
+
Lists the summary of vulnerable and clean resourcees
|
151
|
+
|
152
|
+
## Example Usage
|
153
|
+
|
154
|
+
```python
|
155
|
+
import pulumi
|
156
|
+
import pulumi_oci as oci
|
157
|
+
|
158
|
+
test_vulnerability_resources = oci.Dblm.get_vulnerability_resources(compartment_id=compartment_id,
|
159
|
+
cve_id=test_cve["id"],
|
160
|
+
database_release=vulnerability_resource_database_release,
|
161
|
+
display_name=vulnerability_resource_display_name,
|
162
|
+
patch_recommendations=vulnerability_resource_patch_recommendation,
|
163
|
+
severity_types=vulnerability_resource_severity_type,
|
164
|
+
state=vulnerability_resource_state)
|
165
|
+
```
|
166
|
+
|
167
|
+
|
168
|
+
:param str compartment_id: The required ID of the compartment in which to list resources.
|
169
|
+
:param str cve_id: The id of a CVE.
|
170
|
+
:param str database_release: A filter to return only database that match the given release version.
|
171
|
+
:param str display_name: A filter to return only resources that match the entire display name given.
|
172
|
+
:param Sequence[str] patch_recommendations: Filter by one or more severity types. Possible values are upToDate, patchAvailable
|
173
|
+
:param Sequence[str] severity_types: Filter by one or more severity types. Possible values are critical, high, medium, low, info and none.
|
174
|
+
:param str state: A filter to return only resources their lifecycleState matches the given lifecycleState.
|
175
|
+
"""
|
176
|
+
__args__ = dict()
|
177
|
+
__args__['compartmentId'] = compartment_id
|
178
|
+
__args__['cveId'] = cve_id
|
179
|
+
__args__['databaseRelease'] = database_release
|
180
|
+
__args__['displayName'] = display_name
|
181
|
+
__args__['filters'] = filters
|
182
|
+
__args__['patchRecommendations'] = patch_recommendations
|
183
|
+
__args__['severityTypes'] = severity_types
|
184
|
+
__args__['state'] = state
|
185
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
186
|
+
__ret__ = pulumi.runtime.invoke('oci:Dblm/getVulnerabilityResources:getVulnerabilityResources', __args__, opts=opts, typ=GetVulnerabilityResourcesResult).value
|
187
|
+
|
188
|
+
return AwaitableGetVulnerabilityResourcesResult(
|
189
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
190
|
+
cve_id=pulumi.get(__ret__, 'cve_id'),
|
191
|
+
database_release=pulumi.get(__ret__, 'database_release'),
|
192
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
193
|
+
filters=pulumi.get(__ret__, 'filters'),
|
194
|
+
id=pulumi.get(__ret__, 'id'),
|
195
|
+
patch_recommendations=pulumi.get(__ret__, 'patch_recommendations'),
|
196
|
+
severity_types=pulumi.get(__ret__, 'severity_types'),
|
197
|
+
state=pulumi.get(__ret__, 'state'),
|
198
|
+
vulnerability_resource_collections=pulumi.get(__ret__, 'vulnerability_resource_collections'))
|
199
|
+
def get_vulnerability_resources_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
200
|
+
cve_id: Optional[pulumi.Input[Optional[str]]] = None,
|
201
|
+
database_release: Optional[pulumi.Input[Optional[str]]] = None,
|
202
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
203
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetVulnerabilityResourcesFilterArgs', 'GetVulnerabilityResourcesFilterArgsDict']]]]] = None,
|
204
|
+
patch_recommendations: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
205
|
+
severity_types: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
206
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
207
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVulnerabilityResourcesResult]:
|
208
|
+
"""
|
209
|
+
This data source provides the list of Vulnerability Resources in Oracle Cloud Infrastructure Dblm service.
|
210
|
+
|
211
|
+
Lists the summary of vulnerable and clean resourcees
|
212
|
+
|
213
|
+
## Example Usage
|
214
|
+
|
215
|
+
```python
|
216
|
+
import pulumi
|
217
|
+
import pulumi_oci as oci
|
218
|
+
|
219
|
+
test_vulnerability_resources = oci.Dblm.get_vulnerability_resources(compartment_id=compartment_id,
|
220
|
+
cve_id=test_cve["id"],
|
221
|
+
database_release=vulnerability_resource_database_release,
|
222
|
+
display_name=vulnerability_resource_display_name,
|
223
|
+
patch_recommendations=vulnerability_resource_patch_recommendation,
|
224
|
+
severity_types=vulnerability_resource_severity_type,
|
225
|
+
state=vulnerability_resource_state)
|
226
|
+
```
|
227
|
+
|
228
|
+
|
229
|
+
:param str compartment_id: The required ID of the compartment in which to list resources.
|
230
|
+
:param str cve_id: The id of a CVE.
|
231
|
+
:param str database_release: A filter to return only database that match the given release version.
|
232
|
+
:param str display_name: A filter to return only resources that match the entire display name given.
|
233
|
+
:param Sequence[str] patch_recommendations: Filter by one or more severity types. Possible values are upToDate, patchAvailable
|
234
|
+
:param Sequence[str] severity_types: Filter by one or more severity types. Possible values are critical, high, medium, low, info and none.
|
235
|
+
:param str state: A filter to return only resources their lifecycleState matches the given lifecycleState.
|
236
|
+
"""
|
237
|
+
__args__ = dict()
|
238
|
+
__args__['compartmentId'] = compartment_id
|
239
|
+
__args__['cveId'] = cve_id
|
240
|
+
__args__['databaseRelease'] = database_release
|
241
|
+
__args__['displayName'] = display_name
|
242
|
+
__args__['filters'] = filters
|
243
|
+
__args__['patchRecommendations'] = patch_recommendations
|
244
|
+
__args__['severityTypes'] = severity_types
|
245
|
+
__args__['state'] = state
|
246
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
247
|
+
__ret__ = pulumi.runtime.invoke_output('oci:Dblm/getVulnerabilityResources:getVulnerabilityResources', __args__, opts=opts, typ=GetVulnerabilityResourcesResult)
|
248
|
+
return __ret__.apply(lambda __response__: GetVulnerabilityResourcesResult(
|
249
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
250
|
+
cve_id=pulumi.get(__response__, 'cve_id'),
|
251
|
+
database_release=pulumi.get(__response__, 'database_release'),
|
252
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
253
|
+
filters=pulumi.get(__response__, 'filters'),
|
254
|
+
id=pulumi.get(__response__, 'id'),
|
255
|
+
patch_recommendations=pulumi.get(__response__, 'patch_recommendations'),
|
256
|
+
severity_types=pulumi.get(__response__, 'severity_types'),
|
257
|
+
state=pulumi.get(__response__, 'state'),
|
258
|
+
vulnerability_resource_collections=pulumi.get(__response__, 'vulnerability_resource_collections')))
|
@@ -0,0 +1,267 @@
|
|
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
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetVulnerabilityScanResult',
|
19
|
+
'AwaitableGetVulnerabilityScanResult',
|
20
|
+
'get_vulnerability_scan',
|
21
|
+
'get_vulnerability_scan_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetVulnerabilityScanResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getVulnerabilityScan.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, compartment_id=None, defined_tags=None, display_name=None, freeform_tags=None, id=None, state=None, system_tags=None, time_created=None, time_ended=None, vulnerability_scan_id=None, vulnerability_scan_message=None, vulnerability_scan_status=None, vulnerability_scan_type=None):
|
30
|
+
if compartment_id and not isinstance(compartment_id, str):
|
31
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
32
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
33
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
34
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
35
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
36
|
+
if display_name and not isinstance(display_name, str):
|
37
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
38
|
+
pulumi.set(__self__, "display_name", display_name)
|
39
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
40
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
41
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
42
|
+
if id and not isinstance(id, str):
|
43
|
+
raise TypeError("Expected argument 'id' to be a str")
|
44
|
+
pulumi.set(__self__, "id", id)
|
45
|
+
if state and not isinstance(state, str):
|
46
|
+
raise TypeError("Expected argument 'state' to be a str")
|
47
|
+
pulumi.set(__self__, "state", state)
|
48
|
+
if system_tags and not isinstance(system_tags, dict):
|
49
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
50
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
51
|
+
if time_created and not isinstance(time_created, str):
|
52
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
53
|
+
pulumi.set(__self__, "time_created", time_created)
|
54
|
+
if time_ended and not isinstance(time_ended, str):
|
55
|
+
raise TypeError("Expected argument 'time_ended' to be a str")
|
56
|
+
pulumi.set(__self__, "time_ended", time_ended)
|
57
|
+
if vulnerability_scan_id and not isinstance(vulnerability_scan_id, str):
|
58
|
+
raise TypeError("Expected argument 'vulnerability_scan_id' to be a str")
|
59
|
+
pulumi.set(__self__, "vulnerability_scan_id", vulnerability_scan_id)
|
60
|
+
if vulnerability_scan_message and not isinstance(vulnerability_scan_message, str):
|
61
|
+
raise TypeError("Expected argument 'vulnerability_scan_message' to be a str")
|
62
|
+
pulumi.set(__self__, "vulnerability_scan_message", vulnerability_scan_message)
|
63
|
+
if vulnerability_scan_status and not isinstance(vulnerability_scan_status, str):
|
64
|
+
raise TypeError("Expected argument 'vulnerability_scan_status' to be a str")
|
65
|
+
pulumi.set(__self__, "vulnerability_scan_status", vulnerability_scan_status)
|
66
|
+
if vulnerability_scan_type and not isinstance(vulnerability_scan_type, str):
|
67
|
+
raise TypeError("Expected argument 'vulnerability_scan_type' to be a str")
|
68
|
+
pulumi.set(__self__, "vulnerability_scan_type", vulnerability_scan_type)
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter(name="compartmentId")
|
72
|
+
def compartment_id(self) -> str:
|
73
|
+
"""
|
74
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
75
|
+
"""
|
76
|
+
return pulumi.get(self, "compartment_id")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter(name="definedTags")
|
80
|
+
def defined_tags(self) -> Mapping[str, str]:
|
81
|
+
"""
|
82
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "defined_tags")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="displayName")
|
88
|
+
def display_name(self) -> str:
|
89
|
+
"""
|
90
|
+
A user-friendly name. It does not have to be unique, and it is changeable.
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "display_name")
|
93
|
+
|
94
|
+
@property
|
95
|
+
@pulumi.getter(name="freeformTags")
|
96
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
97
|
+
"""
|
98
|
+
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "freeform_tags")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter
|
104
|
+
def id(self) -> str:
|
105
|
+
"""
|
106
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VulnerabilityScan.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "id")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def state(self) -> str:
|
113
|
+
"""
|
114
|
+
The current state of the VulnerabilityScan.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "state")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="systemTags")
|
120
|
+
def system_tags(self) -> Mapping[str, str]:
|
121
|
+
"""
|
122
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "system_tags")
|
125
|
+
|
126
|
+
@property
|
127
|
+
@pulumi.getter(name="timeCreated")
|
128
|
+
def time_created(self) -> str:
|
129
|
+
"""
|
130
|
+
The date and time the VulnerabilityScan was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
131
|
+
"""
|
132
|
+
return pulumi.get(self, "time_created")
|
133
|
+
|
134
|
+
@property
|
135
|
+
@pulumi.getter(name="timeEnded")
|
136
|
+
def time_ended(self) -> str:
|
137
|
+
"""
|
138
|
+
The date and time the VulnerabilityScan was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
139
|
+
"""
|
140
|
+
return pulumi.get(self, "time_ended")
|
141
|
+
|
142
|
+
@property
|
143
|
+
@pulumi.getter(name="vulnerabilityScanId")
|
144
|
+
def vulnerability_scan_id(self) -> str:
|
145
|
+
return pulumi.get(self, "vulnerability_scan_id")
|
146
|
+
|
147
|
+
@property
|
148
|
+
@pulumi.getter(name="vulnerabilityScanMessage")
|
149
|
+
def vulnerability_scan_message(self) -> str:
|
150
|
+
"""
|
151
|
+
The message of the vulnerability scan status.
|
152
|
+
"""
|
153
|
+
return pulumi.get(self, "vulnerability_scan_message")
|
154
|
+
|
155
|
+
@property
|
156
|
+
@pulumi.getter(name="vulnerabilityScanStatus")
|
157
|
+
def vulnerability_scan_status(self) -> str:
|
158
|
+
"""
|
159
|
+
The status of the vulnerability scan.
|
160
|
+
"""
|
161
|
+
return pulumi.get(self, "vulnerability_scan_status")
|
162
|
+
|
163
|
+
@property
|
164
|
+
@pulumi.getter(name="vulnerabilityScanType")
|
165
|
+
def vulnerability_scan_type(self) -> str:
|
166
|
+
"""
|
167
|
+
Scan type is CVE, PATCH or IMAGE_PATCH
|
168
|
+
"""
|
169
|
+
return pulumi.get(self, "vulnerability_scan_type")
|
170
|
+
|
171
|
+
|
172
|
+
class AwaitableGetVulnerabilityScanResult(GetVulnerabilityScanResult):
|
173
|
+
# pylint: disable=using-constant-test
|
174
|
+
def __await__(self):
|
175
|
+
if False:
|
176
|
+
yield self
|
177
|
+
return GetVulnerabilityScanResult(
|
178
|
+
compartment_id=self.compartment_id,
|
179
|
+
defined_tags=self.defined_tags,
|
180
|
+
display_name=self.display_name,
|
181
|
+
freeform_tags=self.freeform_tags,
|
182
|
+
id=self.id,
|
183
|
+
state=self.state,
|
184
|
+
system_tags=self.system_tags,
|
185
|
+
time_created=self.time_created,
|
186
|
+
time_ended=self.time_ended,
|
187
|
+
vulnerability_scan_id=self.vulnerability_scan_id,
|
188
|
+
vulnerability_scan_message=self.vulnerability_scan_message,
|
189
|
+
vulnerability_scan_status=self.vulnerability_scan_status,
|
190
|
+
vulnerability_scan_type=self.vulnerability_scan_type)
|
191
|
+
|
192
|
+
|
193
|
+
def get_vulnerability_scan(vulnerability_scan_id: Optional[str] = None,
|
194
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVulnerabilityScanResult:
|
195
|
+
"""
|
196
|
+
This data source provides details about a specific Vulnerability Scan resource in Oracle Cloud Infrastructure Dblm service.
|
197
|
+
|
198
|
+
Gets information about a VulnerabilityScan.
|
199
|
+
|
200
|
+
## Example Usage
|
201
|
+
|
202
|
+
```python
|
203
|
+
import pulumi
|
204
|
+
import pulumi_oci as oci
|
205
|
+
|
206
|
+
test_vulnerability_scan = oci.Dblm.get_vulnerability_scan(vulnerability_scan_id=test_vulnerability_scan_oci_dblm_vulnerability_scan["id"])
|
207
|
+
```
|
208
|
+
|
209
|
+
|
210
|
+
:param str vulnerability_scan_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VulnerabilityScan.
|
211
|
+
"""
|
212
|
+
__args__ = dict()
|
213
|
+
__args__['vulnerabilityScanId'] = vulnerability_scan_id
|
214
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
215
|
+
__ret__ = pulumi.runtime.invoke('oci:Dblm/getVulnerabilityScan:getVulnerabilityScan', __args__, opts=opts, typ=GetVulnerabilityScanResult).value
|
216
|
+
|
217
|
+
return AwaitableGetVulnerabilityScanResult(
|
218
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
219
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
220
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
221
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
222
|
+
id=pulumi.get(__ret__, 'id'),
|
223
|
+
state=pulumi.get(__ret__, 'state'),
|
224
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
225
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
226
|
+
time_ended=pulumi.get(__ret__, 'time_ended'),
|
227
|
+
vulnerability_scan_id=pulumi.get(__ret__, 'vulnerability_scan_id'),
|
228
|
+
vulnerability_scan_message=pulumi.get(__ret__, 'vulnerability_scan_message'),
|
229
|
+
vulnerability_scan_status=pulumi.get(__ret__, 'vulnerability_scan_status'),
|
230
|
+
vulnerability_scan_type=pulumi.get(__ret__, 'vulnerability_scan_type'))
|
231
|
+
def get_vulnerability_scan_output(vulnerability_scan_id: Optional[pulumi.Input[str]] = None,
|
232
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVulnerabilityScanResult]:
|
233
|
+
"""
|
234
|
+
This data source provides details about a specific Vulnerability Scan resource in Oracle Cloud Infrastructure Dblm service.
|
235
|
+
|
236
|
+
Gets information about a VulnerabilityScan.
|
237
|
+
|
238
|
+
## Example Usage
|
239
|
+
|
240
|
+
```python
|
241
|
+
import pulumi
|
242
|
+
import pulumi_oci as oci
|
243
|
+
|
244
|
+
test_vulnerability_scan = oci.Dblm.get_vulnerability_scan(vulnerability_scan_id=test_vulnerability_scan_oci_dblm_vulnerability_scan["id"])
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
:param str vulnerability_scan_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VulnerabilityScan.
|
249
|
+
"""
|
250
|
+
__args__ = dict()
|
251
|
+
__args__['vulnerabilityScanId'] = vulnerability_scan_id
|
252
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
253
|
+
__ret__ = pulumi.runtime.invoke_output('oci:Dblm/getVulnerabilityScan:getVulnerabilityScan', __args__, opts=opts, typ=GetVulnerabilityScanResult)
|
254
|
+
return __ret__.apply(lambda __response__: GetVulnerabilityScanResult(
|
255
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
256
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
257
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
258
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
259
|
+
id=pulumi.get(__response__, 'id'),
|
260
|
+
state=pulumi.get(__response__, 'state'),
|
261
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
262
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
263
|
+
time_ended=pulumi.get(__response__, 'time_ended'),
|
264
|
+
vulnerability_scan_id=pulumi.get(__response__, 'vulnerability_scan_id'),
|
265
|
+
vulnerability_scan_message=pulumi.get(__response__, 'vulnerability_scan_message'),
|
266
|
+
vulnerability_scan_status=pulumi.get(__response__, 'vulnerability_scan_status'),
|
267
|
+
vulnerability_scan_type=pulumi.get(__response__, 'vulnerability_scan_type')))
|