Origin

class oci.waas.models.Origin(**kwargs)

Bases: object

A detailed description of your web application’s origin host server. An origin must be defined to set up WAF rules.

Methods

__init__(**kwargs) Initializes a new Origin object with values from keyword arguments.

Attributes

custom_headers Gets the custom_headers of this Origin.
http_port Gets the http_port of this Origin.
https_port Gets the https_port of this Origin.
uri [Required] Gets the uri of this Origin.
__init__(**kwargs)

Initializes a new Origin object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • uri (str) – The value to assign to the uri property of this Origin.
  • http_port (int) – The value to assign to the http_port property of this Origin.
  • https_port (int) – The value to assign to the https_port property of this Origin.
  • custom_headers (list[oci.waas.models.Header]) – The value to assign to the custom_headers property of this Origin.
custom_headers

Gets the custom_headers of this Origin. A list of HTTP headers to forward to your origin.

Returns:The custom_headers of this Origin.
Return type:list[oci.waas.models.Header]
http_port

Gets the http_port of this Origin. The HTTP port on the origin that the web application listens on. If unspecified, defaults to 80. If 0 is specified - the origin is not used for HTTP traffic.

Returns:The http_port of this Origin.
Return type:int
https_port

Gets the https_port of this Origin. The HTTPS port on the origin that the web application listens on. If unspecified, defaults to 443. If 0 is specified - the origin is not used for HTTPS traffic.

Returns:The https_port of this Origin.
Return type:int
uri

[Required] Gets the uri of this Origin. The URI of the origin. Does not support paths. Port numbers should be specified in the httpPort and httpsPort fields.

Returns:The uri of this Origin.
Return type:str