VMware Cloud Community
slogoheinzy
Contributor
Contributor
Jump to solution

vrni application tier build via api

Hi

 

im having difficulty building an application  tier using the api

I want my tier criteria to be based on my vm  tagging scheme  and / or a particular security group that my vms belong to

I have so far successfully created an empty application:

Then, for my tier, my payload looks like this:

 

payload = json.dumps({
  "name""tier-1",
  "group_membership_criteria": [
    {
      "membership_type""SearchMembershipCriteria",
      "search_membership_criteria": {
        "entity_type""VirtualMachine",
        "filter": "security_groups.entity_id = '10000:958:5379998410185093632'"                          # this is a valid SG entity
     }
    }
  ]
 
or i have tried this:
 
payload = json.dumps({
  "name""tier-1",
  "group_membership_criteria": [
    {
      "membership_type""SearchMembershipCriteria",
      "search_membership_criteria": {
        "entity_type""VirtualMachine",
        "filter""tag='Zone:test'"                                                           # i have a bunch of vms tagged with this
     }
    }
  ]
 
in both cases. i get this  error:
 
('{"code":400,"message":"One or more of the properties defined in the custom '
'search criteria are not supported.","details":[]}')
 
 
many thanks for for any help you can give me
 
 
I have successfully built a tier based on an explicit ip address, but this isnt what i want
0 Kudos
1 Solution

Accepted Solutions
slogoheinzy
Contributor
Contributor
Jump to solution

this issue was successfully resolved by a vrni upgrade - VMware tech support told me that its a known issue which was resolved in 6.6

View solution in original post

0 Kudos
1 Reply
slogoheinzy
Contributor
Contributor
Jump to solution

this issue was successfully resolved by a vrni upgrade - VMware tech support told me that its a known issue which was resolved in 6.6

0 Kudos