new module:model/CreatePreviewEndpointRequest(routeType)
Constructs a new
CreatePreviewEndpointRequest
.
Parameters:
Name | Type | Description |
---|---|---|
routeType |
String | RouteType is one of 'static' or 'fork'. If you choose a route of type 'static', this preview endpoint will route traffic to the Host / Port specified. If you choose a route of type 'fork', this preview endpoint will route traffic to a forked entity as specified in forkOf. |
Members
(inner) forkOf :module:model/ForkOf
Type:
(inner) host :String
Host is the host-name of a service within Kubernetes of the form `service-name.namespace.svc`. Only required when RouteType is 'static'
Type:
- String
(inner) name :String
Name of this endpoint. If not specified, a name will be generated automatically.
Type:
- String
(inner) port :Number
Port is the port on the above host that the preview will point to. Only required when RouteType is 'static'
Type:
- Number
(inner) protocol :String
Protocol of the endpoint that we will be connecting to for this preview URL. One of 'http', 'https', or 'grpc'. If not specified, the default is 'http'.
Type:
- String
(inner) routeType :String
RouteType is one of 'static' or 'fork'. If you choose a route of type 'static', this preview endpoint will route traffic to the Host / Port specified. If you choose a route of type 'fork', this preview endpoint will route traffic to a forked entity as specified in forkOf.
Type:
- String