VMware Cloud Community
chrischrischris
Enthusiast
Enthusiast
Jump to solution

vRA 8.9: How to change a deployment lease?

Hi all,

I need to change a deployment lease under vRA 8.9 and I'm not sure where to start...

 

Thanks!

-Chris

0 Kudos
1 Solution
9 Replies
xian_
Expert
Expert
Jump to solution

xian__0-1662146185169.png

 

0 Kudos
chrischrischris
Enthusiast
Enthusiast
Jump to solution

HI xian_,

Thank you for your help.

I changed the subject to reflect that I want to do this via PowerShell.

 

Thanks again,

-Chris

0 Kudos
chrischrischris
Enthusiast
Enthusiast
Jump to solution

Hi _xian,

Those cmdlets do not seem to exist in PowervRA version 5.2.0:

2022-09-02_12-56-37.png

-Chris

0 Kudos
xian_
Expert
Expert
Jump to solution

Sorry, it works with vra7 only...

Here is another PS module PowervRACloud

PowervRACloud 1.5 Documentation Change-vRA-DeploymentLease

 

0 Kudos
chrischrischris
Enthusiast
Enthusiast
Jump to solution

Thanks xian_,

Where can I download that module?

 

0 Kudos
Windspirit
Hot Shot
Hot Shot
Jump to solution

https://developer.vmware.com/apis/657#/Deployment%20Actions

as well as :

https://developer.vmware.com/docs/14701/vrealize-automation-8-6-api-programming-guide?h=vRealize%20A...

in vRO:

INPUTS:vraHost,action,path,payload

var restClient = vraHost.createRestClient();
var request = restClient.createRequest(action, path, payload);
var response = restClient.execute(request);
asString=response.contentAsString;
System.log(asString);
jsonObjct=JSON.parse(asString)
 
0 Kudos
xian_
Expert
Expert
Jump to solution

GitHub - munishpalmakhija/powershell-for-vrealize-automation-cloud: Powershell for vRealize Automati...

You'll need PS6 at least. I tried with PS7:

Install-Module -Name PowervRACloud -Scope CurrentUser

Import-Module PowervRACloud

0 Kudos
NE015757
Contributor
Contributor
Jump to solution

when i try to change the lease it doesn't change what am i doing wrong?

0 Kudos