OriginRuleProps
Properties for defining a OriginRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-originrule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Esa;
new OriginRuleProps {
object SiteId,
object DnsRecord = null,
object Follow302Enable = null,
object Follow302MaxTries = null,
object Follow302RetainArgs = null,
object Follow302RetainHeader = null,
object Follow302TargetHost = null,
object OriginHost = null,
object OriginHttpPort = null,
object OriginHttpsPort = null,
object OriginMtls = null,
object OriginReadTimeout = null,
object OriginScheme = null,
object OriginSni = null,
object OriginVerify = null,
object Range = null,
object RangeChunkSize = null,
object Rule = null,
object RuleEnable = null,
object RuleName = null,
object Sequence = null,
object SiteVersion = null
};
Properties
| Name | Type | Description |
|---|---|---|
SiteId | object | Property siteId: The site ID. |
DnsRecord | object | Property dnsRecord: Overwrite the DNS resolution record of the origin request. |
Follow302Enable | object | Property follow302Enable: Return Source 302 follow switch. |
Follow302MaxTries | object | Property follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5]. |
Follow302RetainArgs | object | Property follow302RetainArgs: Retain the original request parameter switch. |
Follow302RetainHeader | object | Property follow302RetainHeader: Retain the original request header switch. |
Follow302TargetHost | object | Property follow302TargetHost: Modify the source host after 302. |
OriginHost | object | Property originHost: The HOST carried in the back-to-origin request. |
OriginHttpPort | object | Property originHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin. |
OriginHttpsPort | object | Property originHttpsPort: Port of the origin server when using the HTTPS protocol for origin requests. |
OriginMtls | object | Property originMtls: The mtls switch. |
OriginReadTimeout | object | Property originReadTimeout: Read timeout interval of the source station (s). |
OriginScheme | object | Property originScheme: The protocol used by the back-to-origin request. |
OriginSni | object | Property originSni: SNI carried in the back-to-origin request. |
OriginVerify | object | Property originVerify: Source station certificate verification switch. |
Range | object | Property range: Use the range sharding method to download the file from the source. |
RangeChunkSize | object | Property rangeChunkSize: range shard size. |
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. |
Sequence | object | Property sequence: Order of rule execution. |
SiteVersion | object | Property siteVersion: The version number of the site configuration. |
SiteIdRequired
public object SiteId { get; set; }
- Type: object
Property siteId: The site ID.
DnsRecordOptional
public object DnsRecord { get; set; }
- Type: object
Property dnsRecord: Overwrite the DNS resolution record of the origin request.
Follow302EnableOptional
public object Follow302Enable { get; set; }
- Type: object
Property follow302Enable: Return Source 302 follow switch.
Value range:
on: ON.off: closed.
Follow302MaxTriesOptional
public object Follow302MaxTries { get; set; }
- Type: object
Property follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].
Follow302RetainArgsOptional
public object Follow302RetainArgs { get; set; }
- Type: object
Property follow302RetainArgs: Retain the original request parameter switch.
Value range:
on: ON.off: closed.
Follow302RetainHeaderOptional
public object Follow302RetainHeader { get; set; }
- Type: object
Property follow302RetainHeader: Retain the original request header switch.
Value range:
on: ON.off: closed.
Follow302TargetHostOptional
public object Follow302TargetHost { get; set; }
- Type: object
Property follow302TargetHost: Modify the source host after 302.
OriginHostOptional
public object OriginHost { get; set; }
- Type: object
Property originHost: The HOST carried in the back-to-origin request.
OriginHttpPortOptional
public object OriginHttpPort { get; set; }
- Type: object
Property originHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.
OriginHttpsPortOptional
public object OriginHttpsPort { get; set; }
- Type: object
Property originHttpsPort: Port of the origin server when using the HTTPS protocol for origin requests.
OriginMtlsOptional
public object OriginMtls { get; set; }
- Type: object
Property originMtls: The mtls switch.
Value range:
on: ON.off: closed.
OriginReadTimeoutOptional
public object OriginReadTimeout { get; set; }
- Type: object
Property originReadTimeout: Read timeout interval of the source station (s).
OriginSchemeOptional
public object OriginScheme { get; set; }
- Type: object
Property originScheme: The protocol used by the back-to-origin request.
Value range:
http: uses the http protocol to return to the source.https: uses the https protocol to return to the source.follow: follows the Client Protocol back to the source.
OriginSniOptional
public object OriginSni { get; set; }
- Type: object
Property originSni: SNI carried in the back-to-origin request.
OriginVerifyOptional
public object OriginVerify { get; set; }
- Type: object
Property originVerify: Source station certificate verification switch.
Value range:
on: ON.off: closed.
RangeOptional
public object Range { get; set; }
- Type: object
Property range: Use the range sharding method to download the file from the source.
Value range:
on: Open.off: off.force: force.
RangeChunkSizeOptional
public object RangeChunkSize { get; set; }
- Type: object
Property rangeChunkSize: range shard size.
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.
SequenceOptional
public object Sequence { get; set; }
- Type: object
Property sequence: Order of rule execution.
The smaller the value, the higher the priority for execution.
SiteVersionOptional
public object SiteVersion { get; set; }
- Type: object
Property siteVersion: The version number of the site configuration.
For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.