Skip to content
DocsTry Aspire
DocsTry

RedPandaServerResource.withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.5.0
interface RedPandaServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): RedPandaServerResource;
}

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a Redpanda container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): RedPandaServerResource
namestringoptional
isReadOnlybooleanoptional= False
RedPandaServerResource

Defined on

This method is defined on the following type: