Show / Hide Table of Contents

Class HttpRouteRouteAction

The specifications for routing traffic and applying associated policies.

Inheritance
object
HttpRouteRouteAction
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.NetworkServices.v1beta1.Data
Assembly: Google.Apis.NetworkServices.v1beta1.dll
Syntax
public class HttpRouteRouteAction : IDirectResponseSchema

Properties

CorsPolicy

The specification for allowing client side cross-origin requests.

Declaration
[JsonProperty("corsPolicy")]
public virtual HttpRouteCorsPolicy CorsPolicy { get; set; }
Property Value
Type Description
HttpRouteCorsPolicy

Destinations

The destination to which traffic should be forwarded.

Declaration
[JsonProperty("destinations")]
public virtual IList<HttpRouteDestination> Destinations { get; set; }
Property Value
Type Description
IList<HttpRouteDestination>

DirectResponse

Optional. Static HTTP Response object to be returned regardless of the request.

Declaration
[JsonProperty("directResponse")]
public virtual HttpRouteHttpDirectResponse DirectResponse { get; set; }
Property Value
Type Description
HttpRouteHttpDirectResponse

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

FaultInjectionPolicy

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

Declaration
[JsonProperty("faultInjectionPolicy")]
public virtual HttpRouteFaultInjectionPolicy FaultInjectionPolicy { get; set; }
Property Value
Type Description
HttpRouteFaultInjectionPolicy

IdleTimeout

Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.

Declaration
[JsonProperty("idleTimeout")]
public virtual object IdleTimeout { get; set; }
Property Value
Type Description
object

Redirect

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

Declaration
[JsonProperty("redirect")]
public virtual HttpRouteRedirect Redirect { get; set; }
Property Value
Type Description
HttpRouteRedirect

RequestHeaderModifier

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.

Declaration
[JsonProperty("requestHeaderModifier")]
public virtual HttpRouteHeaderModifier RequestHeaderModifier { get; set; }
Property Value
Type Description
HttpRouteHeaderModifier

RequestMirrorPolicy

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.

Declaration
[JsonProperty("requestMirrorPolicy")]
public virtual HttpRouteRequestMirrorPolicy RequestMirrorPolicy { get; set; }
Property Value
Type Description
HttpRouteRequestMirrorPolicy

ResponseHeaderModifier

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.

Declaration
[JsonProperty("responseHeaderModifier")]
public virtual HttpRouteHeaderModifier ResponseHeaderModifier { get; set; }
Property Value
Type Description
HttpRouteHeaderModifier

RetryPolicy

Specifies the retry policy associated with this route.

Declaration
[JsonProperty("retryPolicy")]
public virtual HttpRouteRetryPolicy RetryPolicy { get; set; }
Property Value
Type Description
HttpRouteRetryPolicy

StatefulSessionAffinity

Optional. Specifies cookie-based stateful session affinity.

Declaration
[JsonProperty("statefulSessionAffinity")]
public virtual HttpRouteStatefulSessionAffinityPolicy StatefulSessionAffinity { get; set; }
Property Value
Type Description
HttpRouteStatefulSessionAffinityPolicy

Timeout

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.

Declaration
[JsonProperty("timeout")]
public virtual object Timeout { get; set; }
Property Value
Type Description
object

UrlRewrite

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

Declaration
[JsonProperty("urlRewrite")]
public virtual HttpRouteURLRewrite UrlRewrite { get; set; }
Property Value
Type Description
HttpRouteURLRewrite

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX