Skip to content

RewriteUrlRuleProps

Properties for defining a RewriteUrlRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-rewriteurlrule

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
&alicloudroscdkesa.RewriteUrlRuleProps {
    SiteId: interface{},
    QueryString: interface{},
    RewriteQueryStringType: interface{},
    RewriteUriType: interface{},
    Rule: interface{},
    RuleEnable: interface{},
    RuleName: interface{},
    SiteVersion: interface{},
    Uri: interface{},
}

Properties

Name Type Description
SiteId interface{} Property siteId: The website ID, which can be obtained by calling the ListSites operation.
QueryString interface{} Property queryString: The desired query string to which you want to rewrite the query string in the original request.
RewriteQueryStringType interface{} Property rewriteQueryStringType: Query string rewrite type.
RewriteUriType interface{} Property rewriteUriType: URI rewrite type.
Rule interface{} Property rule: Rule content, using conditional expressions to match user requests.
RuleEnable interface{} Property ruleEnable: Rule switch.
RuleName interface{} Property ruleName: Rule name.
SiteVersion interface{} Property siteVersion: Version number of the site configuration.
Uri interface{} Property uri: The desired URI to which you want to rewrite the path in the original request.

SiteIdRequired

SiteId interface{}
  • Type: interface{}

Property siteId: The website ID, which can be obtained by calling the ListSites operation.


QueryStringOptional

QueryString interface{}
  • Type: interface{}

Property queryString: The desired query string to which you want to rewrite the query string in the original request.


RewriteQueryStringTypeOptional

RewriteQueryStringType interface{}
  • Type: interface{}

Property rewriteQueryStringType: Query string rewrite type.

Value range:

  • static: Static mode.
  • dynamic: Dynamic mode.

RewriteUriTypeOptional

RewriteUriType interface{}
  • Type: interface{}

Property rewriteUriType: URI rewrite type.

Value range:

  • static: Static mode.
  • dynamic: Dynamic mode.

RuleOptional

Rule interface{}
  • Type: interface{}

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

RuleEnable interface{}
  • Type: interface{}

Property ruleEnable: Rule switch.

When adding global configuration, this parameter does not need to be set. Value range: on: open. off: close.


RuleNameOptional

RuleName interface{}
  • Type: interface{}

Property ruleName: Rule name.

When adding global configuration, this parameter does not need to be set.


SiteVersionOptional

SiteVersion interface{}
  • Type: interface{}

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

Uri interface{}
  • Type: interface{}

Property uri: The desired URI to which you want to rewrite the path in the original request.