BlueCat data import recommendations - Adaptive Plugins - BlueCat Gateway - 2.2.1

BlueCat Terraform Plugin Administration Guide

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

If the resource block is not included, a terraform plan -generate-config-out=.tf command must be run to create a configuration file with the resource that is being imported. The file does not specify optional attributes and uses the default value for required attributes where applicable.

Including the resource block allows you to specify the exact attributes that should be assigned to the resource as it is imported, overwriting any values that are currently assigned to the resource in Address Manager.

Example:
#Block 
import{ 
    to=bluecat_ipv4block.import_block 
    id="10.2.0.0/16" 
} 
resource "bluecat_ipv4block" "import_block" { 
    configuration = "demo" 
    name = "10_2/16 Block (import)" 
    parent_block = "10.0.0.0/8" 
    address = "10.2.0.0" 
    cidr = "16" 
    ip_version = "ipv4" 
    properties = "allowDuplicateHost=enable" 
    depends_on = [bluecat_ipv4block.block_10_record, bluecat_ipv4block.block_10_16_record]
}

For the latest information on resources, refer to the Address Manager Administration Guide.