Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Resource Views

Limited Preview

This is a Limited Preview release of HTTP load balancing. 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 .


Resource views are a grouping mechanism to enable operations against a set of Cloud resources. In the case of load balancing, resource views group virtual machine instances that are referenced by a backend services group. You can add or remove instances from these groups as needed. Your resource views might also be used by other Cloud services.

The following commands use the gcloud preview component. To install, run gcloud components update preview .

Adding a resource view

To add a resource view with gcloud preview , use the resource-views create command:

gcloud preview resource-views create RESOURCE-VIEW --zone ZONE

After adding a resource view, you will want to add virtual machine instances to the resource view .

Listing resource views

To list resource views within a project and zone with gcloud preview , use the resource-views list command:

gcloud preview resource-views list --zone ZONE

Getting a resource view

To get information about a specific resource view with gcloud preview , use the resource-views describe command:

gcloud preview resource-views describe RESOURCE_VIEW --zone ZONE

Deleting a resource view

To delete a resource view with gcloud preview , use the resource-views delete command:

gcloud preview resource-views delete RESOURCE_VIEW --zone ZONE

Adding instances to a resource view

To add instances to a resource view with gcloud preview , use the resource-views resources addinstance command:

gcloud preview resource-views resources \
        --resource-view RESOURCE_VIEW addinstance INSTANCE \
        --zone ZONE

Listing instances in a resource view

To list the instances in a resource view with gcloud preview , use the resource-views resources list command:

gcloud preview resource-views resources \
        --resource-view RESOURCE_VIEW list --zone ZONE

Removing instances from a resource view

To remove instances to a resource view with gcloud preview , use the resource-views resources removeinstance command:

gcloud preview resource-views resources \
        --resource-view RESOURCE_VIEW removeinstance INSTANCE \
        --zone ZONE

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.