Skip to content
Docs Try Aspire
Docs Try

DevTunnelResource

Handle
📦 Aspire.Hosting.DevTunnels v13.4.0
interface DevTunnelResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference;
withAnonymousAccess(): DevTunnelResource;
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource;
withTunnelReferenceAll(
resourceBuilder: IResourceWithEndpoints,
allowAnonymous: boolean): DevTunnelResource;
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource;
}

Methods

Gets the tunnel endpoint reference for the specified target endpoint.
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference
targetEndpointReference EndpointReference
EndpointReference
method withAnonymousAccess builder
Allows the tunnel to be publicly accessed without authentication.
withAnonymousAccess(): DevTunnelResource
DevTunnelResource
method withTunnelReference builder
Exposes the specified endpoint via the dev tunnel.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource
targetEndpoint EndpointReference
DevTunnelResource
Adds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.
withTunnelReferenceAll(
resourceBuilder: IResourceWithEndpoints,
allowAnonymous: boolean): DevTunnelResource
resourceBuilder IResourceWithEndpoints
allowAnonymous boolean
DevTunnelResource
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpoint EndpointReference
allowAnonymous boolean
DevTunnelResource