-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2113 from oracle/release_gh
Release gh
- Loading branch information
Showing
438 changed files
with
34,265 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
examples/datasafe/masking_report_management/masking_report_management.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
|
||
variable "tenancy_ocid" {} | ||
variable "user_ocid" {} | ||
variable "fingerprint" {} | ||
variable "private_key_path" {} | ||
variable "region" {} | ||
variable "data_safe_target_ocid" {} | ||
variable "masking_policy_id" {} | ||
|
||
|
||
provider "oci" { | ||
tenancy_ocid = var.tenancy_ocid | ||
user_ocid = var.user_ocid | ||
fingerprint = var.fingerprint | ||
private_key_path = var.private_key_path | ||
region = var.region | ||
} | ||
|
||
|
||
resource "oci_data_safe_masking_report_management" "test_masking_report_management" { | ||
#Required | ||
target_id = var.data_safe_target_ocid | ||
masking_policy_id = var.masking_policy_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
|
||
|
||
variable "email_return_path_state" { | ||
default = "ACTIVE" | ||
} | ||
|
||
variable "domain_verification_id" { | ||
|
||
} | ||
|
||
variable "email_domain" { | ||
default = "objdomain.email.ap-mumbai-1.oci.oc-test.com" | ||
} | ||
|
||
variable "description" { | ||
default = "description2" | ||
} | ||
|
||
variable "department" { | ||
default = "Accounting" | ||
} | ||
|
||
|
||
data "oci_email_email_return_paths" "test_email_return_paths" { | ||
compartment_id = var.compartment_ocid | ||
filter { | ||
name = "id" | ||
values = ["${oci_email_email_return_path.test_email_return_path.id}"] | ||
} | ||
id = "${oci_email_email_return_path.test_email_return_path.id}" | ||
name = "tfrp.${oci_email_email_domain.test_email_domain_rp.name}" | ||
parent_resource_id = "${oci_email_email_domain.test_email_domain_rp.id}" | ||
state = var.email_return_path_state | ||
} | ||
|
||
resource "oci_email_email_domain" "test_email_domain_rp" { | ||
compartment_id = var.compartment_ocid | ||
domain_verification_id = var.domain_verification_id | ||
name = var.email_domain | ||
} | ||
|
||
resource "oci_email_email_return_path" "test_email_return_path" { | ||
description = var.description | ||
freeform_tags = { | ||
"Department" = var.department | ||
} | ||
name = "tfrp.${oci_email_email_domain.test_email_domain_rp.name}" | ||
parent_resource_id = "${oci_email_email_domain.test_email_domain_rp.id}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
|
||
variable "tenancy_ocid" {} | ||
variable "user_ocid" {} | ||
variable "fingerprint" {} | ||
variable "private_key_path" {} | ||
variable "region" {} | ||
|
||
variable "compartment_ocid" { | ||
} | ||
|
||
variable "vcn_ocid" { | ||
} | ||
|
||
variable "subnet_ocid" { | ||
} | ||
|
||
variable "ip_inventory_vcn_overlap_compartment_list" { | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
variable "ip_inventory_vcn_overlap_region_list" { | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
provider "oci" { | ||
tenancy_ocid = var.tenancy_ocid | ||
user_ocid = var.user_ocid | ||
fingerprint = var.fingerprint | ||
private_key_path = var.private_key_path | ||
region = var.region | ||
} | ||
|
||
// Get VCN Overlap | ||
data "oci_core_ip_inventory_vcn_overlaps" "test_ip_inventory_vcn_overlaps" { | ||
#Required | ||
compartment_list = var.ip_inventory_vcn_overlap_compartment_list | ||
region_list = var.ip_inventory_vcn_overlap_region_list | ||
vcn_id = var.vcn_ocid | ||
} | ||
|
||
// Subnet CIDR Utilisation | ||
data "oci_core_ip_inventory_subnet_cidr" "test_ip_inventory_subnet_cidrs" { | ||
#Required | ||
subnet_id = var.subnet_ocid | ||
} | ||
|
||
// Subnet Details | ||
data "oci_core_ip_inventory_subnet" "test_ip_inventory_subnets" { | ||
#Required | ||
subnet_id = var.subnet_ocid | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
|
||
variable "tenancy_ocid" {} | ||
variable "user_ocid" {} | ||
variable "fingerprint" {} | ||
variable "private_key_path" {} | ||
variable "region" {} | ||
variable "compartment_id" {} | ||
variable "lifecycle_stage_id" {} | ||
|
||
|
||
provider "oci" { | ||
tenancy_ocid = var.tenancy_ocid | ||
user_ocid = var.user_ocid | ||
fingerprint = var.fingerprint | ||
private_key_path = var.private_key_path | ||
region = var.region | ||
} | ||
|
||
# List all entitlements in a compartment | ||
# -------------------------------------- | ||
data "oci_os_management_hub_entitlements" "test_entitlements" { | ||
compartment_id = "${var.compartment_id}" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
|
||
variable "tenancy_ocid" {} | ||
variable "user_ocid" {} | ||
variable "fingerprint" {} | ||
variable "private_key_path" {} | ||
variable "region" {} | ||
variable "compartment_id" {} | ||
|
||
provider "oci" { | ||
tenancy_ocid = var.tenancy_ocid | ||
user_ocid = var.user_ocid | ||
fingerprint = var.fingerprint | ||
private_key_path = var.private_key_path | ||
region = var.region | ||
} | ||
|
||
|
||
data "oci_os_management_hub_errata" "test_errata" { | ||
#Required | ||
compartment_id = "${var.compartment_id}" | ||
|
||
#Optional | ||
name = ["ELBA-2024-12244"] | ||
name_contains = "ELBA-2024-12244" | ||
} | ||
|
||
data "oci_os_management_hub_errata" "test_errata_2" { | ||
#Required | ||
compartment_id = "${var.compartment_id}" | ||
|
||
#Optional | ||
classification_type = ["BUGFIX"] | ||
name = ["ELBA-2024-12244"] | ||
name_contains = "ELBA-2024-12244" | ||
os_family = "ORACLE_LINUX_9" | ||
time_issue_date_end = "2024-04-01T00:00:00.000Z" | ||
time_issue_date_start = "2024-03-20T00:00:00.000Z" | ||
} | ||
|
||
|
||
data "oci_os_management_hub_erratum" "test_erratum" { | ||
compartment_id = "${var.compartment_id}" | ||
name = "ELBA-2024-12244" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// Licensed under the Mozilla Public License v2.0 | ||
variable "tenancy_ocid" {} | ||
variable "user_ocid" {} | ||
variable "fingerprint" {} | ||
variable "private_key_path" {} | ||
variable "region" {} | ||
variable "compartment_id" {} | ||
variable "event_id" {} | ||
variable "osmh_managed_instance_ocid" {} | ||
|
||
provider "oci" { | ||
tenancy_ocid = var.tenancy_ocid | ||
user_ocid = var.user_ocid | ||
fingerprint = var.fingerprint | ||
private_key_path = var.private_key_path | ||
region = var.region | ||
} | ||
|
||
|
||
# Event has no public create API. Refer to https://confluence.oci.oraclecorp.com/x/Q5W15Q for creating events. | ||
|
||
### Event | ||
# Update tag and compartment | ||
resource "oci_os_management_hub_event" "test_event" { | ||
compartment_id = "${var.compartment_id}" | ||
event_id = "${var.event_id}" | ||
freeform_tags = { | ||
"Department" = "Finance" | ||
} | ||
} | ||
|
||
# List Event | ||
|
||
data "oci_os_management_hub_events" "test_events" { | ||
compartment_id = "${var.compartment_id}" | ||
event_summary = "Manually created event 2 for testing caused by <Yijiu>" | ||
event_summary_contains = "testing" | ||
filter { | ||
name = "id" | ||
values = ["${var.event_id}"] | ||
} | ||
id = "${var.event_id}" | ||
is_managed_by_autonomous_linux = "true" | ||
resource_id = "${var.osmh_managed_instance_ocid}" | ||
state = "ACTIVE" | ||
time_created_greater_than_or_equal_to = "2018-01-01T00:00:00.000Z" | ||
time_created_less_than = "2088-01-01T00:00:00.000Z" | ||
type = ["EXPLOIT_ATTEMPT"] | ||
} | ||
|
||
# Get Event | ||
data "oci_os_management_hub_event" "test_event" { | ||
# Required | ||
event_id = "${var.event_id}" | ||
} |
Oops, something went wrong.