This documentation is for WSO2 Private PaaS 4.1.0. View documentation for the latest release.
Page Comparison - Application Resource Definition (v.3 vs v.4) - WSO2 Private PaaS 4.1.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following are sample configurations that can be used in a JSON to define an application:

Excerpt-include

...

Localtab
titleSingle Tenant
Code Block
{  
   "applicationId":"wordpress",
   "alias":"wordpress",
   "components":{  
      "groups":[  
         {  
            "name":"mysql-php-group",
            "alias":"mysql-php-group",
            "groupMinInstances":1,
            "groupMaxInstances":1,
            "cartridges":[  
               {  
                  "type":"mysql",
                  "cartridgeMin":2,
                  "cartridgeMax":5,
                  "subscribableInfo":{  
                     "alias":"my-mysql",
                     "deploymentPolicy":"deployment-policy-2",
                     "autoscalingPolicy":"autoscaling-policy-1"
                  }
               },
               {  
                  "type":"php",
                  "cartridgeMin":2,
                  "cartridgeMax":5,
                  "subscribableInfo":{  
                     "alias":"my-php",
                     "deploymentPolicy":"deployment-policy-2",
                     "autoscalingPolicy":"autoscaling-policy-1",
                     "artifactRepository":{  
                        "privateRepo":false,
                        "repoUrl":"https://github.com/imesh/stratos-php-applications.git"
                     }
                  }
               }
            ]
         }
      ]
   }
}

...

titleMulti-tenant
Note
  • An application can only be multi-tenant, if all cartridges that correspond to the application are multi-tenant.
  • The artifact repository details should not be entered in a multi-tenant application definition. Instead, these details need to be passed in the payload at the time of application sign up.

...

Adding an Application
Adding an Application
nopaneltrue

Property definitions

All the properties that correspond to the application resource are explained as follows: 

...