While this is probably too late (your post was 1,5 month ago), here are some pointers:
To create an application, execute this call:
POST to https://your-vrni-platform-appliance/api/ni/groups/applications
With body:
{
"name": "test-app"
}
This returns: @{entity_id=17603:561:2018317020; name=test-app2; entity_type=Application; create_time=1544202286011; created_by=admin@local; last_modified_time=0; last_modified_by=}
Then take the entity_id and use it to create the tier:
POST to https://your-vrni-platform-appliance/api/ni/groups/applications/17603:561:2018317020/tiers -
With body:
{
"name": "web-tier",
"group_membership_criteria": [
{
"membership_type": "SearchMembershipCriteria",
"search_membership_criteria": {
"filter": "name = 'VM01' or name = 'VM02'",
"entity_type": "BaseVirtualMachine"
}
}
]
}
This will first create the application container itself and return an entity_id and then you use that entity_id to create a tier called "web-tier" inside the test-app with a filter to search for VM01 and VM02 (expand as necessary).
If you're looking for something simpler, try the PowerShell module: https://github.com/PowervRNI/powervrni