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.
Inherited Members
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.
|