DevTunnelResource
Handle
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;}6 members
Methods
method
getTunnelEndpoint Gets the tunnel endpoint reference for the specified target endpoint.
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReferenceParameters
targetEndpointReference EndpointReference The target endpoint reference.Returns
EndpointReference Allows the tunnel to be publicly accessed without authentication.
withAnonymousAccess(): DevTunnelResourceReturns
DevTunnelResource Configures how long the tunnel can remain unused or unmodified before it expires.
withExpiration(expirationHours: number): DevTunnelResourceParameters
expirationHours numberThe idle expiration period, in whole hours from one hour through 30 days, inclusive.Returns
DevTunnelResource Exposes the specified endpoint via the dev tunnel.
withTunnelReference(targetEndpoint: EndpointReference): DevTunnelResourceParameters
targetEndpoint EndpointReference The endpoint to expose via the dev tunnel.Returns
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): DevTunnelResourceParameters
resourceBuilder IResourceWithEndpoints The resource builder for the referenced resource.allowAnonymous booleanWhether anonymous access is allowed.Returns
DevTunnelResource Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous( targetEndpoint: EndpointReference, allowAnonymous: boolean): DevTunnelResourceParameters
targetEndpoint EndpointReference The endpoint to expose via the dev tunnel.allowAnonymous booleanWhether anonymous access is allowed.Returns
DevTunnelResource