# Google Cloud Sql Admin V1 Client - Class SqlInstanceState (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlInstanceState.

The current serving state of the database instance.

Protobuf type `google.cloud.sql.v1.DatabaseInstance.SqlInstanceState`

## Namespace

Google \\ Cloud \\ Sql \\ V1 \\ DatabaseInstance

## Methods

### static::name

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

### static::value

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

## Constants

### SQL_INSTANCE_STATE_UNSPECIFIED

    Value: 0

The state of the instance is unknown.

Generated from protobuf enum `SQL_INSTANCE_STATE_UNSPECIFIED = 0;`

### RUNNABLE

    Value: 1

The instance is running, or has been stopped by owner.

Generated from protobuf enum `RUNNABLE = 1;`

### SUSPENDED

    Value: 2

The instance is not available, for example due to problems with billing.

Generated from protobuf enum `SUSPENDED = 2;`

### PENDING_DELETE

    Value: 3

The instance is being deleted.

Generated from protobuf enum `PENDING_DELETE = 3;`

### PENDING_CREATE

    Value: 4

The instance is being created.

Generated from protobuf enum `PENDING_CREATE = 4;`

### MAINTENANCE

    Value: 5

The instance is down for maintenance.

Generated from protobuf enum `MAINTENANCE = 5;`

### FAILED

    Value: 6

The creation of the instance failed or a fatal error occurred during
maintenance.

Generated from protobuf enum `FAILED = 6;`

### ONLINE_MAINTENANCE

    Value: 7

Deprecated

Generated from protobuf enum `ONLINE_MAINTENANCE = 7 [deprecated = true];`

### REPAIRING

    Value: 8

(Applicable to read pool nodes only.) The read pool node needs to be
repaired. The database might be unavailable.

Generated from protobuf enum `REPAIRING = 8;`