Skip to content

OriginRuleProps

Properties for defining a OriginRule.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
&alicloudroscdkesa.OriginRuleProps {
    SiteId: interface{},
    DnsRecord: interface{},
    Follow302Enable: interface{},
    Follow302MaxTries: interface{},
    Follow302RetainArgs: interface{},
    Follow302RetainHeader: interface{},
    Follow302TargetHost: interface{},
    OriginHost: interface{},
    OriginHttpPort: interface{},
    OriginHttpsPort: interface{},
    OriginMtls: interface{},
    OriginReadTimeout: interface{},
    OriginScheme: interface{},
    OriginSni: interface{},
    OriginVerify: interface{},
    Range: interface{},
    RangeChunkSize: interface{},
    Rule: interface{},
    RuleEnable: interface{},
    RuleName: interface{},
    Sequence: interface{},
    SiteVersion: interface{},
}

Properties

Name Type Description
SiteId interface{} Property siteId: The site ID.
DnsRecord interface{} Property dnsRecord: Overwrite the DNS resolution record of the origin request.
Follow302Enable interface{} Property follow302Enable: Return Source 302 follow switch.
Follow302MaxTries interface{} Property follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].
Follow302RetainArgs interface{} Property follow302RetainArgs: Retain the original request parameter switch.
Follow302RetainHeader interface{} Property follow302RetainHeader: Retain the original request header switch.
Follow302TargetHost interface{} Property follow302TargetHost: Modify the source host after 302.
OriginHost interface{} Property originHost: The HOST carried in the back-to-origin request.
OriginHttpPort interface{} Property originHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.
OriginHttpsPort interface{} Property originHttpsPort: Port of the origin server when using the HTTPS protocol for origin requests.
OriginMtls interface{} Property originMtls: The mtls switch.
OriginReadTimeout interface{} Property originReadTimeout: Read timeout interval of the source station (s).
OriginScheme interface{} Property originScheme: The protocol used by the back-to-origin request.
OriginSni interface{} Property originSni: SNI carried in the back-to-origin request.
OriginVerify interface{} Property originVerify: Source station certificate verification switch.
Range interface{} Property range: Use the range sharding method to download the file from the source.
RangeChunkSize interface{} Property rangeChunkSize: range shard size.
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.
Sequence interface{} Property sequence: Order of rule execution.
SiteVersion interface{} Property siteVersion: The version number of the site configuration.

SiteIdRequired

SiteId interface{}
  • Type: interface{}

Property siteId: The site ID.


DnsRecordOptional

DnsRecord interface{}
  • Type: interface{}

Property dnsRecord: Overwrite the DNS resolution record of the origin request.


Follow302EnableOptional

Follow302Enable interface{}
  • Type: interface{}

Property follow302Enable: Return Source 302 follow switch.

Value range:

  • on: ON.
  • off: closed.

Follow302MaxTriesOptional

Follow302MaxTries interface{}
  • Type: interface{}

Property follow302MaxTries: 302 follows the upper limit of the number of times, with a value range of [1-5].


Follow302RetainArgsOptional

Follow302RetainArgs interface{}
  • Type: interface{}

Property follow302RetainArgs: Retain the original request parameter switch.

Value range:

  • on: ON.
  • off: closed.

Follow302RetainHeaderOptional

Follow302RetainHeader interface{}
  • Type: interface{}

Property follow302RetainHeader: Retain the original request header switch.

Value range:

  • on: ON.
  • off: closed.

Follow302TargetHostOptional

Follow302TargetHost interface{}
  • Type: interface{}

Property follow302TargetHost: Modify the source host after 302.


OriginHostOptional

OriginHost interface{}
  • Type: interface{}

Property originHost: The HOST carried in the back-to-origin request.


OriginHttpPortOptional

OriginHttpPort interface{}
  • Type: interface{}

Property originHttpPort: The port of the origin station accessed when the HTTP protocol is used to return to the origin.


OriginHttpsPortOptional

OriginHttpsPort interface{}
  • Type: interface{}

Property originHttpsPort: Port of the origin server when using the HTTPS protocol for origin requests.


OriginMtlsOptional

OriginMtls interface{}
  • Type: interface{}

Property originMtls: The mtls switch.

Value range:

  • on: ON.
  • off: closed.

OriginReadTimeoutOptional

OriginReadTimeout interface{}
  • Type: interface{}

Property originReadTimeout: Read timeout interval of the source station (s).


OriginSchemeOptional

OriginScheme interface{}
  • Type: interface{}

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

OriginSni interface{}
  • Type: interface{}

Property originSni: SNI carried in the back-to-origin request.


OriginVerifyOptional

OriginVerify interface{}
  • Type: interface{}

Property originVerify: Source station certificate verification switch.

Value range:

  • on: ON.
  • off: closed.

RangeOptional

Range interface{}
  • Type: interface{}

Property range: Use the range sharding method to download the file from the source.

Value range:

  • on: Open.
  • off: off.
  • force: force.

RangeChunkSizeOptional

RangeChunkSize interface{}
  • Type: interface{}

Property rangeChunkSize: range shard size.


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.


SequenceOptional

Sequence interface{}
  • Type: interface{}

Property sequence: Order of rule execution.

The smaller the value, the higher the priority for execution.


SiteVersionOptional

SiteVersion interface{}
  • Type: interface{}

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.