Watch Aspire live streamsDocsTry Aspire

DevTunnelResource

Handle
📦 Aspire.Hosting.DevTunnels v13.6.0
interface DevTunnelResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference;
withAnonymousAccess(): DevTunnelResource;
withExpiration(expirationHours: number): 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
targetEndpointReferenceEndpointReference
EndpointReference
methodwithAnonymousAccessbuilder
Allows the tunnel to be publicly accessed without authentication.
withAnonymousAccess(): DevTunnelResource
DevTunnelResource
methodwithExpirationbuilder
Configures how long the tunnel can remain unused or unmodified before it expires.
withExpiration(expirationHours: number): DevTunnelResource
expirationHoursnumber
DevTunnelResource
methodwithTunnelReferencebuilder
Exposes the specified endpoint via the dev tunnel.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource
targetEndpointEndpointReference
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
resourceBuilderIResourceWithEndpoints
allowAnonymousboolean
DevTunnelResource
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpointEndpointReference
allowAnonymousboolean
DevTunnelResource