Hello All,
I am really really suffering here ![]()
Have been looking for GTM ONLY code in AS3 form, need a simple code hardcoded values will also work.
I have seen documentation and couldn’t see exact use case. We are doing POC for where VMs are directly added to GTM and NO LTM component are there.
Would really appreciate any help and guidance here. Any simple code work snippet using only AS3 please.
This code is working for creating DC and GTM from scratch but it doesn’t work for existing ones.
resource "bigip_as3" "gtm_configuration" {
provider = bigip.te
as3_json = jsonencode({
class = "AS3"
action = "deploy"
persist = true
declaration = {
class = "ADC",
schemaVersion = "3.41.0",
id = "GSLB_Sample",
Common = {
class = "Tenant",
Shared = {
class = "Application",
template = "shared",
testDataCenter = {
class = "GSLB_Data_Center"
}
testServer = {
class = "GSLB_Server",
dataCenter = {
use = "testDataCenter"
},
devices = [
{
address = "1.2.3.7"
}
],
virtualServers = [
{
address = "1.2.3.8",
port = 5050,
name = "virtualAddress1"
},
{
address = "1.2.3.9",
port = 5051,
name = "virtualAddress2"
}
]
}
}
}
}
})
}
Thanks & Regards,
Ravinder Singh