back
terraform {
required_providers {
oci = ">= 4.21.0"
}
}
top
module "oci_core_private_ips" {
source = "./modules/oci/d/oci_core_private_ips"
# ip_address - (optional) is a type of string
ip_address = null
# subnet_id - (optional) is a type of string
subnet_id = null
# vlan_id - (optional) is a type of string
vlan_id = null
# vnic_id - (optional) is a type of string
vnic_id = null
filter = [{
name = null
regex = null
values = []
}]
}
top
variable "ip_address" {
description = "(optional)"
type = string
default = null
}
variable "subnet_id" {
description = "(optional)"
type = string
default = null
}
variable "vlan_id" {
description = "(optional)"
type = string
default = null
}
variable "vnic_id" {
description = "(optional)"
type = string
default = null
}
variable "filter" {
description = "nested block: NestingSet, min items: 0, max items: 0"
type = set(object(
{
name = string
regex = bool
values = list(string)
}
))
default = []
}
top
data "oci_core_private_ips" "this" {
# ip_address - (optional) is a type of string
ip_address = var.ip_address
# subnet_id - (optional) is a type of string
subnet_id = var.subnet_id
# vlan_id - (optional) is a type of string
vlan_id = var.vlan_id
# vnic_id - (optional) is a type of string
vnic_id = var.vnic_id
dynamic "filter" {
for_each = var.filter
content {
# name - (required) is a type of string
name = filter.value["name"]
# regex - (optional) is a type of bool
regex = filter.value["regex"]
# values - (required) is a type of list of string
values = filter.value["values"]
}
}
}
top
output "id" {
description = "returns a string"
value = data.oci_core_private_ips.this.id
}
output "private_ips" {
description = "returns a list of object"
value = data.oci_core_private_ips.this.private_ips
}
output "this" {
value = oci_core_private_ips.this
}
top