Administrator
- Administrator
- All Products
cluster-operations.sh <cloud environment> <operation> <argument1> <argument2> [<argument3>...]
cluster-operations.sh <cloud environment> list <staging location> <project ID>
Argument
| Description
|
---|---|
Staging location
| Staging directory that is configured in the
advanced configurations for the clusters.
In a Google Cloud environment, use the following syntax:
gs://<bucket>/<folder>
|
Project ID
| Unique identifier of the Google Cloud project that contains the cluster resources.
|
cluster-operations.sh gcp list gs://mybucket/cluster/staging myproject1
cluster-operations.sh <cloud environment> delete <staging location> <project ID> <deletable states> <clusters> [force]
Argument
| Description
|
---|---|
Staging location
| Staging directory that is configured in the
advanced configurations for the clusters.
In a Google Cloud environment, use the following syntax:
gs://<bucket>/<folder>
|
Project ID
| Unique identifier of the Google Cloud project that contains the cluster resources.
|
Deletable states
| Comma-separated list of cluster states. If the state of a cluster matches one of the listed states, the cluster is deleted.
You can list any of the following states:
In a Google Cloud environment, deleting a cluster removes all cluster information from the staging directory.
|
Clusters
| Comma-separated list of clusters that you want the command to examine.
For example, you might have a development environment and a test environment that use the same staging directory. You want to delete clusters with the states partial and in-use that are in the test environment but not the development environment. To delete clusters only from the test environment, list the clusters that are in the test environment.
You can also use
all to examine all the clusters in the staging directory.
|
Force
| Optional. Use
force to skip additional prompts.
If you do not use the force argument, the command lists each cluster and prompts you to confirm that you want to delete the cluster. You can enter
Yes or
No .
If you use the force argument, the clusters are deleted automatically.
|
cluster-operations.sh gcp delete gs://mybucket/cluster/staging myproject1 deleted,partial all force