1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. SteeringPolicy
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Dns.SteeringPolicy

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Steering Policy resource in Oracle Cloud Infrastructure DNS service.

    Creates a new steering policy in the specified compartment. For more information on creating policies with templates, see Traffic Management API Guide.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSteeringPolicy = new oci.dns.SteeringPolicy("test_steering_policy", {
        compartmentId: compartmentId,
        displayName: steeringPolicyDisplayName,
        template: steeringPolicyTemplate,
        answers: [{
            name: steeringPolicyAnswersName,
            rdata: steeringPolicyAnswersRdata,
            rtype: steeringPolicyAnswersRtype,
            isDisabled: steeringPolicyAnswersIsDisabled,
            pool: steeringPolicyAnswersPool,
        }],
        definedTags: steeringPolicyDefinedTags,
        freeformTags: steeringPolicyFreeformTags,
        healthCheckMonitorId: testHttpMonitor.id,
        rules: [{
            ruleType: steeringPolicyRulesRuleType,
            cases: [{
                answerDatas: [{
                    answerCondition: steeringPolicyRulesCasesAnswerDataAnswerCondition,
                    shouldKeep: steeringPolicyRulesCasesAnswerDataShouldKeep,
                    value: steeringPolicyRulesCasesAnswerDataValue,
                }],
                caseCondition: steeringPolicyRulesCasesCaseCondition,
                count: steeringPolicyRulesCasesCount,
            }],
            defaultAnswerDatas: [{
                answerCondition: steeringPolicyRulesDefaultAnswerDataAnswerCondition,
                shouldKeep: steeringPolicyRulesDefaultAnswerDataShouldKeep,
                value: steeringPolicyRulesDefaultAnswerDataValue,
            }],
            defaultCount: steeringPolicyRulesDefaultCount,
            description: steeringPolicyRulesDescription,
        }],
        ttl: steeringPolicyTtl,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_steering_policy = oci.dns.SteeringPolicy("test_steering_policy",
        compartment_id=compartment_id,
        display_name=steering_policy_display_name,
        template=steering_policy_template,
        answers=[{
            "name": steering_policy_answers_name,
            "rdata": steering_policy_answers_rdata,
            "rtype": steering_policy_answers_rtype,
            "is_disabled": steering_policy_answers_is_disabled,
            "pool": steering_policy_answers_pool,
        }],
        defined_tags=steering_policy_defined_tags,
        freeform_tags=steering_policy_freeform_tags,
        health_check_monitor_id=test_http_monitor["id"],
        rules=[{
            "rule_type": steering_policy_rules_rule_type,
            "cases": [{
                "answer_datas": [{
                    "answer_condition": steering_policy_rules_cases_answer_data_answer_condition,
                    "should_keep": steering_policy_rules_cases_answer_data_should_keep,
                    "value": steering_policy_rules_cases_answer_data_value,
                }],
                "case_condition": steering_policy_rules_cases_case_condition,
                "count": steering_policy_rules_cases_count,
            }],
            "default_answer_datas": [{
                "answer_condition": steering_policy_rules_default_answer_data_answer_condition,
                "should_keep": steering_policy_rules_default_answer_data_should_keep,
                "value": steering_policy_rules_default_answer_data_value,
            }],
            "default_count": steering_policy_rules_default_count,
            "description": steering_policy_rules_description,
        }],
        ttl=steering_policy_ttl)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Dns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Dns.NewSteeringPolicy(ctx, "test_steering_policy", &Dns.SteeringPolicyArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(steeringPolicyDisplayName),
    			Template:      pulumi.Any(steeringPolicyTemplate),
    			Answers: dns.SteeringPolicyAnswerArray{
    				&dns.SteeringPolicyAnswerArgs{
    					Name:       pulumi.Any(steeringPolicyAnswersName),
    					Rdata:      pulumi.Any(steeringPolicyAnswersRdata),
    					Rtype:      pulumi.Any(steeringPolicyAnswersRtype),
    					IsDisabled: pulumi.Any(steeringPolicyAnswersIsDisabled),
    					Pool:       pulumi.Any(steeringPolicyAnswersPool),
    				},
    			},
    			DefinedTags:          pulumi.Any(steeringPolicyDefinedTags),
    			FreeformTags:         pulumi.Any(steeringPolicyFreeformTags),
    			HealthCheckMonitorId: pulumi.Any(testHttpMonitor.Id),
    			Rules: dns.SteeringPolicyRuleArray{
    				&dns.SteeringPolicyRuleArgs{
    					RuleType: pulumi.Any(steeringPolicyRulesRuleType),
    					Cases: dns.SteeringPolicyRuleCaseArray{
    						&dns.SteeringPolicyRuleCaseArgs{
    							AnswerDatas: dns.SteeringPolicyRuleCaseAnswerDataArray{
    								&dns.SteeringPolicyRuleCaseAnswerDataArgs{
    									AnswerCondition: pulumi.Any(steeringPolicyRulesCasesAnswerDataAnswerCondition),
    									ShouldKeep:      pulumi.Any(steeringPolicyRulesCasesAnswerDataShouldKeep),
    									Value:           pulumi.Any(steeringPolicyRulesCasesAnswerDataValue),
    								},
    							},
    							CaseCondition: pulumi.Any(steeringPolicyRulesCasesCaseCondition),
    							Count:         pulumi.Any(steeringPolicyRulesCasesCount),
    						},
    					},
    					DefaultAnswerDatas: dns.SteeringPolicyRuleDefaultAnswerDataArray{
    						&dns.SteeringPolicyRuleDefaultAnswerDataArgs{
    							AnswerCondition: pulumi.Any(steeringPolicyRulesDefaultAnswerDataAnswerCondition),
    							ShouldKeep:      pulumi.Any(steeringPolicyRulesDefaultAnswerDataShouldKeep),
    							Value:           pulumi.Any(steeringPolicyRulesDefaultAnswerDataValue),
    						},
    					},
    					DefaultCount: pulumi.Any(steeringPolicyRulesDefaultCount),
    					Description:  pulumi.Any(steeringPolicyRulesDescription),
    				},
    			},
    			Ttl: pulumi.Any(steeringPolicyTtl),
    		})
    		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 testSteeringPolicy = new Oci.Dns.SteeringPolicy("test_steering_policy", new()
        {
            CompartmentId = compartmentId,
            DisplayName = steeringPolicyDisplayName,
            Template = steeringPolicyTemplate,
            Answers = new[]
            {
                new Oci.Dns.Inputs.SteeringPolicyAnswerArgs
                {
                    Name = steeringPolicyAnswersName,
                    Rdata = steeringPolicyAnswersRdata,
                    Rtype = steeringPolicyAnswersRtype,
                    IsDisabled = steeringPolicyAnswersIsDisabled,
                    Pool = steeringPolicyAnswersPool,
                },
            },
            DefinedTags = steeringPolicyDefinedTags,
            FreeformTags = steeringPolicyFreeformTags,
            HealthCheckMonitorId = testHttpMonitor.Id,
            Rules = new[]
            {
                new Oci.Dns.Inputs.SteeringPolicyRuleArgs
                {
                    RuleType = steeringPolicyRulesRuleType,
                    Cases = new[]
                    {
                        new Oci.Dns.Inputs.SteeringPolicyRuleCaseArgs
                        {
                            AnswerDatas = new[]
                            {
                                new Oci.Dns.Inputs.SteeringPolicyRuleCaseAnswerDataArgs
                                {
                                    AnswerCondition = steeringPolicyRulesCasesAnswerDataAnswerCondition,
                                    ShouldKeep = steeringPolicyRulesCasesAnswerDataShouldKeep,
                                    Value = steeringPolicyRulesCasesAnswerDataValue,
                                },
                            },
                            CaseCondition = steeringPolicyRulesCasesCaseCondition,
                            Count = steeringPolicyRulesCasesCount,
                        },
                    },
                    DefaultAnswerDatas = new[]
                    {
                        new Oci.Dns.Inputs.SteeringPolicyRuleDefaultAnswerDataArgs
                        {
                            AnswerCondition = steeringPolicyRulesDefaultAnswerDataAnswerCondition,
                            ShouldKeep = steeringPolicyRulesDefaultAnswerDataShouldKeep,
                            Value = steeringPolicyRulesDefaultAnswerDataValue,
                        },
                    },
                    DefaultCount = steeringPolicyRulesDefaultCount,
                    Description = steeringPolicyRulesDescription,
                },
            },
            Ttl = steeringPolicyTtl,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Dns.SteeringPolicy;
    import com.pulumi.oci.Dns.SteeringPolicyArgs;
    import com.pulumi.oci.Dns.inputs.SteeringPolicyAnswerArgs;
    import com.pulumi.oci.Dns.inputs.SteeringPolicyRuleArgs;
    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 testSteeringPolicy = new SteeringPolicy("testSteeringPolicy", SteeringPolicyArgs.builder()
                .compartmentId(compartmentId)
                .displayName(steeringPolicyDisplayName)
                .template(steeringPolicyTemplate)
                .answers(SteeringPolicyAnswerArgs.builder()
                    .name(steeringPolicyAnswersName)
                    .rdata(steeringPolicyAnswersRdata)
                    .rtype(steeringPolicyAnswersRtype)
                    .isDisabled(steeringPolicyAnswersIsDisabled)
                    .pool(steeringPolicyAnswersPool)
                    .build())
                .definedTags(steeringPolicyDefinedTags)
                .freeformTags(steeringPolicyFreeformTags)
                .healthCheckMonitorId(testHttpMonitor.id())
                .rules(SteeringPolicyRuleArgs.builder()
                    .ruleType(steeringPolicyRulesRuleType)
                    .cases(SteeringPolicyRuleCaseArgs.builder()
                        .answerDatas(SteeringPolicyRuleCaseAnswerDataArgs.builder()
                            .answerCondition(steeringPolicyRulesCasesAnswerDataAnswerCondition)
                            .shouldKeep(steeringPolicyRulesCasesAnswerDataShouldKeep)
                            .value(steeringPolicyRulesCasesAnswerDataValue)
                            .build())
                        .caseCondition(steeringPolicyRulesCasesCaseCondition)
                        .count(steeringPolicyRulesCasesCount)
                        .build())
                    .defaultAnswerDatas(SteeringPolicyRuleDefaultAnswerDataArgs.builder()
                        .answerCondition(steeringPolicyRulesDefaultAnswerDataAnswerCondition)
                        .shouldKeep(steeringPolicyRulesDefaultAnswerDataShouldKeep)
                        .value(steeringPolicyRulesDefaultAnswerDataValue)
                        .build())
                    .defaultCount(steeringPolicyRulesDefaultCount)
                    .description(steeringPolicyRulesDescription)
                    .build())
                .ttl(steeringPolicyTtl)
                .build());
    
        }
    }
    
    resources:
      testSteeringPolicy:
        type: oci:Dns:SteeringPolicy
        name: test_steering_policy
        properties:
          compartmentId: ${compartmentId}
          displayName: ${steeringPolicyDisplayName}
          template: ${steeringPolicyTemplate}
          answers:
            - name: ${steeringPolicyAnswersName}
              rdata: ${steeringPolicyAnswersRdata}
              rtype: ${steeringPolicyAnswersRtype}
              isDisabled: ${steeringPolicyAnswersIsDisabled}
              pool: ${steeringPolicyAnswersPool}
          definedTags: ${steeringPolicyDefinedTags}
          freeformTags: ${steeringPolicyFreeformTags}
          healthCheckMonitorId: ${testHttpMonitor.id}
          rules:
            - ruleType: ${steeringPolicyRulesRuleType}
              cases:
                - answerDatas:
                    - answerCondition: ${steeringPolicyRulesCasesAnswerDataAnswerCondition}
                      shouldKeep: ${steeringPolicyRulesCasesAnswerDataShouldKeep}
                      value: ${steeringPolicyRulesCasesAnswerDataValue}
                  caseCondition: ${steeringPolicyRulesCasesCaseCondition}
                  count: ${steeringPolicyRulesCasesCount}
              defaultAnswerDatas:
                - answerCondition: ${steeringPolicyRulesDefaultAnswerDataAnswerCondition}
                  shouldKeep: ${steeringPolicyRulesDefaultAnswerDataShouldKeep}
                  value: ${steeringPolicyRulesDefaultAnswerDataValue}
              defaultCount: ${steeringPolicyRulesDefaultCount}
              description: ${steeringPolicyRulesDescription}
          ttl: ${steeringPolicyTtl}
    

    Create SteeringPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SteeringPolicy(name: string, args: SteeringPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def SteeringPolicy(resource_name: str,
                       args: SteeringPolicyArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SteeringPolicy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       compartment_id: Optional[str] = None,
                       display_name: Optional[str] = None,
                       template: Optional[str] = None,
                       answers: Optional[Sequence[_dns.SteeringPolicyAnswerArgs]] = None,
                       defined_tags: Optional[Mapping[str, str]] = None,
                       freeform_tags: Optional[Mapping[str, str]] = None,
                       health_check_monitor_id: Optional[str] = None,
                       rules: Optional[Sequence[_dns.SteeringPolicyRuleArgs]] = None,
                       ttl: Optional[int] = None)
    func NewSteeringPolicy(ctx *Context, name string, args SteeringPolicyArgs, opts ...ResourceOption) (*SteeringPolicy, error)
    public SteeringPolicy(string name, SteeringPolicyArgs args, CustomResourceOptions? opts = null)
    public SteeringPolicy(String name, SteeringPolicyArgs args)
    public SteeringPolicy(String name, SteeringPolicyArgs args, CustomResourceOptions options)
    
    type: oci:Dns:SteeringPolicy
    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 SteeringPolicyArgs
    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 SteeringPolicyArgs
    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 SteeringPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SteeringPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SteeringPolicyArgs
    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 steeringPolicyResource = new Oci.Dns.SteeringPolicy("steeringPolicyResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        Template = "string",
        Answers = new[]
        {
            new Oci.Dns.Inputs.SteeringPolicyAnswerArgs
            {
                Name = "string",
                Rdata = "string",
                Rtype = "string",
                IsDisabled = false,
                Pool = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        HealthCheckMonitorId = "string",
        Rules = new[]
        {
            new Oci.Dns.Inputs.SteeringPolicyRuleArgs
            {
                RuleType = "string",
                Cases = new[]
                {
                    new Oci.Dns.Inputs.SteeringPolicyRuleCaseArgs
                    {
                        AnswerDatas = new[]
                        {
                            new Oci.Dns.Inputs.SteeringPolicyRuleCaseAnswerDataArgs
                            {
                                AnswerCondition = "string",
                                ShouldKeep = false,
                                Value = 0,
                            },
                        },
                        CaseCondition = "string",
                        Count = 0,
                    },
                },
                DefaultAnswerDatas = new[]
                {
                    new Oci.Dns.Inputs.SteeringPolicyRuleDefaultAnswerDataArgs
                    {
                        AnswerCondition = "string",
                        ShouldKeep = false,
                        Value = 0,
                    },
                },
                DefaultCount = 0,
                Description = "string",
            },
        },
        Ttl = 0,
    });
    
    example, err := Dns.NewSteeringPolicy(ctx, "steeringPolicyResource", &Dns.SteeringPolicyArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	Template:      pulumi.String("string"),
    	Answers: dns.SteeringPolicyAnswerArray{
    		&dns.SteeringPolicyAnswerArgs{
    			Name:       pulumi.String("string"),
    			Rdata:      pulumi.String("string"),
    			Rtype:      pulumi.String("string"),
    			IsDisabled: pulumi.Bool(false),
    			Pool:       pulumi.String("string"),
    		},
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	HealthCheckMonitorId: pulumi.String("string"),
    	Rules: dns.SteeringPolicyRuleArray{
    		&dns.SteeringPolicyRuleArgs{
    			RuleType: pulumi.String("string"),
    			Cases: dns.SteeringPolicyRuleCaseArray{
    				&dns.SteeringPolicyRuleCaseArgs{
    					AnswerDatas: dns.SteeringPolicyRuleCaseAnswerDataArray{
    						&dns.SteeringPolicyRuleCaseAnswerDataArgs{
    							AnswerCondition: pulumi.String("string"),
    							ShouldKeep:      pulumi.Bool(false),
    							Value:           pulumi.Int(0),
    						},
    					},
    					CaseCondition: pulumi.String("string"),
    					Count:         pulumi.Int(0),
    				},
    			},
    			DefaultAnswerDatas: dns.SteeringPolicyRuleDefaultAnswerDataArray{
    				&dns.SteeringPolicyRuleDefaultAnswerDataArgs{
    					AnswerCondition: pulumi.String("string"),
    					ShouldKeep:      pulumi.Bool(false),
    					Value:           pulumi.Int(0),
    				},
    			},
    			DefaultCount: pulumi.Int(0),
    			Description:  pulumi.String("string"),
    		},
    	},
    	Ttl: pulumi.Int(0),
    })
    
    var steeringPolicyResource = new SteeringPolicy("steeringPolicyResource", SteeringPolicyArgs.builder()
        .compartmentId("string")
        .displayName("string")
        .template("string")
        .answers(SteeringPolicyAnswerArgs.builder()
            .name("string")
            .rdata("string")
            .rtype("string")
            .isDisabled(false)
            .pool("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .healthCheckMonitorId("string")
        .rules(SteeringPolicyRuleArgs.builder()
            .ruleType("string")
            .cases(SteeringPolicyRuleCaseArgs.builder()
                .answerDatas(SteeringPolicyRuleCaseAnswerDataArgs.builder()
                    .answerCondition("string")
                    .shouldKeep(false)
                    .value(0)
                    .build())
                .caseCondition("string")
                .count(0)
                .build())
            .defaultAnswerDatas(SteeringPolicyRuleDefaultAnswerDataArgs.builder()
                .answerCondition("string")
                .shouldKeep(false)
                .value(0)
                .build())
            .defaultCount(0)
            .description("string")
            .build())
        .ttl(0)
        .build());
    
    steering_policy_resource = oci.dns.SteeringPolicy("steeringPolicyResource",
        compartment_id="string",
        display_name="string",
        template="string",
        answers=[{
            "name": "string",
            "rdata": "string",
            "rtype": "string",
            "is_disabled": False,
            "pool": "string",
        }],
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        health_check_monitor_id="string",
        rules=[{
            "rule_type": "string",
            "cases": [{
                "answer_datas": [{
                    "answer_condition": "string",
                    "should_keep": False,
                    "value": 0,
                }],
                "case_condition": "string",
                "count": 0,
            }],
            "default_answer_datas": [{
                "answer_condition": "string",
                "should_keep": False,
                "value": 0,
            }],
            "default_count": 0,
            "description": "string",
        }],
        ttl=0)
    
    const steeringPolicyResource = new oci.dns.SteeringPolicy("steeringPolicyResource", {
        compartmentId: "string",
        displayName: "string",
        template: "string",
        answers: [{
            name: "string",
            rdata: "string",
            rtype: "string",
            isDisabled: false,
            pool: "string",
        }],
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        healthCheckMonitorId: "string",
        rules: [{
            ruleType: "string",
            cases: [{
                answerDatas: [{
                    answerCondition: "string",
                    shouldKeep: false,
                    value: 0,
                }],
                caseCondition: "string",
                count: 0,
            }],
            defaultAnswerDatas: [{
                answerCondition: "string",
                shouldKeep: false,
                value: 0,
            }],
            defaultCount: 0,
            description: "string",
        }],
        ttl: 0,
    });
    
    type: oci:Dns:SteeringPolicy
    properties:
        answers:
            - isDisabled: false
              name: string
              pool: string
              rdata: string
              rtype: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        healthCheckMonitorId: string
        rules:
            - cases:
                - answerDatas:
                    - answerCondition: string
                      shouldKeep: false
                      value: 0
                  caseCondition: string
                  count: 0
              defaultAnswerDatas:
                - answerCondition: string
                  shouldKeep: false
                  value: 0
              defaultCount: 0
              description: string
              ruleType: string
        template: string
        ttl: 0
    

    SteeringPolicy 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 SteeringPolicy resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    DisplayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    Template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    Answers List<SteeringPolicyAnswer>
    The set of all answers that can potentially issue from the steering policy.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    HealthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    Rules List<SteeringPolicyRule>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    Ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    CompartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    DisplayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    Template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    Answers []SteeringPolicyAnswerArgs
    The set of all answers that can potentially issue from the steering policy.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    HealthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    Rules []SteeringPolicyRuleArgs

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    Ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    compartmentId String
    (Updatable) The OCID of the compartment containing the steering policy.
    displayName String
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    template String

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    answers List<SteeringPolicyAnswer>
    The set of all answers that can potentially issue from the steering policy.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId String

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules List<SteeringPolicyRule>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    ttl Integer

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    compartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    displayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    answers SteeringPolicyAnswer[]
    The set of all answers that can potentially issue from the steering policy.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules SteeringPolicyRule[]

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    ttl number

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    compartment_id str
    (Updatable) The OCID of the compartment containing the steering policy.
    display_name str
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    template str

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    answers Sequence[dns.SteeringPolicyAnswerArgs]
    The set of all answers that can potentially issue from the steering policy.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    health_check_monitor_id str

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules Sequence[dns.SteeringPolicyRuleArgs]

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    compartmentId String
    (Updatable) The OCID of the compartment containing the steering policy.
    displayName String
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    template String

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    answers List<Property Map>
    The set of all answers that can potentially issue from the steering policy.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId String

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules List<Property Map>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    ttl Number

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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 SteeringPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Self string
    The canonical absolute URL of the resource.
    State string
    The current state of the resource.
    TimeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    Id string
    The provider-assigned unique ID for this managed resource.
    Self string
    The canonical absolute URL of the resource.
    State string
    The current state of the resource.
    TimeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    self String
    The canonical absolute URL of the resource.
    state String
    The current state of the resource.
    timeCreated String
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    id string
    The provider-assigned unique ID for this managed resource.
    self string
    The canonical absolute URL of the resource.
    state string
    The current state of the resource.
    timeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    id str
    The provider-assigned unique ID for this managed resource.
    self str
    The canonical absolute URL of the resource.
    state str
    The current state of the resource.
    time_created str
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    self String
    The canonical absolute URL of the resource.
    state String
    The current state of the resource.
    timeCreated String
    The date and time the resource was created, expressed in RFC 3339 timestamp format.

    Look up Existing SteeringPolicy Resource

    Get an existing SteeringPolicy 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?: SteeringPolicyState, opts?: CustomResourceOptions): SteeringPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            answers: Optional[Sequence[_dns.SteeringPolicyAnswerArgs]] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            health_check_monitor_id: Optional[str] = None,
            rules: Optional[Sequence[_dns.SteeringPolicyRuleArgs]] = None,
            self: Optional[str] = None,
            state: Optional[str] = None,
            template: Optional[str] = None,
            time_created: Optional[str] = None,
            ttl: Optional[int] = None) -> SteeringPolicy
    func GetSteeringPolicy(ctx *Context, name string, id IDInput, state *SteeringPolicyState, opts ...ResourceOption) (*SteeringPolicy, error)
    public static SteeringPolicy Get(string name, Input<string> id, SteeringPolicyState? state, CustomResourceOptions? opts = null)
    public static SteeringPolicy get(String name, Output<String> id, SteeringPolicyState 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.
    The following state arguments are supported:
    Answers List<SteeringPolicyAnswer>
    The set of all answers that can potentially issue from the steering policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    HealthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    Rules List<SteeringPolicyRule>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    Self string
    The canonical absolute URL of the resource.
    State string
    The current state of the resource.
    Template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    TimeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    Ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    Answers []SteeringPolicyAnswerArgs
    The set of all answers that can potentially issue from the steering policy.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    HealthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    Rules []SteeringPolicyRuleArgs

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    Self string
    The canonical absolute URL of the resource.
    State string
    The current state of the resource.
    Template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    TimeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    Ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    answers List<SteeringPolicyAnswer>
    The set of all answers that can potentially issue from the steering policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the steering policy.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId String

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules List<SteeringPolicyRule>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    self String
    The canonical absolute URL of the resource.
    state String
    The current state of the resource.
    template String

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    timeCreated String
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    ttl Integer

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    answers SteeringPolicyAnswer[]
    The set of all answers that can potentially issue from the steering policy.
    compartmentId string
    (Updatable) The OCID of the compartment containing the steering policy.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName string
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId string

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules SteeringPolicyRule[]

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    self string
    The canonical absolute URL of the resource.
    state string
    The current state of the resource.
    template string

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    timeCreated string
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    ttl number

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    answers Sequence[dns.SteeringPolicyAnswerArgs]
    The set of all answers that can potentially issue from the steering policy.
    compartment_id str
    (Updatable) The OCID of the compartment containing the steering policy.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    display_name str
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    health_check_monitor_id str

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules Sequence[dns.SteeringPolicyRuleArgs]

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    self str
    The canonical absolute URL of the resource.
    state str
    The current state of the resource.
    template str

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    time_created str
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    ttl int

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    answers List<Property Map>
    The set of all answers that can potentially issue from the steering policy.
    compartmentId String
    (Updatable) The OCID of the compartment containing the steering policy.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
    healthCheckMonitorId String

    (Updatable) The OCID of the health check monitor providing health data about the answers of the steering policy. A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.

    Note: To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see Managing Health Checks.

    rules List<Property Map>

    The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.

    The first rule receives a shuffled list of all answers, and every other rule receives the list of answers emitted by the one preceding it. The last rule populates the response.

    self String
    The canonical absolute URL of the resource.
    state String
    The current state of the resource.
    template String

    (Updatable) A set of predefined rules based on the desired purpose of the steering policy. Each template utilizes Traffic Management's rules in a different order to produce the desired results when answering DNS queries.

    Example: The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability.

    It is strongly recommended to use a template other than CUSTOM when creating a steering policy.

    All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see Traffic Management API Guide.

    Template Types

    • FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy.
    • LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights.
    • ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see Traffic Management Geographic Locations.
    • ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN.
    • ROUTE_BY_IP - Answers DNS queries based on the query's IP address.
    • CUSTOM - Allows a customized configuration of rules.
    timeCreated String
    The date and time the resource was created, expressed in RFC 3339 timestamp format.
    ttl Number

    (Updatable) The Time To Live (TTL) for responses from the steering policy, in seconds. If not specified during creation, a value of 30 seconds will be used.

    ** 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

    Supporting Types

    SteeringPolicyAnswer, SteeringPolicyAnswerArgs

    Name string
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    Rdata string
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    Rtype string
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    IsDisabled bool
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    Pool string
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.
    Name string
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    Rdata string
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    Rtype string
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    IsDisabled bool
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    Pool string
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.
    name String
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    rdata String
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    rtype String
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    isDisabled Boolean
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    pool String
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.
    name string
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    rdata string
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    rtype string
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    isDisabled boolean
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    pool string
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.
    name str
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    rdata str
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    rtype str
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    is_disabled bool
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    pool str
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.
    name String
    A user-friendly name for the answer, unique within the steering policy. An answer's name property can be referenced in answerCondition properties of rules using answer.name.
    rdata String
    The record's data, as whitespace-delimited tokens in type-specific presentation format. All RDATA is normalized and the returned presentation of your RDATA may differ from its initial input. For more information about RDATA, see Supported DNS Resource Record Types.
    rtype String
    The type of DNS record, such as A or CNAME. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.
    isDisabled Boolean
    Set this property to true to indicate that the answer is administratively disabled, such as when the corresponding server is down for maintenance. An answer's isDisabled property can be referenced in answerCondition properties in rules using answer.isDisabled.
    pool String
    The freeform name of a group of one or more records in which this record is included, such as "LAX data center". An answer's pool property can be referenced in answerCondition properties of rules using answer.pool.

    SteeringPolicyRule, SteeringPolicyRuleArgs

    RuleType string
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    Cases List<SteeringPolicyRuleCase>
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    DefaultAnswerDatas List<SteeringPolicyRuleDefaultAnswerData>
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    DefaultCount int
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    Description string
    A user-defined description of the rule's purpose or behavior.
    RuleType string
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    Cases []SteeringPolicyRuleCase
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    DefaultAnswerDatas []SteeringPolicyRuleDefaultAnswerData
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    DefaultCount int
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    Description string
    A user-defined description of the rule's purpose or behavior.
    ruleType String
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    cases List<SteeringPolicyRuleCase>
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    defaultAnswerDatas List<SteeringPolicyRuleDefaultAnswerData>
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    defaultCount Integer
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    description String
    A user-defined description of the rule's purpose or behavior.
    ruleType string
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    cases SteeringPolicyRuleCase[]
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    defaultAnswerDatas SteeringPolicyRuleDefaultAnswerData[]
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    defaultCount number
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    description string
    A user-defined description of the rule's purpose or behavior.
    rule_type str
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    cases Sequence[dns.SteeringPolicyRuleCase]
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    default_answer_datas Sequence[dns.SteeringPolicyRuleDefaultAnswerData]
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    default_count int
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    description str
    A user-defined description of the rule's purpose or behavior.
    ruleType String
    The type of a rule determines its sorting/filtering behavior.

    • FILTER - Filters the list of answers based on their defined boolean data. Answers remain only if their shouldKeep value is true.
    • HEALTH - Removes answers from the list if their rdata matches a target in the health check monitor referenced by the steering policy and the target is reported down.
    • WEIGHTED - Uses a number between 0 and 255 to determine how often an answer will be served in relation to other answers. Anwers with a higher weight will be served more frequently.
    • PRIORITY - Uses a defined rank value of answers to determine which answer to serve, moving those with the lowest values to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    • LIMIT - Filters answers that are too far down the list. Parameter defaultCount specifies how many answers to keep. Example: If defaultCount has a value of 2 and there are five answers left, when the LIMIT rule is processed, only the first two answers will remain in the list.
    cases List<Property Map>
    An array of caseConditions. A rule may optionally include a sequence of cases defining alternate configurations for how it should behave during processing for any given DNS query. When a rule has no sequence of cases, it is always evaluated with the same configuration during processing. When a rule has an empty sequence of cases, it is always ignored during processing. When a rule has a non-empty sequence of cases, its behavior during processing is configured by the first matching case in the sequence. When a rule has no matching cases the rule is ignored. A rule case with no caseCondition always matches. A rule case with a caseCondition matches only when that expression evaluates to true for the given query.
    defaultAnswerDatas List<Property Map>
    Defines a default set of answer conditions and values that are applied to an answer when cases is not defined for the rule, or a matching case does not have any matching answerConditions in its answerData. defaultAnswerData is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed.
    defaultCount Number
    Defines a default count if cases is not defined for the rule or a matching case does not define count. defaultCount is not applied if cases is defined and there are no matching cases. In this scenario, the next rule will be processed. If no rules remain to be processed, the answer will be chosen from the remaining list of answers.
    description String
    A user-defined description of the rule's purpose or behavior.

    SteeringPolicyRuleCase, SteeringPolicyRuleCaseArgs

    AnswerDatas List<SteeringPolicyRuleCaseAnswerData>
    An array of SteeringPolicyPriorityAnswerData objects.
    CaseCondition string
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    Count int
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
    AnswerDatas []SteeringPolicyRuleCaseAnswerData
    An array of SteeringPolicyPriorityAnswerData objects.
    CaseCondition string
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    Count int
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
    answerDatas List<SteeringPolicyRuleCaseAnswerData>
    An array of SteeringPolicyPriorityAnswerData objects.
    caseCondition String
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    count Integer
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
    answerDatas SteeringPolicyRuleCaseAnswerData[]
    An array of SteeringPolicyPriorityAnswerData objects.
    caseCondition string
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    count number
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
    answer_datas Sequence[dns.SteeringPolicyRuleCaseAnswerData]
    An array of SteeringPolicyPriorityAnswerData objects.
    case_condition str
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    count int
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.
    answerDatas List<Property Map>
    An array of SteeringPolicyPriorityAnswerData objects.
    caseCondition String
    An expression that uses conditions at the time of a DNS query to indicate whether a case matches. Conditions may include the geographical location, IP subnet, or ASN the DNS query originated. Example: If you have an office that uses the subnet 192.0.2.0/24 you could use a caseCondition expression query.client.address in ('192.0.2.0/24') to define a case that matches queries from that office.
    count Number
    The number of answers allowed to remain after the limit rule has been processed, keeping only the first of the remaining answers in the list. Example: If the count property is set to 2 and four answers remain before the limit rule is processed, only the first two answers in the list will remain after the limit rule has been processed.

    SteeringPolicyRuleCaseAnswerData, SteeringPolicyRuleCaseAnswerDataArgs

    AnswerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    ShouldKeep bool
    Keeps the answer only if the value is true.
    Value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    AnswerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    ShouldKeep bool
    Keeps the answer only if the value is true.
    Value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition String
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep Boolean
    Keeps the answer only if the value is true.
    value Integer
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep boolean
    Keeps the answer only if the value is true.
    value number
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answer_condition str
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    should_keep bool
    Keeps the answer only if the value is true.
    value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition String
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep Boolean
    Keeps the answer only if the value is true.
    value Number
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.

    SteeringPolicyRuleDefaultAnswerData, SteeringPolicyRuleDefaultAnswerDataArgs

    AnswerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    ShouldKeep bool
    Keeps the answer only if the value is true.
    Value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    AnswerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    ShouldKeep bool
    Keeps the answer only if the value is true.
    Value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition String
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep Boolean
    Keeps the answer only if the value is true.
    value Integer
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition string
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep boolean
    Keeps the answer only if the value is true.
    value number
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answer_condition str
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    should_keep bool
    Keeps the answer only if the value is true.
    value int
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.
    answerCondition String
    An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
    shouldKeep Boolean
    Keeps the answer only if the value is true.
    value Number
    The rank assigned to the set of answers that match the expression in answerCondition. Answers with the lowest values move to the beginning of the list without changing the relative order of those with the same value. Answers can be given a value between 0 and 255.

    Import

    SteeringPolicies can be imported using the id, e.g.

    $ pulumi import oci:Dns/steeringPolicy:SteeringPolicy test_steering_policy "id"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi