- [Resource: ExclusionWindow](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows#ExclusionWindow)
  - [JSON representation](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows#ExclusionWindow.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows#METHODS_SUMMARY)

## Resource: ExclusionWindow

A time period during which new fault injection experiments are blocked from starting.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "duration": string, "startTime": string, "endTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the exclusion window. Format: `projects/{project}/locations/{location}/exclusionWindows/{exclusionWindow}` |
| `description` | `string` Optional. Description of the exclusion window's purpose (for example, "Black Friday freeze"). Max length is 2000 characters. |
| `duration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Required. The length of time the exclusion window remains active once started. While active, new experiments are blocked in the region. Specified as a duration (for example, "86400s" for 24 hours). A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the exclusion window was started. This field is empty if the window has not been started. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the exclusion window expires. This field is empty if the window has not been started. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/create` | Creates a new exclusion window. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/delete` | Deletes an exclusion window. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/get` | Get the details of an exclusion window. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/list` | 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 "-". |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/patch` | Updates an exclusion window. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/start` | Starts or restarts an existing exclusion window. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.exclusionWindows/stop` | Stops an active exclusion window. |