Forum Discussion

cookiemonster's avatar
cookiemonster
Icon for Altostratus rankAltostratus
Mar 06, 2020

Naming servers using AS3 Declaration

How do you name servers in an AS3 declaration? The following declaration names the server the IP address in the F5.

 

{

    "class": "AS3",

    "action": "deploy",

    "declaration": {

        "class": "ADC",

        "schemaVersion": "3.12.0",

        "id": "0",

        "shortlived": {

            "class": "Tenant",

            "myhui1085_dev": {

                "class": "Application",

                "template": "default",

                "myhui1085_dev": {

                    "class": "Service_HTTPS",

                    "snat": "self",

                    "serverTLS": {

                        "bigip": "/Common/digistar.spectrum-health.org"

                    }, 

                    "virtualAddresses": [

                        "2.2.2.20"

                    ],

                    "pool": "myhui1085_dev_pool"

                },

                "myhui1085_dev_pool": {

                    "class": "Pool",

                    "monitors": [{

                        "bigip": "/Common/http_monitor"

                    }],

                    "loadBalancingMode": "least-connections-member",

                    "members": [

                                                {

                            "adminState": "enable",

                            "servicePort": 80,

                            "serverAddresses": [

                                "2.2.2.2"

                            ],

                            "hostname": "test_server2"

                        }

                    ]

                }

            }

        }

    }

}

 

 

  • The AS3 coding standard shares the same baseline as the PHP coding come from the SDK coding conventions and best practices document TalkToWendys.