Network Services v1 API - Class HttpRoute.Types.RouteAction (1.0.0-beta01)

public sealed class HttpRoute.Types.RouteAction : IMessage<HttpRoute.Types.RouteAction>, IEquatable<HttpRoute.Types.RouteAction>, IDeepCloneable<HttpRoute.Types.RouteAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class HttpRoute.Types.RouteAction.

The specifications for routing traffic and applying associated policies.

Inheritance

object > HttpRoute.Types.RouteAction

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

RouteAction()

public RouteAction()

RouteAction(RouteAction)

public RouteAction(HttpRoute.Types.RouteAction other)
Parameter
Name Description
other HttpRouteTypesRouteAction

Properties

CorsPolicy

public HttpRoute.Types.CorsPolicy CorsPolicy { get; set; }

The specification for allowing client side cross-origin requests.

Property Value
Type Description
HttpRouteTypesCorsPolicy

Destinations

public RepeatedField<HttpRoute.Types.Destination> Destinations { get; }

The destination to which traffic should be forwarded.

Property Value
Type Description
RepeatedFieldHttpRouteTypesDestination

FaultInjectionPolicy

public HttpRoute.Types.FaultInjectionPolicy FaultInjectionPolicy { get; set; }

The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted for a percentage of requests.

timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy

Property Value
Type Description
HttpRouteTypesFaultInjectionPolicy

Redirect

public HttpRoute.Types.Redirect Redirect { get; set; }

If set, the request is directed as configured by this field.

Property Value
Type Description
HttpRouteTypesRedirect

RequestHeaderModifier

public HttpRoute.Types.HeaderModifier RequestHeaderModifier { get; set; }

The specification for modifying the headers of a matching request prior to delivery of the request to the destination. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.

Property Value
Type Description
HttpRouteTypesHeaderModifier

RequestMirrorPolicy

public HttpRoute.Types.RequestMirrorPolicy RequestMirrorPolicy { get; set; }

Specifies the policy on how requests intended for the routes destination are shadowed to a separate mirrored destination. Proxy will not wait for the shadow destination to respond before returning the response. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.

Property Value
Type Description
HttpRouteTypesRequestMirrorPolicy

ResponseHeaderModifier

public HttpRoute.Types.HeaderModifier ResponseHeaderModifier { get; set; }

The specification for modifying the headers of a response prior to sending the response back to the client. If HeaderModifiers are set on both the Destination and the RouteAction, they will be merged. Conflicts between the two will not be resolved on the configuration.

Property Value
Type Description
HttpRouteTypesHeaderModifier

RetryPolicy

public HttpRoute.Types.RetryPolicy RetryPolicy { get; set; }

Specifies the retry policy associated with this route.

Property Value
Type Description
HttpRouteTypesRetryPolicy

Timeout

public Duration Timeout { get; set; }

Specifies the timeout for selected route. Timeout is computed from the time the request has been fully processed (i.e. end of stream) up until the response has been completely processed. Timeout includes all retries.

Property Value
Type Description
Duration

UrlRewrite

public HttpRoute.Types.URLRewrite UrlRewrite { get; set; }

The specification for rewrite URL before forwarding requests to the destination.

Property Value
Type Description
HttpRouteTypesURLRewrite