Skip to content
Docs Try Aspire

MySqlServerResource.withDataVolume

Method
📦 Aspire.Hosting.MySql v13.2.0-preview.1.26159.1
interface MySqlServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): MySqlServerResource;
}

Signature

method withDataVolume builder
Adds a data volume for MySQL
withDataVolume(
name?: string,
isReadOnly?: boolean): MySqlServerResource
name string optional
isReadOnly boolean optional = False
MySqlServerResource

Defined on

This method is defined on the following type: