mkmr
Contributor
Contributor

retreiving VM host count using custom attribute

Jump to solution

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)
0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
0 Kudos
3 Replies
daphnissov
Immortal
Immortal

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.

0 Kudos
mkmr
Contributor
Contributor

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

0 Kudos
daphnissov
Immortal
Immortal
0 Kudos