Stops all running experiments in a given location for a given project. This method initiates the process of reverting any changes made by the experiments, returning the affected resources to their normal state. The Experiment states will transition to REVERTING and then to COMPLETED.
Returns an RPC error if it can't list experiments at all. Otherwise, it lists and stops all experiments it can, and returns a response including success count and a list of errors. If there are no experiments to stop, it returns successfully with an empty response message.
HTTP request
POST https://faulttesting.googleapis.com/v1alpha/{parent=projects/*/locations/*}/experiments:stopAll
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The project and location where all experiments will be stopped. Format: |
Request body
The request body must be empty.
Response body
Response message for FaultTesting.StopAllExperiments. Response is a complete success only if errors is empty.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"stoppedExperimentsCount": integer,
"errors": [
{
object ( |
| Fields | |
|---|---|
stoppedExperimentsCount |
The number of experiments that were stopped. These experiments are in reachable locations with statuses that allows them to be stopped, and did not get an error from |
errors[] |
Errors that occurred while listing or stopping experiments. Each experiment that fails the internal |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
faulttesting.experiments.update
For more information, see the IAM documentation.