Watch Aspire live streamsDocsTry Aspire

SolrResource.withDataVolume

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

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a Solr container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): SolrResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
SolrResource

Defined on

This method is defined on the following type: