# Cloud KMS V1 Client - Class State (2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.2 2.4.0 2.3.1 2.2.0 2.1.6 2.0.0 1.23.0 1.22.1 1.21.4 1.20.3 1.19.0 1.18.1 1.17.0 1.16.4 1.15.3 Reference documentation and code samples for the Cloud KMS V1 Client class State.

The set of states of a
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance).

Protobuf type `google.cloud.kms.v1.SingleTenantHsmInstance.State`

## Namespace

Google \\ Cloud \\ Kms \\ V1 \\ SingleTenantHsmInstance

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### STATE_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### CREATING

    Value: 1

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
being created.

Generated from protobuf enum `CREATING = 1;`

### PENDING_TWO_FACTOR_AUTH_REGISTRATION

    Value: 2

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
waiting for 2FA keys to be registered. This can be done by calling
[CreateSingleTenantHsmInstanceProposal](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.Client.HsmManagementClient#_Google_Cloud_Kms_V1_Client_HsmManagementClient__createSingleTenantHsmInstanceProposal__)
with the RegisterTwoFactorAuthKeys operation.

Generated from protobuf enum `PENDING_TWO_FACTOR_AUTH_REGISTRATION = 2;`

### ACTIVE

    Value: 3

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
ready to use. A
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance)
must be in the
[ACTIVE](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance.State#_Google_Cloud_Kms_V1_SingleTenantHsmInstance_State__ACTIVE) state
for all [CryptoKeys](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.CryptoKey) created within the
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) to
be usable.

Generated from protobuf enum `ACTIVE = 3;`

### DISABLING

    Value: 4

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
being disabled.

Generated from protobuf enum `DISABLING = 4;`

### DISABLED

    Value: 5

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
disabled.

Generated from protobuf enum `DISABLED = 5;`

### DELETING

    Value: 6

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance) is
being deleted. Requests to the instance will be rejected in this state.

Generated from protobuf enum `DELETING = 6;`

### DELETED

    Value: 7

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance)
has been deleted.

Generated from protobuf enum `DELETED = 7;`

### FAILED

    Value: 8

The
[SingleTenantHsmInstance](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.SingleTenantHsmInstance)
has failed and can not be recovered or used.

Generated from protobuf enum `FAILED = 8;`