Skip to content
Docs Try Aspire
Docs Try

withHttpProbe

Method
📦 Aspire.Hosting v13.2.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

method withHttpProbe builder
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
probeType ProbeType
path string optional
initialDelaySeconds number optional
periodSeconds number optional
timeoutSeconds number optional
failureThreshold number optional
successThreshold number optional
endpointName string optional
IResourceWithEndpoints

Applies to

This method applies to the following types: