Cloud API Overview > @adpt/cloud > NetworkServiceInstance
NetworkServiceInstance interface
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Interface for components that expose Network Services via hostname and port
Signature:
export interface NetworkServiceInstance
Methods
Method | Description |
---|---|
hostname(scope) | (BETA) Returns the hostname for the service from the given scope |
port() | (BETA) Returns the TCP or UDP port of the exposed service |