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)



gcloud preview resource-views add-service

NAME
gcloud-preview-resource-views-add-service - Adds a service to a resource view or an instance resource.
SYNOPSIS
gcloud preview resource-views add-service
  NAME
  [--api-version API_VERSION; default="v1beta1"]
  [--format FORMAT]
  [--help]
  --port PORT
  [--project PROJECT]
  [--quiet, -q]
  [--region REGION]
  [--resource RESOURCE]
  --service SERVICE
  [--zone ZONE]
  [-h]
DESCRIPTION
This command adds a service (name and port) to one or all instances in a resource view. This command is only applicable to v1beta2 of the Resource View API.
By default, the service is added to the resource view itself, which makes it take effect on all instances in the resource view. However, if the --instance flag is provided, the service is only applied to the particular instance that is specified by the flag.
Please see the API documentation for more details.
POSITIONAL ARGUMENTS
NAME
Resource view name.
FLAGS
--api-version API_VERSION
Optional API version.
--format FORMAT
Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
--help
Display detailed help.
--port PORT
Port number of the service.
--project PROJECT
Google Cloud Platform project to use for this invocation.
--quiet
Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
--region REGION
Resource view region name. Not valid for API version=v1beta2.
--resource RESOURCE
The name of the instance resource to apply the service to. If not specified, the service will be applied to all instances in the resource view.
--service SERVICE
Name of the service.
--zone ZONE
Resource view zone name. Required if using API version=v1beta2.
-h
Print a summary help and exit.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.