oci.LoadBalancer.RuleSet
Explore with Pulumi AI
This resource provides the Rule Set resource in Oracle Cloud Infrastructure Load Balancer service.
Creates a new rule set associated with the specified load balancer. For more information, see Managing Rule Sets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRuleSet = new oci.loadbalancer.RuleSet("test_rule_set", {
items: [{
action: ruleSetItemsAction,
allowedMethods: ruleSetItemsAllowedMethods,
areInvalidCharactersAllowed: ruleSetItemsAreInvalidCharactersAllowed,
conditions: [{
attributeName: ruleSetItemsConditionsAttributeName,
attributeValue: ruleSetItemsConditionsAttributeValue,
operator: ruleSetItemsConditionsOperator,
}],
defaultMaxConnections: ruleSetItemsDefaultMaxConnections,
description: ruleSetItemsDescription,
header: ruleSetItemsHeader,
httpLargeHeaderSizeInKb: ruleSetItemsHttpLargeHeaderSizeInKb,
ipMaxConnections: [{
ipAddresses: ruleSetItemsIpMaxConnectionsIpAddresses,
maxConnections: ruleSetItemsIpMaxConnectionsMaxConnections,
}],
prefix: ruleSetItemsPrefix,
redirectUri: {
host: ruleSetItemsRedirectUriHost,
path: ruleSetItemsRedirectUriPath,
port: ruleSetItemsRedirectUriPort,
protocol: ruleSetItemsRedirectUriProtocol,
query: ruleSetItemsRedirectUriQuery,
},
responseCode: ruleSetItemsResponseCode,
statusCode: ruleSetItemsStatusCode,
suffix: ruleSetItemsSuffix,
value: ruleSetItemsValue,
}],
loadBalancerId: testLoadBalancer.id,
name: ruleSetName,
});
import pulumi
import pulumi_oci as oci
test_rule_set = oci.load_balancer.RuleSet("test_rule_set",
items=[{
"action": rule_set_items_action,
"allowed_methods": rule_set_items_allowed_methods,
"are_invalid_characters_allowed": rule_set_items_are_invalid_characters_allowed,
"conditions": [{
"attribute_name": rule_set_items_conditions_attribute_name,
"attribute_value": rule_set_items_conditions_attribute_value,
"operator": rule_set_items_conditions_operator,
}],
"default_max_connections": rule_set_items_default_max_connections,
"description": rule_set_items_description,
"header": rule_set_items_header,
"http_large_header_size_in_kb": rule_set_items_http_large_header_size_in_kb,
"ip_max_connections": [{
"ip_addresses": rule_set_items_ip_max_connections_ip_addresses,
"max_connections": rule_set_items_ip_max_connections_max_connections,
}],
"prefix": rule_set_items_prefix,
"redirect_uri": {
"host": rule_set_items_redirect_uri_host,
"path": rule_set_items_redirect_uri_path,
"port": rule_set_items_redirect_uri_port,
"protocol": rule_set_items_redirect_uri_protocol,
"query": rule_set_items_redirect_uri_query,
},
"response_code": rule_set_items_response_code,
"status_code": rule_set_items_status_code,
"suffix": rule_set_items_suffix,
"value": rule_set_items_value,
}],
load_balancer_id=test_load_balancer["id"],
name=rule_set_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LoadBalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LoadBalancer.NewRuleSet(ctx, "test_rule_set", &LoadBalancer.RuleSetArgs{
Items: loadbalancer.RuleSetItemArray{
&loadbalancer.RuleSetItemArgs{
Action: pulumi.Any(ruleSetItemsAction),
AllowedMethods: pulumi.Any(ruleSetItemsAllowedMethods),
AreInvalidCharactersAllowed: pulumi.Any(ruleSetItemsAreInvalidCharactersAllowed),
Conditions: loadbalancer.RuleSetItemConditionArray{
&loadbalancer.RuleSetItemConditionArgs{
AttributeName: pulumi.Any(ruleSetItemsConditionsAttributeName),
AttributeValue: pulumi.Any(ruleSetItemsConditionsAttributeValue),
Operator: pulumi.Any(ruleSetItemsConditionsOperator),
},
},
DefaultMaxConnections: pulumi.Any(ruleSetItemsDefaultMaxConnections),
Description: pulumi.Any(ruleSetItemsDescription),
Header: pulumi.Any(ruleSetItemsHeader),
HttpLargeHeaderSizeInKb: pulumi.Any(ruleSetItemsHttpLargeHeaderSizeInKb),
IpMaxConnections: loadbalancer.RuleSetItemIpMaxConnectionArray{
&loadbalancer.RuleSetItemIpMaxConnectionArgs{
IpAddresses: pulumi.Any(ruleSetItemsIpMaxConnectionsIpAddresses),
MaxConnections: pulumi.Any(ruleSetItemsIpMaxConnectionsMaxConnections),
},
},
Prefix: pulumi.Any(ruleSetItemsPrefix),
RedirectUri: &loadbalancer.RuleSetItemRedirectUriArgs{
Host: pulumi.Any(ruleSetItemsRedirectUriHost),
Path: pulumi.Any(ruleSetItemsRedirectUriPath),
Port: pulumi.Any(ruleSetItemsRedirectUriPort),
Protocol: pulumi.Any(ruleSetItemsRedirectUriProtocol),
Query: pulumi.Any(ruleSetItemsRedirectUriQuery),
},
ResponseCode: pulumi.Any(ruleSetItemsResponseCode),
StatusCode: pulumi.Any(ruleSetItemsStatusCode),
Suffix: pulumi.Any(ruleSetItemsSuffix),
Value: pulumi.Any(ruleSetItemsValue),
},
},
LoadBalancerId: pulumi.Any(testLoadBalancer.Id),
Name: pulumi.Any(ruleSetName),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRuleSet = new Oci.LoadBalancer.RuleSet("test_rule_set", new()
{
Items = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemArgs
{
Action = ruleSetItemsAction,
AllowedMethods = ruleSetItemsAllowedMethods,
AreInvalidCharactersAllowed = ruleSetItemsAreInvalidCharactersAllowed,
Conditions = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemConditionArgs
{
AttributeName = ruleSetItemsConditionsAttributeName,
AttributeValue = ruleSetItemsConditionsAttributeValue,
Operator = ruleSetItemsConditionsOperator,
},
},
DefaultMaxConnections = ruleSetItemsDefaultMaxConnections,
Description = ruleSetItemsDescription,
Header = ruleSetItemsHeader,
HttpLargeHeaderSizeInKb = ruleSetItemsHttpLargeHeaderSizeInKb,
IpMaxConnections = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemIpMaxConnectionArgs
{
IpAddresses = ruleSetItemsIpMaxConnectionsIpAddresses,
MaxConnections = ruleSetItemsIpMaxConnectionsMaxConnections,
},
},
Prefix = ruleSetItemsPrefix,
RedirectUri = new Oci.LoadBalancer.Inputs.RuleSetItemRedirectUriArgs
{
Host = ruleSetItemsRedirectUriHost,
Path = ruleSetItemsRedirectUriPath,
Port = ruleSetItemsRedirectUriPort,
Protocol = ruleSetItemsRedirectUriProtocol,
Query = ruleSetItemsRedirectUriQuery,
},
ResponseCode = ruleSetItemsResponseCode,
StatusCode = ruleSetItemsStatusCode,
Suffix = ruleSetItemsSuffix,
Value = ruleSetItemsValue,
},
},
LoadBalancerId = testLoadBalancer.Id,
Name = ruleSetName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LoadBalancer.RuleSet;
import com.pulumi.oci.LoadBalancer.RuleSetArgs;
import com.pulumi.oci.LoadBalancer.inputs.RuleSetItemArgs;
import com.pulumi.oci.LoadBalancer.inputs.RuleSetItemRedirectUriArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testRuleSet = new RuleSet("testRuleSet", RuleSetArgs.builder()
.items(RuleSetItemArgs.builder()
.action(ruleSetItemsAction)
.allowedMethods(ruleSetItemsAllowedMethods)
.areInvalidCharactersAllowed(ruleSetItemsAreInvalidCharactersAllowed)
.conditions(RuleSetItemConditionArgs.builder()
.attributeName(ruleSetItemsConditionsAttributeName)
.attributeValue(ruleSetItemsConditionsAttributeValue)
.operator(ruleSetItemsConditionsOperator)
.build())
.defaultMaxConnections(ruleSetItemsDefaultMaxConnections)
.description(ruleSetItemsDescription)
.header(ruleSetItemsHeader)
.httpLargeHeaderSizeInKb(ruleSetItemsHttpLargeHeaderSizeInKb)
.ipMaxConnections(RuleSetItemIpMaxConnectionArgs.builder()
.ipAddresses(ruleSetItemsIpMaxConnectionsIpAddresses)
.maxConnections(ruleSetItemsIpMaxConnectionsMaxConnections)
.build())
.prefix(ruleSetItemsPrefix)
.redirectUri(RuleSetItemRedirectUriArgs.builder()
.host(ruleSetItemsRedirectUriHost)
.path(ruleSetItemsRedirectUriPath)
.port(ruleSetItemsRedirectUriPort)
.protocol(ruleSetItemsRedirectUriProtocol)
.query(ruleSetItemsRedirectUriQuery)
.build())
.responseCode(ruleSetItemsResponseCode)
.statusCode(ruleSetItemsStatusCode)
.suffix(ruleSetItemsSuffix)
.value(ruleSetItemsValue)
.build())
.loadBalancerId(testLoadBalancer.id())
.name(ruleSetName)
.build());
}
}
resources:
testRuleSet:
type: oci:LoadBalancer:RuleSet
name: test_rule_set
properties:
items:
- action: ${ruleSetItemsAction}
allowedMethods: ${ruleSetItemsAllowedMethods}
areInvalidCharactersAllowed: ${ruleSetItemsAreInvalidCharactersAllowed}
conditions:
- attributeName: ${ruleSetItemsConditionsAttributeName}
attributeValue: ${ruleSetItemsConditionsAttributeValue}
operator: ${ruleSetItemsConditionsOperator}
defaultMaxConnections: ${ruleSetItemsDefaultMaxConnections}
description: ${ruleSetItemsDescription}
header: ${ruleSetItemsHeader}
httpLargeHeaderSizeInKb: ${ruleSetItemsHttpLargeHeaderSizeInKb}
ipMaxConnections:
- ipAddresses: ${ruleSetItemsIpMaxConnectionsIpAddresses}
maxConnections: ${ruleSetItemsIpMaxConnectionsMaxConnections}
prefix: ${ruleSetItemsPrefix}
redirectUri:
host: ${ruleSetItemsRedirectUriHost}
path: ${ruleSetItemsRedirectUriPath}
port: ${ruleSetItemsRedirectUriPort}
protocol: ${ruleSetItemsRedirectUriProtocol}
query: ${ruleSetItemsRedirectUriQuery}
responseCode: ${ruleSetItemsResponseCode}
statusCode: ${ruleSetItemsStatusCode}
suffix: ${ruleSetItemsSuffix}
value: ${ruleSetItemsValue}
loadBalancerId: ${testLoadBalancer.id}
name: ${ruleSetName}
Create RuleSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleSet(name: string, args: RuleSetArgs, opts?: CustomResourceOptions);
@overload
def RuleSet(resource_name: str,
args: RuleSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[_loadbalancer.RuleSetItemArgs]] = None,
load_balancer_id: Optional[str] = None,
name: Optional[str] = None)
func NewRuleSet(ctx *Context, name string, args RuleSetArgs, opts ...ResourceOption) (*RuleSet, error)
public RuleSet(string name, RuleSetArgs args, CustomResourceOptions? opts = null)
public RuleSet(String name, RuleSetArgs args)
public RuleSet(String name, RuleSetArgs args, CustomResourceOptions options)
type: oci:LoadBalancer:RuleSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ruleSetResource = new Oci.LoadBalancer.RuleSet("ruleSetResource", new()
{
Items = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemArgs
{
Action = "string",
AllowedMethods = new[]
{
"string",
},
AreInvalidCharactersAllowed = false,
Conditions = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemConditionArgs
{
AttributeName = "string",
AttributeValue = "string",
Operator = "string",
},
},
DefaultMaxConnections = 0,
Description = "string",
Header = "string",
HttpLargeHeaderSizeInKb = 0,
IpMaxConnections = new[]
{
new Oci.LoadBalancer.Inputs.RuleSetItemIpMaxConnectionArgs
{
IpAddresses = new[]
{
"string",
},
MaxConnections = 0,
},
},
Prefix = "string",
RedirectUri = new Oci.LoadBalancer.Inputs.RuleSetItemRedirectUriArgs
{
Host = "string",
Path = "string",
Port = 0,
Protocol = "string",
Query = "string",
},
ResponseCode = 0,
StatusCode = 0,
Suffix = "string",
Value = "string",
},
},
LoadBalancerId = "string",
Name = "string",
});
example, err := LoadBalancer.NewRuleSet(ctx, "ruleSetResource", &LoadBalancer.RuleSetArgs{
Items: loadbalancer.RuleSetItemArray{
&loadbalancer.RuleSetItemArgs{
Action: pulumi.String("string"),
AllowedMethods: pulumi.StringArray{
pulumi.String("string"),
},
AreInvalidCharactersAllowed: pulumi.Bool(false),
Conditions: loadbalancer.RuleSetItemConditionArray{
&loadbalancer.RuleSetItemConditionArgs{
AttributeName: pulumi.String("string"),
AttributeValue: pulumi.String("string"),
Operator: pulumi.String("string"),
},
},
DefaultMaxConnections: pulumi.Int(0),
Description: pulumi.String("string"),
Header: pulumi.String("string"),
HttpLargeHeaderSizeInKb: pulumi.Int(0),
IpMaxConnections: loadbalancer.RuleSetItemIpMaxConnectionArray{
&loadbalancer.RuleSetItemIpMaxConnectionArgs{
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
MaxConnections: pulumi.Int(0),
},
},
Prefix: pulumi.String("string"),
RedirectUri: &loadbalancer.RuleSetItemRedirectUriArgs{
Host: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
Query: pulumi.String("string"),
},
ResponseCode: pulumi.Int(0),
StatusCode: pulumi.Int(0),
Suffix: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
LoadBalancerId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var ruleSetResource = new RuleSet("ruleSetResource", RuleSetArgs.builder()
.items(RuleSetItemArgs.builder()
.action("string")
.allowedMethods("string")
.areInvalidCharactersAllowed(false)
.conditions(RuleSetItemConditionArgs.builder()
.attributeName("string")
.attributeValue("string")
.operator("string")
.build())
.defaultMaxConnections(0)
.description("string")
.header("string")
.httpLargeHeaderSizeInKb(0)
.ipMaxConnections(RuleSetItemIpMaxConnectionArgs.builder()
.ipAddresses("string")
.maxConnections(0)
.build())
.prefix("string")
.redirectUri(RuleSetItemRedirectUriArgs.builder()
.host("string")
.path("string")
.port(0)
.protocol("string")
.query("string")
.build())
.responseCode(0)
.statusCode(0)
.suffix("string")
.value("string")
.build())
.loadBalancerId("string")
.name("string")
.build());
rule_set_resource = oci.load_balancer.RuleSet("ruleSetResource",
items=[{
"action": "string",
"allowed_methods": ["string"],
"are_invalid_characters_allowed": False,
"conditions": [{
"attribute_name": "string",
"attribute_value": "string",
"operator": "string",
}],
"default_max_connections": 0,
"description": "string",
"header": "string",
"http_large_header_size_in_kb": 0,
"ip_max_connections": [{
"ip_addresses": ["string"],
"max_connections": 0,
}],
"prefix": "string",
"redirect_uri": {
"host": "string",
"path": "string",
"port": 0,
"protocol": "string",
"query": "string",
},
"response_code": 0,
"status_code": 0,
"suffix": "string",
"value": "string",
}],
load_balancer_id="string",
name="string")
const ruleSetResource = new oci.loadbalancer.RuleSet("ruleSetResource", {
items: [{
action: "string",
allowedMethods: ["string"],
areInvalidCharactersAllowed: false,
conditions: [{
attributeName: "string",
attributeValue: "string",
operator: "string",
}],
defaultMaxConnections: 0,
description: "string",
header: "string",
httpLargeHeaderSizeInKb: 0,
ipMaxConnections: [{
ipAddresses: ["string"],
maxConnections: 0,
}],
prefix: "string",
redirectUri: {
host: "string",
path: "string",
port: 0,
protocol: "string",
query: "string",
},
responseCode: 0,
statusCode: 0,
suffix: "string",
value: "string",
}],
loadBalancerId: "string",
name: "string",
});
type: oci:LoadBalancer:RuleSet
properties:
items:
- action: string
allowedMethods:
- string
areInvalidCharactersAllowed: false
conditions:
- attributeName: string
attributeValue: string
operator: string
defaultMaxConnections: 0
description: string
header: string
httpLargeHeaderSizeInKb: 0
ipMaxConnections:
- ipAddresses:
- string
maxConnections: 0
prefix: string
redirectUri:
host: string
path: string
port: 0
protocol: string
query: string
responseCode: 0
statusCode: 0
suffix: string
value: string
loadBalancerId: string
name: string
RuleSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RuleSet resource accepts the following input properties:
- Items
List<Rule
Set Item> - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- Load
Balancer stringId - The OCID of the specified load balancer.
- Name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Items
[]Rule
Set Item Args - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- Load
Balancer stringId - The OCID of the specified load balancer.
- Name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- items
List<Rule
Set Item> - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer StringId - The OCID of the specified load balancer.
- name String
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- items
Rule
Set Item[] - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer stringId - The OCID of the specified load balancer.
- name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- items
Sequence[loadbalancer.
Rule Set Item Args] - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load_
balancer_ strid - The OCID of the specified load balancer.
- name str
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- items List<Property Map>
- (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer StringId - The OCID of the specified load balancer.
- name String
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleSet resource produces the following output properties:
Look up Existing RuleSet Resource
Get an existing RuleSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RuleSetState, opts?: CustomResourceOptions): RuleSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[_loadbalancer.RuleSetItemArgs]] = None,
load_balancer_id: Optional[str] = None,
name: Optional[str] = None,
state: Optional[str] = None) -> RuleSet
func GetRuleSet(ctx *Context, name string, id IDInput, state *RuleSetState, opts ...ResourceOption) (*RuleSet, error)
public static RuleSet Get(string name, Input<string> id, RuleSetState? state, CustomResourceOptions? opts = null)
public static RuleSet get(String name, Output<String> id, RuleSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Items
List<Rule
Set Item> - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- Load
Balancer stringId - The OCID of the specified load balancer.
- Name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- Items
[]Rule
Set Item Args - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- Load
Balancer stringId - The OCID of the specified load balancer.
- Name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- State string
- items
List<Rule
Set Item> - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer StringId - The OCID of the specified load balancer.
- name String
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
- items
Rule
Set Item[] - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer stringId - The OCID of the specified load balancer.
- name string
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state string
- items
Sequence[loadbalancer.
Rule Set Item Args] - (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load_
balancer_ strid - The OCID of the specified load balancer.
- name str
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
- items List<Property Map>
- (Updatable) An array of rules that compose the rule set. For more information, see Managing Rule Sets
- load
Balancer StringId - The OCID of the specified load balancer.
- name String
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering confidential information. Example:
example_rule_set
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state String
Supporting Types
RuleSetItem, RuleSetItemArgs
- Action string
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- Allowed
Methods List<string> (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- Are
Invalid boolCharacters Allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- Conditions
List<Rule
Set Item Condition> - (Updatable)
- Default
Max intConnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- Description string
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- Header string
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- Http
Large intHeader Size In Kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- Ip
Max List<RuleConnections Set Item Ip Max Connection> - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- Prefix string
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- Redirect
Uri RuleSet Item Redirect Uri (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- Response
Code int (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- Status
Code int - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - Suffix string
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- Value string
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
- Action string
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- Allowed
Methods []string (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- Are
Invalid boolCharacters Allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- Conditions
[]Rule
Set Item Condition - (Updatable)
- Default
Max intConnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- Description string
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- Header string
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- Http
Large intHeader Size In Kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- Ip
Max []RuleConnections Set Item Ip Max Connection - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- Prefix string
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- Redirect
Uri RuleSet Item Redirect Uri (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- Response
Code int (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- Status
Code int - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - Suffix string
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- Value string
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
- action String
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- allowed
Methods List<String> (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- are
Invalid BooleanCharacters Allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- conditions
List<Rule
Set Item Condition> - (Updatable)
- default
Max IntegerConnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- description String
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- header String
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- http
Large IntegerHeader Size In Kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- ip
Max List<RuleConnections Set Item Ip Max Connection> - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- prefix String
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- redirect
Uri RuleSet Item Redirect Uri (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- response
Code Integer (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- status
Code Integer - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - suffix String
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- value String
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
- action string
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- allowed
Methods string[] (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- are
Invalid booleanCharacters Allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- conditions
Rule
Set Item Condition[] - (Updatable)
- default
Max numberConnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- description string
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- header string
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- http
Large numberHeader Size In Kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- ip
Max RuleConnections Set Item Ip Max Connection[] - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- prefix string
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- redirect
Uri RuleSet Item Redirect Uri (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- response
Code number (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- status
Code number - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - suffix string
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- value string
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
- action str
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- allowed_
methods Sequence[str] (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- are_
invalid_ boolcharacters_ allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- conditions
Sequence[loadbalancer.
Rule Set Item Condition] - (Updatable)
- default_
max_ intconnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- description str
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- header str
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- http_
large_ intheader_ size_ in_ kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- ip_
max_ Sequence[loadbalancer.connections Rule Set Item Ip Max Connection] - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- prefix str
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- redirect_
uri loadbalancer.Rule Set Item Redirect Uri (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- response_
code int (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- status_
code int - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - suffix str
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- value str
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
- action String
- (Updatable) The action can be one of these values:
ADD_HTTP_REQUEST_HEADER
,ADD_HTTP_RESPONSE_HEADER
,ALLOW
,CONTROL_ACCESS_USING_HTTP_METHODS
,EXTEND_HTTP_REQUEST_HEADER_VALUE
,EXTEND_HTTP_RESPONSE_HEADER_VALUE
,HTTP_HEADER
,IP_BASED_MAX_CONNECTIONS
,REDIRECT
,REMOVE_HTTP_REQUEST_HEADER
,REMOVE_HTTP_RESPONSE_HEADER
- allowed
Methods List<String> (Updatable) The list of HTTP methods allowed for this listener.
By default, you can specify only the standard HTTP methods defined in the HTTP Method Registry. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at Managing Rule Sets.
Your backend application must be able to handle the methods specified in this list.
The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact My Oracle Support to remove the restriction for your tenancy.
Example: ["GET", "PUT", "POST", "PROPFIND"]
- are
Invalid BooleanCharacters Allowed - (Updatable) Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header
- conditions List<Property Map>
- (Updatable)
- default
Max NumberConnections - (Updatable) The maximum number of connections that the any IP can make to a listener unless the IP is mentioned in maxConnections. If no defaultMaxConnections is specified the default is unlimited.
- description String
(Updatable) A brief description of the access control rule. Avoid entering confidential information.
example:
192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.
- header String
- (Updatable) A header name that conforms to RFC 7230. Example:
example_header_name
- http
Large NumberHeader Size In Kb - (Updatable) The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64.
- ip
Max List<Property Map>Connections - (Updatable) An array of IPs that have a maxConnection setting different than the default and what that maxConnection setting is
- prefix String
(Updatable) A string to prepend to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_prefix_value
- value cannot contain
- redirect
Uri Property Map (Updatable) An object that defines the redirect URI applied to the original request. The object property values compose the redirect URI.
NOTE: The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide meaningful, complete, and correct field values. If any component field of this object has no value, the system retains the value from the incoming HTTP request URI.
For example, if you specify only the protocol field
https
, and the incoming request URI ishttp://example.com:8080
, the resulting runtime redirect URI ishttps://example.com:8080
. The system retains the host and port from the incoming URI and does not automatically change the port setting from8080
to443
.Be sure to configure valid percent-encoding (URL encoding) when needed.
In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens extract values from the incoming HTTP request URI.
- {protocol} : The protocol from the incoming HTTP request URI.
- {host} : The domain name from the incoming HTTP request URI.
- {port} : The port from the incoming HTTP request URI.
- {path} : The path from the incoming HTTP request URI.
- {query} : The query string from the incoming HTTP request URI.
The tokens are case sensitive. For example,
{host}
is a valid token, but{HOST}
is not.You can retain the literal characters of a token when you specify values for the path and query properties of the redirect URI. Use a backslash (\) as the escape character for the \, {, and } characters. For example, if the incoming HTTP request URI is
/video
, the path property value:/example{path}123\{path\}
appears in the constructed redirect URI as:
/example/video123{path}
- response
Code Number (Updatable) The HTTP status code to return when the incoming request is redirected.
The status line returned with the code is mapped from the standard HTTP specification. Valid response codes for redirection are:
- 301
- 302
- 303
- 307
- 308
The default value is
302
(Found).Example:
301
- status
Code Number - (Updatable) The HTTP status code to return when the requested HTTP method is not in the list of allowed methods. The associated status line returned with the code is mapped from the standard HTTP specification. The default value is
405 (Method Not Allowed)
. Example: 403 - suffix String
(Updatable) A string to append to the header value. The resulting header value must still conform to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_suffix_value
- value cannot contain
- value String
(Updatable) A header value that conforms to RFC 7230. With the following exceptions:
- value cannot contain
$
- value cannot contain patterns like
{variable_name}
. They are reserved for future extensions. Currently, such values are invalid.
Example:
example_value
- value cannot contain
RuleSetItemCondition, RuleSetItemConditionArgs
- Attribute
Name string - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- Attribute
Value string - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- Operator string
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
- Attribute
Name string - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- Attribute
Value string - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- Operator string
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
- attribute
Name String - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- attribute
Value String - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- operator String
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
- attribute
Name string - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- attribute
Value string - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- operator string
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
- attribute_
name str - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- attribute_
value str - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- operator str
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
- attribute
Name String - (Updatable) The attribute_name can be one of these values:
PATH
,SOURCE_IP_ADDRESS
,SOURCE_VCN_ID
,SOURCE_VCN_IP_ADDRESS
- attribute
Value String - (Updatable) Depends on
attribute_name
:- when
attribute_name
=SOURCE_IP_ADDRESS
| IPv4 or IPv6 address range to which the source IP address of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_IP_ADDRESS
| IPv4 address range to which the original client IP address (in customer VCN) of incoming packet would be matched against - when
attribute_name
=SOURCE_VCN_ID
| OCID of the customer VCN to which the service gateway embedded VCN ID of incoming packet would be matched against
- when
- operator String
- (Updatable) A string that specifies how to compare the PathMatchCondition object's
attributeValue
string to the incoming URI.- EXACT_MATCH - The incoming URI path must exactly and completely match the
attributeValue
string. - FORCE_LONGEST_PREFIX_MATCH - The system looks for the
attributeValue
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - The beginning portion of the incoming URI path must exactly match the
attributeValue
string. - SUFFIX_MATCH - The ending portion of the incoming URI path must exactly match the
attributeValue
string.
- EXACT_MATCH - The incoming URI path must exactly and completely match the
RuleSetItemIpMaxConnection, RuleSetItemIpMaxConnectionArgs
- Ip
Addresses List<string> - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- Max
Connections int - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
- Ip
Addresses []string - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- Max
Connections int - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
- ip
Addresses List<String> - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- max
Connections Integer - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
- ip
Addresses string[] - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- max
Connections number - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
- ip_
addresses Sequence[str] - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- max_
connections int - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
- ip
Addresses List<String> - (Updatable) Each element in the list should be valid IPv4 or IPv6 CIDR Block address. Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]'
- max
Connections Number - (Updatable) The maximum number of simultaneous connections that the specified IPs can make to the Listener. IPs without a maxConnections setting can make either defaultMaxConnections simultaneous connections to a listener or, if no defaultMaxConnections is specified, an unlimited number of simultaneous connections to a listener.
RuleSetItemRedirectUri, RuleSetItemRedirectUriArgs
- Host string
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- Path string
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- Port int
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- Protocol string
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- Query string
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
- Host string
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- Path string
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- Port int
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- Protocol string
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- Query string
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
- host String
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- path String
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- port Integer
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- protocol String
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- query String
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
- host string
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- path string
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- port number
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- protocol string
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- query string
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
- host str
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- path str
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- port int
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- protocol str
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- query str
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
- host String
(Updatable) The valid domain name (hostname) or IP address to use in the redirect URI.
When this value is null, not set, or set to
{host}
, the service preserves the original domain name from the incoming HTTP request URI.All RedirectUri tokens are valid for this property. You can use any token more than once.
Curly braces are valid in this property only to surround tokens, such as
{host}
Examples:
- example.com appears as
example.com
in the redirect URI. - in{host} appears as
inexample.com
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - {port}{host} appears as
8081example.com
in the redirect URI ifexample.com
is the hostname and the port is8081
in the incoming HTTP request URI.
- example.com appears as
- path String
(Updatable) The HTTP URI path to use in the redirect URI.
When this value is null, not set, or set to
{path}
, the service preserves the original path from the incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, "".All RedirectUri tokens are valid for this property. You can use any token more than once.
The path string must begin with
/
if it does not begin with the{path}
token.Examples:
- /example/video/123 appears as
/example/video/123
in the redirect URI. - /example{path} appears as
/example/video/123
in the redirect URI if/video/123
is the path in the incoming HTTP request URI. - {path}/123 appears as
/example/video/123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - {path}123 appears as
/example/video123
in the redirect URI if/example/video
is the path in the incoming HTTP request URI. - /{host}/123 appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname in the incoming HTTP request URI. - /{host}/{port} appears as
/example.com/123
in the redirect URI ifexample.com
is the hostname and123
is the port in the incoming HTTP request URI. - /{query} appears as
/lang=en
in the redirect URI if the query islang=en
in the incoming HTTP request URI.
- /example/video/123 appears as
- port Number
(Updatable) The communication port to use in the redirect URI.
Valid values include integers from 1 to 65535.
When this value is null, the service preserves the original port from the incoming HTTP request URI.
Example:
8081
- protocol String
(Updatable) The HTTP protocol to use in the redirect URI.
When this value is null, not set, or set to
{protocol}
, the service preserves the original protocol from the incoming HTTP request URI. Allowed values are:- HTTP
- HTTPS
- {protocol}
{protocol}
is the only valid token for this property. It can appear only once in the value string.Example:
HTTPS
- query String
(Updatable) The query string to use in the redirect URI.
When this value is null, not set, or set to
{query}
, the service preserves the original query parameters from the incoming HTTP request URI.All
RedirectUri
tokens are valid for this property. You can use any token more than once.If the query string does not begin with the
{query}
token, it must begin with the question mark (?) character.You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty string, "".
If the specified query string results in a redirect URI ending with
?
or&
, the last character is truncated. For example, if the incoming URI ishttp://host.com:8080/documents
and the query property value is?lang=en&{query}
, the redirect URI ishttp://host.com:8080/documents?lang=en
. The system truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.Examples:
- lang=en&time_zone=PST appears as
lang=en&time_zone=PST
in the redirect URI. - {query} appears as
lang=en&time_zone=PST
in the redirect URI iflang=en&time_zone=PST
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the{query}
token renders as an empty string. - lang=en&{query}&time_zone=PST appears as
lang=en&country=us&time_zone=PST
in the redirect URI ifcountry=us
is the query string in the incoming HTTP request. If the incoming HTTP request has no query parameters, this value renders aslang=en&time_zone=PST
. - protocol={protocol}&hostname={host} appears as
protocol=http&hostname=example.com
in the redirect URI if the protocol isHTTP
and the hostname isexample.com
in the incoming HTTP request. - port={port}&hostname={host} appears as
port=8080&hostname=example.com
in the redirect URI if the port is8080
and the hostname isexample.com
in the incoming HTTP request URI.
- lang=en&time_zone=PST appears as
Import
RuleSets can be imported using the id
, e.g.
$ pulumi import oci:LoadBalancer/ruleSet:RuleSet test_rule_set "loadBalancers/{loadBalancerId}/ruleSets/{ruleSetName}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.