Index
FaultTesting(interface)Action(message)AffectedResource(message)CloudSQLFailover(message)CreateExclusionWindowRequest(message)CreateExperimentRequest(message)CreateExperimentTemplateRequest(message)CreateValidationRequest(message)DeleteExclusionWindowRequest(message)DeleteExperimentRequest(message)DeleteExperimentTemplateRequest(message)DeleteValidationRequest(message)ExclusionWindow(message)Experiment(message)Experiment.EndReason(enum)ExperimentTemplate(message)GCEFailCompute(message)GKEFailCompute(message)GetAffectedResourceRequest(message)GetExclusionWindowRequest(message)GetExperimentRequest(message)GetExperimentTemplateRequest(message)GetValidationRequest(message)GetValidationResourceRequest(message)HTTPAbort(message)HTTPDelay(message)InstanceList(message)L7LBHTTPFault(message)ListAffectedResourcesRequest(message)ListAffectedResourcesResponse(message)ListExclusionWindowsRequest(message)ListExclusionWindowsResponse(message)ListExperimentTemplatesRequest(message)ListExperimentTemplatesResponse(message)ListExperimentsRequest(message)ListExperimentsResponse(message)ListValidationResourcesRequest(message)ListValidationResourcesResponse(message)ListValidationsRequest(message)ListValidationsResponse(message)MigElement(message)OperationMetadata(message)StartExclusionWindowRequest(message)StartExperimentRequest(message)State(enum)StopAllExperimentsRequest(message)StopAllExperimentsResponse(message)StopExclusionWindowRequest(message)StopExperimentRequest(message)UpdateExclusionWindowRequest(message)UpdateExperimentTemplateRequest(message)Validation(message)ValidationResource(message)
FaultTesting
Service for managing experiments in Fault Injection Testing.
| CreateExclusionWindow |
|---|
|
Creates a new exclusion window. Once created, an exclusion window must be started with
|
| CreateExperiment |
|---|
|
Creates an
|
| CreateExperimentTemplate |
|---|
|
Creates a new experiment template. You can use this template to create multiple
|
| CreateValidation |
|---|
|
Creates a new
|
| DeleteExclusionWindow |
|---|
|
Deletes an exclusion window.
|
| DeleteExperiment |
|---|
|
Deletes an
|
| DeleteExperimentTemplate |
|---|
|
Deletes an experiment template.
|
| DeleteValidation |
|---|
|
Deletes a record of a dry run.
|
| GetAffectedResource |
|---|
|
Gets the details of a specific cloud resource that is being or was affected by a particular
|
| GetExclusionWindow |
|---|
|
Get the details of an exclusion window.
|
| GetExperiment |
|---|
|
Returns a single
|
| GetExperimentTemplate |
|---|
|
Retrieves the details of a specific experiment template.
|
| GetValidation |
|---|
|
Retrieves the details of a specific
|
| GetValidationResource |
|---|
|
Gets the details of a specific
|
| ListAffectedResources |
|---|
|
Lists all cloud resources that are being or were affected by a specific
|
| ListExclusionWindows |
|---|
|
Lists all exclusion windows in a project and region, or all exclusion windows in a project in all regions if the location is given as "-".
|
| ListExperimentTemplates |
|---|
|
Lists all experiment templates in a specified project and location.
|
| ListExperiments |
|---|
|
Lists all experiments in a specified project and location.
|
| ListValidationResources |
|---|
|
Lists all cloud resources identified as potentially affected within a specific
|
| ListValidations |
|---|
|
Lists all dry runs in a specified project and location.
|
| StartExclusionWindow |
|---|
|
Starts or restarts an existing exclusion window. This method sets
|
| StartExperiment |
|---|
|
Starts an existing
|
| StopAllExperiments |
|---|
|
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 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.
|
| StopExclusionWindow |
|---|
|
Stops an active exclusion window. This method sets
|
| StopExperiment |
|---|
|
Stops a running
|
| UpdateExclusionWindow |
|---|
|
Updates an exclusion window.
|
| UpdateExperimentTemplate |
|---|
|
Updates an existing experiment template.
|
Action
The action to be performed by the experiment.
| Fields | |
|---|---|
Union field action. Details about the fault-injection action. action can be only one of the following: |
|
cloud_sql_failover |
Specifies a CloudSQLFailover action. |
l7_lb_http_fault |
Specifies an L7LBHTTPFault action. |
gce_fail_compute |
Specifies a GCEFailCompute action. |
gke_fail_compute |
Specifies a GKEFailCompute action. |
AffectedResource
Represents a specific Google Cloud resource, like a virtual machine or database that is targeted by an experiment.
| Fields | |
|---|---|
name |
Identifier. Unique identifier for this record, linking it to a specific experiment and resource. Format: |
display_name |
Optional. A human-readable name for the affected resource record. |
affected_resource_uri |
Required. The full unique address (URI) of the Google Cloud resource affected by this |
cloud_console_url |
Output only. A direct link to view this specific resource in the Google Cloud Console. |
state |
The current state of this resource within the experiment. Example: |
state_message |
A plain-language explanation of what is currently happening with this resource in the experiment. |
error |
Output only. Details of any error that occurred while setting up, running, or stopping the experiment on this specific resource. Empty if no errors occurred. |
CloudSQLFailover
CloudSQLFailover causes a Cloud SQL primary instance to fail over to another instance.
| Fields | |
|---|---|
instance |
Required. The identifying name of the Cloud SQL instance to fail over. Format: |
CreateExclusionWindowRequest
Request message for FaultTesting.CreateExclusionWindow.
| Fields | |
|---|---|
parent |
Required. The project and location where the exclusion window will be created. Format: |
exclusion_window_id |
Required. The ID to use for the This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Must start with a letter and cannot end with a hyphen. |
exclusion_window |
Required. The exclusion window to create. |
CreateExperimentRequest
Request message for FaultTesting.CreateExperiment.
| Fields | |
|---|---|
parent |
Required. The project and location where the experiment will be created. Format: |
experiment_id |
Optional. The ID to use for the |
experiment |
Required. The experiment to create. The request body contains an instance of |
CreateExperimentTemplateRequest
Request message for FaultTesting.CreateExperimentTemplate.
| Fields | |
|---|---|
parent |
Required. The project and location where this experiment template will be created. Format: |
experiment_template_id |
Optional. The ID to use for the experiment template, which will become the final component of the resource name. This value should be 4-63 characters, start with a letter, end with a letter or number, and contain only lowercase letters, numbers, and hyphens. |
experiment_template |
Required. The experiment template to create. The request body contains an instance of |
CreateValidationRequest
Request message for FaultTesting.CreateValidation.
| Fields | |
|---|---|
parent |
Required. The project and location where this dry run will be created. Format: |
validation_id |
Optional. The ID to use for the dry run, which will become the final component of the resource name. If not provided, a UUID will be generated. This value should be 4-63 characters, start with a letter or number, end with a letter or number, and contain only lowercase letters, numbers, and hyphens. |
validation |
Required. The dry run to create. The request body contains an instance of |
DeleteExclusionWindowRequest
Request message for FaultTesting.DeleteExclusionWindow.
| Fields | |
|---|---|
name |
Required. The name of the exclusion window to delete. Format: |
DeleteExperimentRequest
Request message for FaultTesting.DeleteExperiment.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment to delete. Format: |
force |
Optional. Should always be set to true. If set to |
DeleteExperimentTemplateRequest
Request message for FaultTesting.DeleteExperimentTemplate.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment template to delete. Format: |
DeleteValidationRequest
Request message for FaultTesting.DeleteValidation.
| Fields | |
|---|---|
name |
Required. The resource name of the dry run to delete. Format: |
force |
Optional. Should always be set to true. If set to true, any |
ExclusionWindow
A period during which experiments are not supposed to run.
| Fields | |
|---|---|
name |
Identifier. The resource name of the exclusion window. Format: |
description |
Optional. Optional user-provided description. Min length 0. Max length 2000. |
duration |
Required. How long the exclusion window lasts once started. |
start_time |
Output only. When the exclusion window started, or empty if it has not been started. |
end_time |
Output only. When the exclusion window ends, or empty if it has not been started. |
Experiment
Represents a single fault injection experiment where faults are deliberately introduced to your cloud resources to see how your application responds.
| Fields | |
|---|---|
name |
Identifier. Unique identifier for the experiment. Format: |
display_name |
Optional. A human-readable name of the experiment. |
description |
Optional. Notes or details to describe the purpose or context of the experiment. Minimum length is 0, maximum length is 2000. |
experiment_template |
Required. The unique identifier of the reusable experiment template used to configure the experiment. This field determines the type of fault, target, and duration. Format: |
template_display_name |
Output only. The human-readable name of the experiment template used for the experiment. Minimum length is 0, maximum length is 1000. |
template_description |
Output only. The description from the experiment template used for the experiment. Minimum length is 0, maximum length is 2000. |
template_duration |
Output only. The planned duration of the experiment, as defined in the experiment template. Minimum duration is 1 minute, maximum is 10 days. |
effective_action |
Output only. The specific fault that was introduced during the experiment. Examples: Triggering a database failover, adding delays to web requests. This field comes from the experiment template. |
state |
Output only. The current state of the experiment. Example: |
end_reason |
Output only. Why the experiment stopped. Example: It finished normally, or was cancelled by a user. |
end_notes |
Output only. Optional user-added notes explaining why the experiment was stopped, particularly if it was manually cancelled. |
create_time |
Output only. The date and time when the experiment record was created. |
start_time |
Output only. The date and time when the fault injection actually began. |
state_update_time |
Output only. The date and time when the experiment's state was last updated. |
stop_time |
Output only. The date and time when the experiment finished and the faults were removed. |
EndReason
The reason why an experiment concluded. String values are used in JSON.
| Enums | |
|---|---|
END_REASON_UNSPECIFIED |
The reason for stopping is not specified. |
CANCELLED |
A user manually stopped the experiment. |
COMPLETED |
The experiment finished normally after its duration. |
ExperimentTemplate
Template for a failure-injection experiment.
| Fields | |
|---|---|
name |
Identifier. The resource name of this experiment template. Format: |
display_name |
Optional. Human-readable template name. Min length 0, max 1000. |
description |
Optional. Optional user-provided description or notes. Min length 0. Max length 2000. |
duration |
Required. How long the experiment is intended to run. Min duration is 0, max is 10 days. |
create_time |
Output only. The time the template was created. |
update_time |
Output only. The time the template was last updated. |
action |
Required. The action to be performed. |
GCEFailCompute
GCEFailCompute specifies which instances to fail.
| Fields | |
|---|---|
Union field specifier. Use one of these elements to specify which GCE instance(s) to fail. specifier can be only one of the following: |
|
secure_tag_value |
Specifies a group of non-MIG (Managed Instance Group) instances by secure tag. See https://cloud.google.com/firewall/docs/tags-firewalls-overview for more details on tags. Format: |
mig |
Specifies a managed instance group. Can be zonal or regional. |
location |
Specifies that an entire zone or region should be affected. |
instances |
Specifies a list of instances. |
GKEFailCompute
GKEFailCompute specifies infrastructure or workload to fail.
| Fields | |
|---|---|
cluster |
Required. Options for selecting which GKE resources to fail. The GKE cluster resource name. Format: |
location |
Optional. Specifies a zone or region location. |
k8s_namespace[] |
Optional. Specifies one or more Kubernetes namespaces. |
GetAffectedResourceRequest
Request message for FaultTesting.GetAffectedResource.
| Fields | |
|---|---|
name |
Required. The resource name of the affected resource. Format: |
GetExclusionWindowRequest
Request message for FaultTesting.GetExclusionWindow.
| Fields | |
|---|---|
name |
Required. The name of the exclusion window to retrieve. Format: |
GetExperimentRequest
Request message for FaultTesting.GetExperiment.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment to retrieve. Format: |
GetExperimentTemplateRequest
Request message for FaultTesting.GetExperimentTemplate.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment template to retrieve. Format: |
GetValidationRequest
Request message for FaultTesting.GetValidation.
| Fields | |
|---|---|
name |
Required. The resource name of the dry run to retrieve. Format: |
GetValidationResourceRequest
Request message for FaultTesting.GetValidationResource.
| Fields | |
|---|---|
name |
Required. The resource name of the validation resource to retrieve. Format: |
HTTPAbort
Artificially return a specific HTTP status code for a percentage of requests.
| Fields | |
|---|---|
status_code |
Required. HTTP status code to return. In the range 500 to 599, inclusive. |
percentage |
Required. Percentage of requests to abort, in the range 0 to 100, inclusive. |
HTTPDelay
Artificially delay HTTP responses for a percentage of requests.
| Fields | |
|---|---|
percentage |
Required. Percentage of requests to delay, in the range 0 to 100, inclusive. |
delay |
Required. Delay duration. |
InstanceList
A GCEFailCompute option for failing multiple instances by name.
| Fields | |
|---|---|
instances[] |
Required. Specifies instances by name. Format: |
L7LBHTTPFault
Injection of HTTP faults into a layer 7 load balancer.
| Fields | |
|---|---|
forwarding_rule |
Required. The identifying name of the forwarding rule resource where the faults will be injected. Format: |
backend_service |
Optional. Optional identifying name of the backend service to inject faults into. Format: |
Union field fault. The fault to be injected. Can inject either an HTTP error code or a delay. fault can be only one of the following: |
|
abort |
Returns an HTTP error code for some requests. |
delay |
Delays some HTTP responses. |
ListAffectedResourcesRequest
Request message for FaultTesting.ListAffectedResources.
| Fields | |
|---|---|
parent |
Required. The experiment from which to list affected resources. Format: |
page_size |
Optional. The maximum number of affected resources to return. Fault Injection Testing may return fewer. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token received from a previous list call, used to retrieve the subsequent page. When paginating, all other parameters provided to |
filter |
Optional. A filter expression to restrict the affected resources returned. Follows https://google.aip.dev/160 and supports all fields. |
ListAffectedResourcesResponse
Response message for FaultTesting.ListAffectedResources.
| Fields | |
|---|---|
affected_resources[] |
The affected resources from the specified experiment, ordered from newest to oldest based on creation time. |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached. |
ListExclusionWindowsRequest
Request message for FaultTesting.ListExclusionWindows.
| Fields | |
|---|---|
parent |
Required. The project and location from which to list exclusion windows. Format: |
page_size |
Optional. The maximum number of exclusion windows to return from this call. The service may return fewer than this value. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListExclusionWindowsResponse
Response message for FaultTesting.ListExclusionWindows.
| Fields | |
|---|---|
exclusion_windows[] |
The exclusion windows from the specified project. |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached, each with the format |
ListExperimentTemplatesRequest
Request message for FaultTesting.ListExperimentTemplates.
| Fields | |
|---|---|
parent |
Required. The project and location from which to list experiment templates. Format: |
page_size |
Optional. The maximum number of templates to return. Fault Injection Testing may return fewer. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token received from a previous list call, used to retrieve the subsequent page. When paginating, all other parameters provided to |
ListExperimentTemplatesResponse
Response message for FaultTesting.ListExperimentTemplates.
| Fields | |
|---|---|
experiment_templates[] |
The experiment templates from the specified project. |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached. |
ListExperimentsRequest
Request message for FaultTesting.ListExperiments.
| Fields | |
|---|---|
parent |
Required. The project and location from which to list experiments. Format: |
page_size |
Optional. The maximum number of experiments to return. Fault Injection Testing may return fewer. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token received from a previous list call, used to retrieve the subsequent page. When paginating, all other parameters provided to |
filter |
Optional. A filter expression to restrict the experiments returned. Example: |
ListExperimentsResponse
List experiments for a specified project.
| Fields | |
|---|---|
experiments[] |
The experiments from the specified project, ordered from newest to oldest based on creation time. |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached. |
ListValidationResourcesRequest
Request message for FaultTesting.ListValidationResources.
| Fields | |
|---|---|
parent |
Required. The |
page_size |
Optional. The maximum number of validation resources to return. Fault Injection Testing may return fewer. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
filter |
Optional. A filter expression to restrict the validation resources returned. Follows https://google.aip.dev/160 and supports all fields. |
ListValidationResourcesResponse
Response message for FaultTesting.ListValidationResources.
| Fields | |
|---|---|
validation_resources[] |
The validation resources from the specified |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached. |
ListValidationsRequest
Request message for FaultTesting.ListValidations.
| Fields | |
|---|---|
parent |
Required. The project and location from which to list dry runs. Format: |
page_size |
Optional. The maximum number of dry runs to return. Fault Injection Testing may return fewer. If unspecified, at most 1000 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_token |
Optional. A page token received from a previous list call, used to retrieve the subsequent page. When paginating, all other parameters provided to |
filter |
Optional. A filter expression to restrict the dry runs returned. Example: |
ListValidationsResponse
List dry runs for a specified project.
| Fields | |
|---|---|
validations[] |
The dry runs from the specified project, ordered from newest to oldest based on creation time. |
next_page_token |
A token, which can be sent as |
unreachable[] |
Unordered list. Locations that could not be reached. |
MigElement
Details specifying a Managed Instance Group (MIG) and optionally a zone within it.
| Fields | |
|---|---|
instance_group_manager |
Required. Specifies the manager of a managed instance group. Can be zonal or regional. Format: |
location |
Optional. Optionally specify a zone location to further restrict a regional MIG. |
OperationMetadata
Represents the metadata of the long-running operation.
| Fields | |
|---|---|
create_time |
Output only. The time the operation was created. |
end_time |
Output only. The time the operation finished running. |
target |
Output only. Server-defined resource path for the target of the operation. |
verb |
Output only. Name of the verb executed by the operation. |
status_message |
Output only. Human-readable status of the operation, if any. |
requested_cancellation |
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have |
api_version |
Output only. API version used to start the operation. |
StartExclusionWindowRequest
Request message for FaultTesting.StartExclusionWindow.
| Fields | |
|---|---|
name |
Required. The resource name of the exclusion window to start. Format: |
StartExperimentRequest
Request message for FaultTesting.StartExperiment.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment to start. Format: |
State
Represents the current state of an Experiment or Validation dry run. String values are used in JSON.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The state is not known or not set. |
PREPARING |
The system is identifying the target Google Cloud resources for the Experiment or Validation and checking necessary permissions. |
PREPARED |
The experiment is fully set up and ready to start. |
INJECTING |
The system is actively applying the fault to the targeted resources. Example: Slowing down responses, triggering errors. |
INJECTED |
The fault is active on the targeted resources. The Experiment is now running for its planned duration. |
REVERTING |
The Experiment is being stopped, and FIT is removing the fault and restoring the resources to their normal operational state. |
COMPLETED |
The Experiment or Validation has finished, and the resources are back to their normal state. No further actions will occur. |
StopAllExperimentsRequest
Request message for FaultTesting.StopAllExperiments.
| Fields | |
|---|---|
parent |
Required. The project and location where all experiments will be stopped. Format: |
StopAllExperimentsResponse
Response message for FaultTesting.StopAllExperiments. Response is a complete success only if errors is empty.
| Fields | |
|---|---|
stopped_experiments_count |
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 |
StopExclusionWindowRequest
Request message for FaultTesting.StopExclusionWindow.
| Fields | |
|---|---|
name |
Required. The resource name of the exclusion window to stop. Format: |
StopExperimentRequest
Request message for FaultTesting.StopExperiment.
| Fields | |
|---|---|
name |
Required. The resource name of the experiment to stop. Format: |
UpdateExclusionWindowRequest
Request message for FaultTesting.UpdateExclusionWindow.
| Fields | |
|---|---|
update_mask |
Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated. |
exclusion_window |
Required. The exclusion window to update. |
UpdateExperimentTemplateRequest
The request message for FaultTesting.UpdateExperimentTemplate.
| Fields | |
|---|---|
update_mask |
Optional. A comma-separated list of fields to update. If not provided, all editable fields will be considered for updates. Fields like |
experiment_template |
Required. The experiment template to update. The request body contains an instance of |
Validation
Represents a Validation dry run of a fault injection.
| Fields | |
|---|---|
name |
Identifier. Unique identifier for the |
display_name |
Optional. A human-readable name of the |
description |
Optional. Notes or details about the |
action |
Required. The fault injection action being checked. |
state |
Output only. The current state of the |
create_time |
Output only. The date and time when this |
stop_time |
Output only. The date and time when this |
ValidationResource
Represents a specific Google Cloud resource that a Validation dry run identified as potentially being affected.
| Fields | |
|---|---|
name |
Identifier. Unique identifier for this specific record within the |
display_name |
Optional. A human-readable name for the |
affected_resource_uri |
Required. The full unique address (URI) of the Google Cloud resource that was identified. |
cloud_console_url |
Output only. A direct link to view this specific resource in the Google Cloud Console. |
state |
The current state of this resource within the dry run. Typically |
state_message |
A human-readable description of the validation status for this resource. |
error |
Output only. Details of any error encountered while checking the resource during the dry run. Empty if the check was successful. |