# REST Resource: projects.attestors

- [Resource: Attestor](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors#Attestor)
  - [JSON representation](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors#Attestor.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors#METHODS_SUMMARY)

## Resource: Attestor

An `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor` that attests to container image artifacts. An existing attestor cannot be modified except where indicated.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "updateTime": string, "etag": string, // Union field `attestor_type` can be only one of the following: "userOwnedDrydockNote": { object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor#UserOwnedDrydockNote`) } // End of list of possible types for union field `attestor_type`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. The resource name, in the format: `projects/*/attestors/*`. This field may not be updated. |
| `description` | `string` Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Time when the attestor was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `etag` | `string` Optional. A checksum, returned by the server, that can be sent on update requests to ensure the attestor has an up-to-date value before attempting to update it. See <https://google.aip.dev/154>. |
| Union field `attestor_type`. Required. Identifies an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor` that attests to a container image artifact. This determines how an attestation will be stored, and how it will be used during policy enforcement. Updates may not change the attestor type, but individual attestor fields may be updated. `attestor_type` can be only one of the following: ||
| `userOwnedDrydockNote` | ``object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor#UserOwnedDrydockNote`)`` A Drydock ATTESTATION_AUTHORITY Note, created by the user. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/create` | Creates an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`, and returns a copy of the new `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/delete` | Deletes an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/get` | Gets an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/list` | Lists `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/testIamPermissions` | Returns permissions that a caller has on the specified resource. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/update` | Updates an `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/Shared.Types/Attestor`. |
| ### `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1beta1/projects.attestors/validateAttestationOccurrence` | Returns whether the given `Attestation` for the given image URI was signed by the given `Attestor` |