EndpointReference
Handle
interface EndpointReference extends IExpressionValue, IManifestExpressionProvider, IValueProvider, IValueWithReferences { readonly endpointName: string; readonly errorMessage: string; readonly excludeReferenceEndpoint: boolean; readonly exists: boolean; readonly host: string; readonly isAllocated: boolean; readonly isHttp: boolean; readonly isHttps: boolean; readonly isHttpSchemeNamedEndpoint: boolean; readonly port: number; readonly resource: IResourceWithEndpoints; readonly scheme: string; readonly targetPort: number; readonly tlsEnabled: boolean; readonly url: string; getTlsValue( enabledValue: ReferenceExpression, disabledValue: ReferenceExpression): ReferenceExpression; getValueAsync(cancellationToken?: cancellationToken): string; property(property: EndpointProperty): EndpointReferenceExpression;}18 members
Properties
property
endpointNamestringgetGets the name of the endpoint associated with the endpoint reference.
property
errorMessagestringgetGets or sets a custom error message to be thrown when the endpoint annotation is not found.
property
excludeReferenceEndpointbooleangetGets a value indicating whether this endpoint is excluded from the default set when referencing the resource's endpoints.
property
existsbooleangetGets a value indicating whether the endpoint exists.
property
hoststringgetGets the host for this endpoint.
property
isAllocatedbooleangetGets a value indicating whether the endpoint is allocated.
property
isHttpbooleangetGets a value indicating whether the endpoint uses HTTP scheme.
property
isHttpsbooleangetGets a value indicating whether the endpoint uses HTTPS scheme.
property
isHttpSchemeNamedEndpointbooleangetGets a value indicating whether the endpoint name is "http" or "https", ignoring case. This is a convention used to identify endpoints that will be resolved based on the scheme of the endpoint in service discovery rather than by the specific endpoint name. This is done to allow http endpoints that are dynamically updated to https to be mapped correctly despite the endpoint name no longer matching the scheme.
property
portnumbergetGets the port for this endpoint.
property
resourceIResourceWithEndpointsgetGets the resource owner of the endpoint reference.
property
schemestringgetGets the scheme for this endpoint.
property
targetPortnumbergetGets the target port for this endpoint. If the port is dynamically allocated, this will return `null`.
property
tlsEnabledbooleangetGets a value indicating whether TLS is enabled for this endpoint.
property
urlstringgetGets the URL for this endpoint.
Methods
method
getTlsValueGets a conditional expression that resolves to the enabledValue when TLS is enabled on the endpoint, or to the disabledValue otherwise.
getTlsValue( enabledValue: ReferenceExpression, disabledValue: ReferenceExpression): ReferenceExpressionParameters
enabledValueReferenceExpressiondisabledValueReferenceExpressionReturns
ReferenceExpressionmethod
getValueAsyncGets the URL of the endpoint asynchronously. Waits for the endpoint to be allocated if necessary.
getValueAsync(cancellationToken?: cancellationToken): stringParameters
cancellationTokencancellationTokenoptionalReturns
stringmethod
propertyGets the specified property expression of the endpoint.
property(property: EndpointProperty): EndpointReferenceExpressionParameters
propertyEndpointPropertyReturns
EndpointReferenceExpression