VMware Cloud Community
HariRajan
Hot Shot
Hot Shot
Jump to solution

Changing lease based on the custom property as soon as end user place a catalog request in VRA 7 with EBS

I have a requirement to set the initial lease based on the custom property such as  if company.custom.env= prod { set __Cafe.Request.VM.LeaseDays = 365} else if company.custom.env= eng { set __Cafe.Request.VM.LeaseDays = 65}

But i got stuck in updating this hidden properties run time ,  Please let me know if you have some idea to update a hidden property using vRO workflow

#vRAVmProperties.get("__Cafe.Request.VM.LeaseDays")

Thanks & Regards in Plenteous . Hari Rajan
Reply
0 Kudos
1 Solution

Accepted Solutions
HariRajan
Hot Shot
Hot Shot
Jump to solution

As of now I believe , hidden properties are not changeable using EBS payload , But can achieve the same using JSON ASD workflow as like below.

var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);

var testrequest = JSON.parse(jsonData);

testrequest["_leaseDays"] =catalogleasedays;

Please let me know if you know a straight forward option using EBS ,

Thanks & Regards in Plenteous . Hari Rajan

View solution in original post

Reply
0 Kudos
2 Replies
HariRajan
Hot Shot
Hot Shot
Jump to solution

I have tried as like below but no progress , whether anybody knows how we can update a hidden property and appreciate your help.

virtualMachineAddOrUpdateProperties.put('__Cafe.Request.VM.LeaseDays', '15');

Thanks & Regards in Plenteous . Hari Rajan
Reply
0 Kudos
HariRajan
Hot Shot
Hot Shot
Jump to solution

As of now I believe , hidden properties are not changeable using EBS payload , But can achieve the same using JSON ASD workflow as like below.

var jsonData = vCACCAFERequestsHelper.getProvisioningRequestData(provisioningRequest);

var testrequest = JSON.parse(jsonData);

testrequest["_leaseDays"] =catalogleasedays;

Please let me know if you know a straight forward option using EBS ,

Thanks & Regards in Plenteous . Hari Rajan
Reply
0 Kudos