Forum Discussion

RemcoAA's avatar
RemcoAA
Icon for Altostratus rankAltostratus
Nov 15, 2023

AS3 GTM object of type: gtm_server can only be created in /Common.

I am trying to create a template for GSLB deployments with AS3 but have an issue creating the Servers in the tenant partion.

This is the code I am using for the server:

 

 

"testServer1": {
                    "class": "GSLB_Server",
                    "serverType": "generic-host",
                    "dataCenter": {"bigip": "/Common/DC1"},
                    "devices": [
                        {
                            "address": "1.2.3.4"
                        }
                    ],
                    "monitors": [],
                    "virtualServers": [
                        {
                            "address": "1.2.3.4",
                            "port": 443,
                            "name": "virtualAddress1",
                            "monitors": [
                                {
                                    "use": "Monitor_Test"
                                }
                            ]
                        }
                    ]
                },

 

 

 So I have specified the server type as "generic-host" but I am getting this error:

 

"message": "declaration failed",
"response": "0107141a:3: GTM object (/<tenant>/testServer1 of type: gtm_server) can only be created in /Common."
 
Why is the type not correct?

5 Replies

    • RemcoAA's avatar
      RemcoAA
      Icon for Altostratus rankAltostratus

      Not sure what I should see on this github post, I know a generic-host type exist, but I want to know why I cannot create this is a Tenant partition. The error states that typ "gtm_server" needs to be in Common which I understand but I am not trying to create a gtm_server type,

      GTM object (/<tenant>/testServer1 of type: gtm_server) can only be created in /Common."

      But in the mean time found this Article:

      https://my.f5.com/manage/s/article/K01990709

      Certain GSLB objects cannot be created or modified in non-default administrative partitions. You must create and modify the following objects from the /Common partition:

      • Data centers
      • Servers
      • Links
      • Prober pools
      • DNSSEC zones
      • DNSSEC keys
      • Regions

      So it looks like you can only create Servers in the Common partition, even if they are specific to one Tenant only. Is this by design?

      Does somebody also know what to do with Tenant specific monitors for the virtualservers, do these also need to be in the Common partition because the servers are also in Common?

      • Tenant specific monitors for the virtualservers can reside in that particular partition, but they will not be visible in other partitions, for re-use of pbkjects you can put in /Common partition ellse tenant specifi put in  a particular partition.