# Cloud Functions V2 API - Module Google::Cloud::Functions::V2::Function::State (v1.5.1)

1.5.1 (latest) 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.2 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Functions V2 API module Google::Cloud::Functions::V2::Function::State.

Describes the current state of the function.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
Not specified. Invalid state.

### ACTIVE

**value:** 1  
Function has been successfully deployed and is serving.

### FAILED

**value:** 2  
Function deployment failed and the function is not serving.

### DEPLOYING

**value:** 3  
Function is being created or updated.

### DELETING

**value:** 4  
Function is being deleted.

### UNKNOWN

**value:** 5  
Function deployment failed and the function serving state is undefined.
The function should be updated or deleted to move it out of this state.