DevTunnelResource

Handle
📦 Aspire.Hosting.DevTunnels v17.0.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
targetEndpointReferenceEndpointReferenceThe target endpoint reference.
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
expirationHoursnumberThe idle expiration period, in whole hours from one hour through 30 days, inclusive.
DevTunnelResource
methodwithTunnelReferencebuilder
Exposes the specified endpoint via the dev tunnel.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResource
targetEndpointEndpointReferenceThe endpoint to expose via the dev tunnel.
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
resourceBuilderIResourceWithEndpointsThe resource builder for the referenced resource.
allowAnonymousbooleanWhether anonymous access is allowed.
DevTunnelResource
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpointEndpointReferenceThe endpoint to expose via the dev tunnel.
allowAnonymousbooleanWhether anonymous access is allowed.
DevTunnelResource