bluecat_ipv4block resource - Adaptive Plugins - BlueCat Gateway - 2.3.0

BlueCat Terraform Plugin Administration Guide

ft:locale
en-US
Product name
BlueCat Gateway
Version
2.3.0

Allows for the creation or updating of an IPv4 Block in Address Manager.

Attributes
Attribute Required/Optional Description Example
configuration Optional The BAM configuration. If unspecified, the IPvBlock record is created in the default configuration terraform_demo
name Required The name of the Block. Server Farm IPv4
parent_block Optional The parent block (CIDR format). Required for creating a child or next available block. 10.1.0.0/16
address Optional Pv4 block address. Required when creating a specific block. 10.1.0.0
cidr Optional IPv4 block CIDR notation. Required when creating a specific block. 24
size Optional

Block size as a power of 2. Required for next available block.

256
allocated_id Optional Allocated ID of the next available block. Recommended for stable retrieval timestamp()
ip_version Optional Options: ipv4 or ipv6. Defaults to ipv4 if unspecified ipv4
properties Optional

Record properties to pass

attribute=value

Example of a specified IPv4 Block resource:

resource "bluecat_ipv4block" "block_record" {
      configuration = "terraform_demo"
      name = "block1"
      parent_block = ""
      address = "30.0.0.0"
      cidr = "24"
      ip_version = "ipv4"
      properties = "allowDuplicateHost=enable"
      depends_on = [bluecat_configuration.conf_record]
    }

Example of a next available IPv4 Block resource:

resource "bluecat_ipv4block" "next_available_block_record" {
      configuration = "terraform_demo"
      name = "next available block1"
      parent_block = "30.0.0.0/16"
      size = "256"
      allocated_id = timestamp()
      ip_version = "ipv4"
      properties = "allowDuplicateHost=enable"
      depends_on = [bluecat_configuration.conf_record]
    }