Show / Hide Table of Contents

Class RedirectRule

An object that represents the action of returning a specified response code and a redirect URI. Each RedirectRule object is configured for a particular listener and a designated path.
The default response code is 302 Found.
NOTES:

  • This rule applies only to HTTP listeners.
  • You can specify this rule only with the {@link #ruleCondition(RuleConditionRequest) ruleCondition} type PATH.
  • A listener can have only one RedirectRule object for a given original path. The {@link #pathMatchCondition(PathMatchConditionRequest) pathMatchCondition} attributeValue specifies the original path.
Inheritance
object
Rule
RedirectRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.LoadbalancerService.Models
Assembly: OCI.DotNetSDK.Loadbalancer.dll
Syntax
public class RedirectRule : Rule

Properties

Conditions

Declaration
[Required(ErrorMessage = "Conditions is required.")]
[JsonProperty(PropertyName = "conditions")]
public List<RuleCondition> Conditions { get; set; }
Property Value
Type Description
List<RuleCondition>
Remarks

Required

RedirectUri

Declaration
[JsonProperty(PropertyName = "redirectUri")]
public RedirectUri RedirectUri { get; set; }
Property Value
Type Description
RedirectUri

ResponseCode

Declaration
[JsonProperty(PropertyName = "responseCode")]
public int? ResponseCode { get; set; }
Property Value
Type Description
int?

The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:

  • 301
  • 302
  • 303
  • 307
  • 308
    The default value is 302 (Found).
    Example: 301
In this article
Back to top