VMware Cloud Community
mkmr
Contributor
Contributor
Jump to solution

retreiving VM host count using custom attribute

Hi there..

I am new to this space.. I am looking for a way to retrieve the VM host count using the custom attribute filter via programmatically. Can you please suggest me how can i achieve this?

From my CI-CD script i am provisioning VM's using terraform and i want to have validation check before that (Limit the no of VM's to be provisioned per team).

1) There is set of standard rest API's but it doesn't support for custom attributes.

2) PowerCLI commands . but that doen't work on Ubuntu / CentOS due to this issue.

Thanks

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
3 Replies
daphnissov
Immortal
Immortal
Jump to solution

There is no problem for me running PowerCLI on CentOS 7 via PowerShell Core. So I'd suggest you look into why you're getting that failure rather than trying to find a workaround.

Reply
0 Kudos
mkmr
Contributor
Contributor
Jump to solution

Thanks daphnissov​. So you suggest to use PowerCli to get the inventory details ?

Reply
0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Reply
0 Kudos