Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

AS3 Json for pool creation

Lemaire_Frédéri
Nimbostratus
Nimbostratus

Hello, 

I'm new with AS3 and I'd like to create a pool on a partition .

I used the following Json file :

{
   "class": "AS3",
   "action": "deploy",
   "persist": true,
   "declaration": {
    "class": "ADC",
    "schemaVersion": "3.41.0",
    "id": "Pool",
        "LABO-PART": {
            "class": "Tenant",
            "AppName": {
                "class": "Application",
                "Fred-As3-Pool1": {
                    "class": "Pool",
                    "members": [
                        {
                            "servicePort": 8080,
                            "addressDiscovery": "static",
                            "serverAddresses": [
                                "192.0.2.2",
                                "192.0.2.3"
                            ],
                            "servers": [
                                {
                                    "name": "myNode1.example.com",
                                    "address": "192.0.2.10"
                                },
                                {
                                    "name": "myNode2.example.com",
                                    "address": "192.0.2.11"
                                }
                            ]
                        }
                    ]
                }
            }
        }
    }      
}
 
This file works when executing the POST to the AS3 of my F5 Bigip but it create the pool with the following path :

Fred-As3-Pool1  4LABO-PART/AppName

Is it a way to avoid using the Application class in the json so that my pool is located in the LABO-PART and not under LABO-PART/AppName ?

When looking at our Common partition where all our pool that have been created using the GUI, they are in the common partition without a specific path.

Don't know why Json require to have the application name as path. Is it a standard in Json ? 

How to create a pool using json AS3 without being obliged to user APplication class ?

Thanks in advance.

REgards

Frédéric

 

T

1 ACCEPTED SOLUTION

Have you seen https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/faq.html ?

 

Does BIG-IP AS3 support multi-tenancy?

  • Yes, BIG-IP AS3 creates and uses additional partitions to enable multi-tenancy
  • BIG-IP AS3 ONLY writes to the Common partition when you specifically use the Common tenant with the Shared application (/Common/Shared); see the next FAQ entry
  • BIG-IP AS3 writes to the Common partition as required for some GSLB configurations
  • BIG-IP AS3 does NOT have access to tenants/partitions other than those it creates and /Common

View solution in original post

6 REPLIES 6

Have you seen https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/faq.html ?

 

Does BIG-IP AS3 support multi-tenancy?

  • Yes, BIG-IP AS3 creates and uses additional partitions to enable multi-tenancy
  • BIG-IP AS3 ONLY writes to the Common partition when you specifically use the Common tenant with the Shared application (/Common/Shared); see the next FAQ entry
  • BIG-IP AS3 writes to the Common partition as required for some GSLB configurations
  • BIG-IP AS3 does NOT have access to tenants/partitions other than those it creates and /Common

Hey @Lemaire_Frédéri  - I'm going to mark this as the Accepted Solution so future users with the same questions can easily find the answer. If the answer didn't help you, let me know and I'll revoke the status. 

Cheers,

Leslie

Why ask here under another question? Better open you own discussion, so that things don't get mixed up and I am certain that you will get the correct answer really fast as this is not complex to do. But still in @Lemaire_Frédéri AS3 setup I see a difference between the server IP addresses in "members" and in "servers" and this is strange.

My bad @Nikoolayy1 - that prev comment was from a now-banned user. I can delete your (and my) reply if you like?

Ok this seems the better option.

In your as3 config @Lemaire_Frédéri  AS3 setup I see a difference between the server IP addresses in "members" and in "servers" and this is strange. The examples for adding pool member names at the link below with " "servers": [" the IP addresses need to be the same as the ones under " "serverAddresses"


https://github.com/F5Networks/f5-appsvcs-extension/issues/161