# REST Resource: projects.locations.experimentTemplates

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

## Resource: ExperimentTemplate

Template for a failure-injection experiment.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "duration": string, "createTime": string, "updateTime": string, "action": { object (`https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/Action`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of this experiment template. Format: `projects/{project}/locations/{location}/experimentTemplates/{experimentTemplate}` |
| `displayName` | `string` Optional. Human-readable template name. Min length 0, max 1000. |
| `description` | `string` Optional. Optional user-provided description or notes. Min length 0. Max length 2000. |
| `duration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Required. How long the experiment is intended to run. Min duration is 0, max is 10 days. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time the template was created. 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"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time the template was last updated. 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"`. |
| `action` | ``object (`https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/Action`)`` Required. The action to be performed. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.experimentTemplates/create` | Creates a new experiment template. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.experimentTemplates/delete` | Deletes an experiment template. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.experimentTemplates/get` | Retrieves the details of a specific experiment template. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.experimentTemplates/list` | Lists all experiment templates in a specified project and location. |
| ### `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.experimentTemplates/patch` | Updates an existing experiment template. |