# withDataVolume

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/typescript/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Configures a named data volume for persistent Floci GCP state.

## Definition

```typescript
interface FlociGcpContainerResource {
  // ... omitted for brevity
  withDataVolume(
    name: string,
    isReadOnly?: boolean): FlociGcpContainerResource
}
```

## Parameters

- `name` (`string`)
- `isReadOnly` (`boolean`) `optional` `= False`

## Returns

[FlociGcpContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md) `builder`

## Applies to

- [FlociGcpContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flocigcpcontainerresource.md)
