Skip to content
Docs Try Aspire

DevTunnelResource

Handle TypeScript
📦 Aspire.Hosting.DevTunnels v13.2.0-preview.1.26159.1
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

method getTunnelEndpoint
Gets the public endpoint exposed by the dev tunnel.
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference
targetEndpointReference EndpointReference
EndpointReference
method withAnonymousAccess builder
Configures the dev tunnel to allow anonymous access.
withAnonymousAccess(): DevTunnelResource
DevTunnelResource
method withTunnelReference builder
Configures the dev tunnel to expose a target endpoint.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource
targetEndpoint EndpointReference
DevTunnelResource
method withTunnelReferenceAll builder
Configures the dev tunnel to expose all endpoints on the referenced resource.
withTunnelReferenceAll(
resourceBuilder: IResourceWithEndpoints,
allowAnonymous: boolean): DevTunnelResource
resourceBuilder IResourceWithEndpoints
allowAnonymous boolean
DevTunnelResource
method withTunnelReferenceAnonymous builder
Configures the dev tunnel to expose a target endpoint with access control.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpoint EndpointReference
allowAnonymous boolean
DevTunnelResource