# REST Resource: projects.locations.singleTenantHsmInstances

- [Resource: SingleTenantHsmInstance](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#State)
- [QuorumAuth](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#QuorumAuth)
  - [JSON representation](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#QuorumAuth.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#METHODS_SUMMARY)

## Resource: SingleTenantHsmInstance

A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` represents a single-tenant HSM instance. It can be used for creating `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` with a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel` of `https://docs.cloud.google.com/kms/docs/reference/rest/v1/ProtectionLevel#ENUM_VALUES.HSM_SINGLE_TENANT`, as well as performing cryptographic operations using keys created within the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "state": enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#State`), "quorumAuth": { object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#QuorumAuth`) }, "deleteTime": string, "unrefreshedDurationUntilDisable": string, "disableTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name for this `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` in the format `projects/*/locations/*/singleTenantHsmInstances/*`. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` 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"`. |
| `state` | ``enum (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#State`)`` Output only. The state of the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`. |
| `quorumAuth` | ``object (`https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#QuorumAuth`)`` Required. The quorum auth configuration for the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`. |
| `deleteTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` was deleted. 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"`. |
| `unrefreshedDurationUntilDisable` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 120 days. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `disableTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#refreshsingletenanthsminstance` operation must be made via a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#SingleTenantHsmInstanceProposal` before this time otherwise the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` will become disabled. 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"`. |

## State

The set of states of a `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Not specified. |
| `CREATING` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is being created. |
| `PENDING_TWO_FACTOR_AUTH_REGISTRATION` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is waiting for 2FA keys to be registered. This can be done by calling `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals/create#google.cloud.kms.v1.HsmManagement.CreateSingleTenantHsmInstanceProposal` with the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances.proposals#registertwofactorauthkeys` operation. |
| `ACTIVE` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is ready to use. A `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` must be in the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#State.ENUM_VALUES.ACTIVE` state for all `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys#CryptoKey` created within the `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` to be usable. |
| `DISABLING` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is being disabled. |
| `DISABLED` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is disabled. |
| `DELETING` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` is being deleted. Requests to the instance will be rejected in this state. |
| `DELETED` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` has been deleted. |
| `FAILED` | The `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` has failed and can not be recovered or used. |

## QuorumAuth

Configuration for M of N quorum auth.

| JSON representation |
|---|
| ``` { "totalApproverCount": integer, "requiredApproverCount": integer, "twoFactorPublicKeyPems": [ string ] } ``` |

| Fields ||
|---|---|
| `totalApproverCount` | `integer` Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16. |
| `requiredApproverCount` | `integer` Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#QuorumAuth.FIELDS.total_approver_count` - 1. |
| `twoFactorPublicKeyPems[]` | `string` Output only. The public keys associated with the 2FA keys for M of N quorum auth. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances/create` | Creates a new `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance` in a given Project and Location. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances/get` | Returns metadata for a given `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`. |
| ### `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances/list` | Lists `https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.singleTenantHsmInstances#SingleTenantHsmInstance`. |