cancel
Showing results for 
Search instead for 
Did you mean: 

Naming servers using AS3 Declaration

cookiemonster
Altostratus
Altostratus

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"

                        }

                    ]

                }

            }

        }

    }

}

 

 

0691T000008GW2DQAW.png

1 REPLY 1

Samantha6
Nimbostratus
Nimbostratus

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