Skip to content
DocsTry Aspire
DocsTry

withHttpProbe

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withHttpProbe(
probeType: ProbeType,
path?: string,
initialDelaySeconds?: number,
periodSeconds?: number,
timeoutSeconds?: number,
failureThreshold?: number,
successThreshold?: number,
endpointName?: string): IResourceWithEndpoints;
}

Signature

methodwithHttpProbebuilder
Adds an HTTP health probe to the resource
withHttpProbe(
probeType: ProbeType,
path?: string,
initialDelaySeconds?: number,
periodSeconds?: number,
timeoutSeconds?: number,
failureThreshold?: number,
successThreshold?: number,
endpointName?: string): IResourceWithEndpoints
probeTypeProbeType
pathstringoptional
initialDelaySecondsnumberoptional
periodSecondsnumberoptional
timeoutSecondsnumberoptional
failureThresholdnumberoptional
successThresholdnumberoptional
endpointNamestringoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: