RewriteUrlRuleProps
Properties for defining a RewriteUrlRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-rewriteurlrule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Esa;
new RewriteUrlRuleProps {
object SiteId,
object QueryString = null,
object RewriteQueryStringType = null,
object RewriteUriType = null,
object Rule = null,
object RuleEnable = null,
object RuleName = null,
object SiteVersion = null,
object Uri = null
};
Properties
| Name | Type | Description |
|---|---|---|
SiteId | object | Property siteId: The website ID, which can be obtained by calling the ListSites operation. |
QueryString | object | Property queryString: The desired query string to which you want to rewrite the query string in the original request. |
RewriteQueryStringType | object | Property rewriteQueryStringType: Query string rewrite type. |
RewriteUriType | object | Property rewriteUriType: URI rewrite type. |
Rule | object | Property rule: Rule content, using conditional expressions to match user requests. |
RuleEnable | object | Property ruleEnable: Rule switch. |
RuleName | object | Property ruleName: Rule name. |
SiteVersion | object | Property siteVersion: Version number of the site configuration. |
Uri | object | Property uri: The desired URI to which you want to rewrite the path in the original request. |
SiteIdRequired
public object SiteId { get; set; }
- Type: object
Property siteId: The website ID, which can be obtained by calling the ListSites operation.
QueryStringOptional
public object QueryString { get; set; }
- Type: object
Property queryString: The desired query string to which you want to rewrite the query string in the original request.
RewriteQueryStringTypeOptional
public object RewriteQueryStringType { get; set; }
- Type: object
Property rewriteQueryStringType: Query string rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
RewriteUriTypeOptional
public object RewriteUriType { get; set; }
- Type: object
Property rewriteUriType: URI rewrite type.
Value range:
static: Static mode.dynamic: Dynamic mode.
RuleOptional
public object Rule { get; set; }
- Type: object
Property rule: Rule content, using conditional expressions to match user requests.
When adding global configuration, this parameter does not need to be set. There are two usage scenarios: Match all incoming requests: value set to true Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com").
RuleEnableOptional
public object RuleEnable { get; set; }
- Type: object
Property ruleEnable: Rule switch.
When adding global configuration, this parameter does not need to be set. Value range: on: open. off: close.
RuleNameOptional
public object RuleName { get; set; }
- Type: object
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
SiteVersionOptional
public object SiteVersion { get; set; }
- Type: object
Property siteVersion: Version number of the site configuration.
For a site with configuration version management enabled, you can use this parameter to specify the site version in which the configuration takes effect. The default version is 0.
UriOptional
public object Uri { get; set; }
- Type: object
Property uri: The desired URI to which you want to rewrite the path in the original request.