Skip to content

gcp stop-instance

Stop instance

Description

stop a running instance

Synopsis

gcp stop-instance
    [--site <site>]
    [<name>]
    [--project <project>]
    [--zone <zone>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

name - (string)

     Instance name
     Example: "CassandraInstance"
     Default: _None_      Attributes: optional

project - (string)

     Project name
     Example: --project "project-1"
     Default: _None_      Attributes: optional

zone - (string)

     The name of the zone for this request
     Example: --zone "us-central1-a"
     Default: _None_      Attributes: optional

Examples

gcp stop-instance "CassandraInstance" --project "project-1" --zone "us-central1-a"

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "gcp"
Service Instance
Namespace
Object Type "instance"
Object ID name

Please see Access Control for details.