This is a Limited Preview release of Resource Views. As a result, it might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. Request to be whitelisted to use this feature .
Google Compute Engine Resource Views allows you to specify collections of Compute
Engine resources, such as virtual machine instances, so that they can be managed
collectively. You can then use these resource views for other Google Cloud services,
such as autoscaling, which uses resource views to identify which resources
to autoscale.
Some Google Cloud services also automatically create resource views for you, while other services require that you create resource views separately. For example, the Replica Pool service creates resource views for each replica pool that you deploy and passes that information to the autoscaling module.
Currently, you can only group virtual machine instances into resources views.
You will need to use the Resource Views API