oci.Dns.SteeringPolicy
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSteeringPolicy = new Oci.Dns.SteeringPolicy("testSteeringPolicy", new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Steering_policy_display_name,
Template = @var.Steering_policy_template,
Answers = new[]
{
new Oci.Dns.Inputs.SteeringPolicyAnswerArgs
{
Name = @var.Steering_policy_answers_name,
Rdata = @var.Steering_policy_answers_rdata,
Rtype = @var.Steering_policy_answers_rtype,
IsDisabled = @var.Steering_policy_answers_is_disabled,
Pool = @var.Steering_policy_answers_pool,
},
},
DefinedTags = @var.Steering_policy_defined_tags,
FreeformTags = @var.Steering_policy_freeform_tags,
HealthCheckMonitorId = oci_health_checks_http_monitor.Test_http_monitor.Id,
Rules = new[]
{
new Oci.Dns.Inputs.SteeringPolicyRuleArgs
{
RuleType = @var.Steering_policy_rules_rule_type,
Cases = new[]
{
new Oci.Dns.Inputs.SteeringPolicyRuleCaseArgs
{
AnswerDatas = new[]
{
new Oci.Dns.Inputs.SteeringPolicyRuleCaseAnswerDataArgs
{
AnswerCondition = @var.Steering_policy_rules_cases_answer_data_answer_condition,
ShouldKeep = @var.Steering_policy_rules_cases_answer_data_should_keep,
Value = @var.Steering_policy_rules_cases_answer_data_value,
},
},
CaseCondition = @var.Steering_policy_rules_cases_case_condition,
Count = @var.Steering_policy_rules_cases_count,
},
},
DefaultAnswerDatas = new[]
{
new Oci.Dns.Inputs.SteeringPolicyRuleDefaultAnswerDataArgs
{
AnswerCondition = @var.Steering_policy_rules_default_answer_data_answer_condition,
ShouldKeep = @var.Steering_policy_rules_default_answer_data_should_keep,
Value = @var.Steering_policy_rules_default_answer_data_value,
},
},
DefaultCount = @var.Steering_policy_rules_default_count,
Description = @var.Steering_policy_rules_description,
},
},
Ttl = @var.Steering_policy_ttl,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dns.NewSteeringPolicy(ctx, "testSteeringPolicy", &Dns.SteeringPolicyArgs{
CompartmentId: pulumi.Any(_var.Compartment_id),
DisplayName: pulumi.Any(_var.Steering_policy_display_name),
Template: pulumi.Any(_var.Steering_policy_template),
Answers: dns.SteeringPolicyAnswerArray{
&dns.SteeringPolicyAnswerArgs{
Name: pulumi.Any(_var.Steering_policy_answers_name),
Rdata: pulumi.Any(_var.Steering_policy_answers_rdata),
Rtype: pulumi.Any(_var.Steering_policy_answers_rtype),
IsDisabled: pulumi.Any(_var.Steering_policy_answers_is_disabled),
Pool: pulumi.Any(_var.Steering_policy_answers_pool),
},
},
DefinedTags: pulumi.Any(_var.Steering_policy_defined_tags),
FreeformTags: pulumi.Any(_var.Steering_policy_freeform_tags),
HealthCheckMonitorId: pulumi.Any(oci_health_checks_http_monitor.Test_http_monitor.Id),
Rules: dns.SteeringPolicyRuleArray{
&dns.SteeringPolicyRuleArgs{
RuleType: pulumi.Any(_var.Steering_policy_rules_rule_type),
Cases: dns.SteeringPolicyRuleCaseArray{
&dns.SteeringPolicyRuleCaseArgs{
AnswerDatas: dns.SteeringPolicyRuleCaseAnswerDataArray{
&dns.SteeringPolicyRuleCaseAnswerDataArgs{
AnswerCondition: pulumi.Any(_var.Steering_policy_rules_cases_answer_data_answer_condition),
ShouldKeep: pulumi.Any(_var.Steering_policy_rules_cases_answer_data_should_keep),
Value: pulumi.Any(_var.Steering_policy_rules_cases_answer_data_value),
},
},
CaseCondition: pulumi.Any(_var.Steering_policy_rules_cases_case_condition),
Count: pulumi.Any(_var.Steering_policy_rules_cases_count),
},
},
DefaultAnswerDatas: dns.SteeringPolicyRuleDefaultAnswerDataArray{
&dns.SteeringPolicyRuleDefaultAnswerDataArgs{
AnswerCondition: pulumi.Any(_var.Steering_policy_rules_default_answer_data_answer_condition),
ShouldKeep: pulumi.Any(_var.Steering_policy_rules_default_answer_data_should_keep),
Value: pulumi.Any(_var.Steering_policy_rules_default_answer_data_value),
},
},
DefaultCount: pulumi.Any(_var.Steering_policy_rules_default_count),
Description: pulumi.Any(_var.Steering_policy_rules_description),
},
},
Ttl: pulumi.Any(_var.Steering_policy_ttl),
})
if err != nil {
return err
}
return nil
})
}
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(var_.compartment_id())
.displayName(var_.steering_policy_display_name())
.template(var_.steering_policy_template())
.answers(SteeringPolicyAnswerArgs.builder()
.name(var_.steering_policy_answers_name())
.rdata(var_.steering_policy_answers_rdata())
.rtype(var_.steering_policy_answers_rtype())
.isDisabled(var_.steering_policy_answers_is_disabled())
.pool(var_.steering_policy_answers_pool())
.build())
.definedTags(var_.steering_policy_defined_tags())
.freeformTags(var_.steering_policy_freeform_tags())
.healthCheckMonitorId(oci_health_checks_http_monitor.test_http_monitor().id())
.rules(SteeringPolicyRuleArgs.builder()
.ruleType(var_.steering_policy_rules_rule_type())
.cases(SteeringPolicyRuleCaseArgs.builder()
.answerDatas(SteeringPolicyRuleCaseAnswerDataArgs.builder()
.answerCondition(var_.steering_policy_rules_cases_answer_data_answer_condition())
.shouldKeep(var_.steering_policy_rules_cases_answer_data_should_keep())
.value(var_.steering_policy_rules_cases_answer_data_value())
.build())
.caseCondition(var_.steering_policy_rules_cases_case_condition())
.count(var_.steering_policy_rules_cases_count())
.build())
.defaultAnswerDatas(SteeringPolicyRuleDefaultAnswerDataArgs.builder()
.answerCondition(var_.steering_policy_rules_default_answer_data_answer_condition())
.shouldKeep(var_.steering_policy_rules_default_answer_data_should_keep())
.value(var_.steering_policy_rules_default_answer_data_value())
.build())
.defaultCount(var_.steering_policy_rules_default_count())
.description(var_.steering_policy_rules_description())
.build())
.ttl(var_.steering_policy_ttl())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_steering_policy = oci.dns.SteeringPolicy("testSteeringPolicy",
compartment_id=var["compartment_id"],
display_name=var["steering_policy_display_name"],
template=var["steering_policy_template"],
answers=[oci.dns.SteeringPolicyAnswerArgs(
name=var["steering_policy_answers_name"],
rdata=var["steering_policy_answers_rdata"],
rtype=var["steering_policy_answers_rtype"],
is_disabled=var["steering_policy_answers_is_disabled"],
pool=var["steering_policy_answers_pool"],
)],
defined_tags=var["steering_policy_defined_tags"],
freeform_tags=var["steering_policy_freeform_tags"],
health_check_monitor_id=oci_health_checks_http_monitor["test_http_monitor"]["id"],
rules=[oci.dns.SteeringPolicyRuleArgs(
rule_type=var["steering_policy_rules_rule_type"],
cases=[oci.dns.SteeringPolicyRuleCaseArgs(
answer_datas=[oci.dns.SteeringPolicyRuleCaseAnswerDataArgs(
answer_condition=var["steering_policy_rules_cases_answer_data_answer_condition"],
should_keep=var["steering_policy_rules_cases_answer_data_should_keep"],
value=var["steering_policy_rules_cases_answer_data_value"],
)],
case_condition=var["steering_policy_rules_cases_case_condition"],
count=var["steering_policy_rules_cases_count"],
)],
default_answer_datas=[oci.dns.SteeringPolicyRuleDefaultAnswerDataArgs(
answer_condition=var["steering_policy_rules_default_answer_data_answer_condition"],
should_keep=var["steering_policy_rules_default_answer_data_should_keep"],
value=var["steering_policy_rules_default_answer_data_value"],
)],
default_count=var["steering_policy_rules_default_count"],
description=var["steering_policy_rules_description"],
)],
ttl=var["steering_policy_ttl"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSteeringPolicy = new oci.dns.SteeringPolicy("testSteeringPolicy", {
compartmentId: _var.compartment_id,
displayName: _var.steering_policy_display_name,
template: _var.steering_policy_template,
answers: [{
name: _var.steering_policy_answers_name,
rdata: _var.steering_policy_answers_rdata,
rtype: _var.steering_policy_answers_rtype,
isDisabled: _var.steering_policy_answers_is_disabled,
pool: _var.steering_policy_answers_pool,
}],
definedTags: _var.steering_policy_defined_tags,
freeformTags: _var.steering_policy_freeform_tags,
healthCheckMonitorId: oci_health_checks_http_monitor.test_http_monitor.id,
rules: [{
ruleType: _var.steering_policy_rules_rule_type,
cases: [{
answerDatas: [{
answerCondition: _var.steering_policy_rules_cases_answer_data_answer_condition,
shouldKeep: _var.steering_policy_rules_cases_answer_data_should_keep,
value: _var.steering_policy_rules_cases_answer_data_value,
}],
caseCondition: _var.steering_policy_rules_cases_case_condition,
count: _var.steering_policy_rules_cases_count,
}],
defaultAnswerDatas: [{
answerCondition: _var.steering_policy_rules_default_answer_data_answer_condition,
shouldKeep: _var.steering_policy_rules_default_answer_data_should_keep,
value: _var.steering_policy_rules_default_answer_data_value,
}],
defaultCount: _var.steering_policy_rules_default_count,
description: _var.steering_policy_rules_description,
}],
ttl: _var.steering_policy_ttl,
});
resources:
testSteeringPolicy:
type: oci:Dns:SteeringPolicy
properties:
#Required
compartmentId: ${var.compartment_id}
displayName: ${var.steering_policy_display_name}
template: ${var.steering_policy_template}
#Optional
answers:
- name: ${var.steering_policy_answers_name}
rdata: ${var.steering_policy_answers_rdata}
rtype: ${var.steering_policy_answers_rtype}
isDisabled: ${var.steering_policy_answers_is_disabled}
pool: ${var.steering_policy_answers_pool}
definedTags: ${var.steering_policy_defined_tags}
freeformTags: ${var.steering_policy_freeform_tags}
healthCheckMonitorId: ${oci_health_checks_http_monitor.test_http_monitor.id}
rules:
- ruleType: ${var.steering_policy_rules_rule_type}
cases:
- answerDatas:
- answerCondition: ${var.steering_policy_rules_cases_answer_data_answer_condition}
shouldKeep: ${var.steering_policy_rules_cases_answer_data_should_keep}
value: ${var.steering_policy_rules_cases_answer_data_value}
caseCondition: ${var.steering_policy_rules_cases_case_condition}
count: ${var.steering_policy_rules_cases_count}
defaultAnswerDatas:
- answerCondition: ${var.steering_policy_rules_default_answer_data_answer_condition}
shouldKeep: ${var.steering_policy_rules_default_answer_data_should_keep}
value: ${var.steering_policy_rules_default_answer_data_value}
defaultCount: ${var.steering_policy_rules_default_count}
description: ${var.steering_policy_rules_description}
ttl: ${var.steering_policy_ttl}
Create SteeringPolicy Resource
new SteeringPolicy(name: string, args: SteeringPolicyArgs, opts?: CustomResourceOptions);
@overload
def SteeringPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
answers: Optional[Sequence[_dns.SteeringPolicyAnswerArgs]] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
health_check_monitor_id: Optional[str] = None,
rules: Optional[Sequence[_dns.SteeringPolicyRuleArgs]] = None,
template: Optional[str] = None,
ttl: Optional[int] = None)
@overload
def SteeringPolicy(resource_name: str,
args: SteeringPolicyArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The SteeringPolicy resource accepts the following input properties:
- Compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- Display
Name 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.
- Answers
List<Steering
Policy Answer Args> The set of all answers that can potentially issue from the steering policy.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, object>
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- Rules
List<Steering
Policy Rule Args> The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- Compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- Display
Name 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.
- Answers
[]Steering
Policy Answer Args The set of all answers that can potentially issue from the steering policy.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]interface{}
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- Rules
[]Steering
Policy Rule Args The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- compartment
Id String (Updatable) The OCID of the compartment containing the steering policy.
- display
Name 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.
- answers
List<Steering
Policy Answer Args> The set of all answers that can potentially issue from the steering policy.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,Object>
(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 StringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
List<Steering
Policy Rule Args> The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- display
Name 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.
- answers
Steering
Policy Answer Args[] The set of all answers that can potentially issue from the steering policy.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: any}
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
Steering
Policy Rule Args[] The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- 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.
- answers
Steering
Policy Answer Args] The set of all answers that can potentially issue from the steering policy.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, Any]
(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_ strmonitor_ id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
Steering
Policy Rule Args] The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- compartment
Id String (Updatable) The OCID of the compartment containing the steering policy.
- display
Name 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.
- answers List<Property Map>
The set of all answers that can potentially issue from the steering policy.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<Any>
(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 StringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- 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.
- 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.
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.
- Time
Created 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.
- Time
Created 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.
- time
Created 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.
- time
Created 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.
- time
Created 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, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = 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.
- Answers
List<Steering
Policy Answer Args> The set of all answers that can potentially issue from the steering policy.
- Compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
- Dictionary<string, object>
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- Rules
List<Steering
Policy Rule Args> The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- Time
Created 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.
- Answers
[]Steering
Policy Answer Args The set of all answers that can potentially issue from the steering policy.
- Compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
- map[string]interface{}
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- Rules
[]Steering
Policy Rule Args The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- Time
Created 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.
- answers
List<Steering
Policy Answer Args> The set of all answers that can potentially issue from the steering policy.
- compartment
Id String (Updatable) The OCID of the compartment containing the steering policy.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
- Map<String,Object>
(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 StringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
List<Steering
Policy Rule Args> The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- time
Created 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.
- answers
Steering
Policy Answer Args[] The set of all answers that can potentially issue from the steering policy.
- compartment
Id string (Updatable) The OCID of the compartment containing the steering policy.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
- {[key: string]: any}
(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 stringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
Steering
Policy Rule Args[] The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- time
Created 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.
- answers
Steering
Policy Answer Args] 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.
- Mapping[str, Any]
(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.
- Mapping[str, Any]
(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_ strmonitor_ id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- rules
Steering
Policy Rule Args] The series of rules that will be processed in sequence to reduce the pool of answers to a response for any given request.
- 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.
- 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.
- answers List<Property Map>
The set of all answers that can potentially issue from the steering policy.
- compartment
Id String (Updatable) The OCID of the compartment containing the steering policy.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String (Updatable) A user-friendly name for the steering policy. Does not have to be unique and can be changed. Avoid entering confidential information.
- Map<Any>
(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 StringMonitor Id (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 withrdata
not matching any monitored endpoint will be assumed healthy.- 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.
- 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.
- time
Created 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.
Supporting Types
SteeringPolicyAnswer
- Name string
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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.
- 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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
- Name string
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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.
- 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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
- name String
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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.
- is
Disabled 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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
- name string
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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.
- is
Disabled 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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
- name str
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
- name String
A user-friendly name for the answer, unique within the steering policy. An answer's
name
property can be referenced inanswerCondition
properties of rules usinganswer.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.
- is
Disabled 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'sisDisabled
property can be referenced inanswerCondition
properties in rules usinganswer.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 inanswerCondition
properties of rules usinganswer.pool
.
SteeringPolicyRule
- Rule
Type string The type of a rule determines its sorting/filtering behavior.
- Cases
List<Steering
Policy Rule Case> 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- Default
Answer List<SteeringDatas Policy Rule Default Answer Data> 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
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 definecount
.defaultCount
is not applied ifcases
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 string The type of a rule determines its sorting/filtering behavior.
- Cases
[]Steering
Policy Rule Case 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- Default
Answer []SteeringDatas Policy Rule Default Answer Data 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
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 definecount
.defaultCount
is not applied ifcases
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 String The type of a rule determines its sorting/filtering behavior.
- cases
List<Steering
Policy Rule Case> 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- default
Answer List<SteeringDatas Policy Rule Default Answer Data> 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
is defined and there are no matching cases. In this scenario, the next rule will be processed.- default
Count Integer Defines a default count if
cases
is not defined for the rule or a matching case does not definecount
.defaultCount
is not applied ifcases
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 string The type of a rule determines its sorting/filtering behavior.
- cases
Steering
Policy Rule Case[] 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- default
Answer SteeringDatas Policy Rule Default Answer Data[] 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
is defined and there are no matching cases. In this scenario, the next rule will be processed.- default
Count number Defines a default count if
cases
is not defined for the rule or a matching case does not definecount
.defaultCount
is not applied ifcases
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.
- cases
Steering
Policy Rule Case] 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- default_
answer_ Steeringdatas Policy Rule Default Answer Data] 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
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 definecount
.defaultCount
is not applied ifcases
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.
- rule
Type String The type of a rule determines its sorting/filtering behavior.
- 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 ofcases
, it is always evaluated with the same configuration during processing. When a rule has an empty sequence ofcases
, it is always ignored during processing. When a rule has a non-empty sequence ofcases
, its behavior during processing is configured by the first matchingcase
in the sequence. When a rule has no matching cases the rule is ignored. A rule case with nocaseCondition
always matches. A rule case with acaseCondition
matches only when that expression evaluates to true for the given query.- default
Answer List<Property Map>Datas 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 matchinganswerCondition
s in itsanswerData
.defaultAnswerData
is not applied ifcases
is defined and there are no matching cases. In this scenario, the next rule will be processed.- default
Count Number Defines a default count if
cases
is not defined for the rule or a matching case does not definecount
.defaultCount
is not applied ifcases
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
- Answer
Datas List<SteeringPolicy Rule Case Answer Data> An array of
SteeringPolicyPriorityAnswerData
objects.- Case
Condition 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 acaseCondition
expressionquery.client.subnet 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 to2
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 []SteeringPolicy Rule Case Answer Data An array of
SteeringPolicyPriorityAnswerData
objects.- Case
Condition 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 acaseCondition
expressionquery.client.subnet 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 to2
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 List<SteeringPolicy Rule Case Answer Data> An array of
SteeringPolicyPriorityAnswerData
objects.- case
Condition 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 acaseCondition
expressionquery.client.subnet 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 to2
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 SteeringPolicy Rule Case Answer Data[] An array of
SteeringPolicyPriorityAnswerData
objects.- case
Condition 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 acaseCondition
expressionquery.client.subnet 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 to2
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 SteeringPolicy Rule Case Answer Data] 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 acaseCondition
expressionquery.client.subnet 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 to2
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 List<Property Map> An array of
SteeringPolicyPriorityAnswerData
objects.- case
Condition 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 acaseCondition
expressionquery.client.subnet 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 to2
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
- Answer
Condition string 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 between0
and255
.
- Answer
Condition string 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 between0
and255
.
- answer
Condition String An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
- answer
Condition string An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
- 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 between0
and255
.
- answer
Condition String An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
SteeringPolicyRuleDefaultAnswerData
- Answer
Condition string 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 between0
and255
.
- Answer
Condition string 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 between0
and255
.
- answer
Condition String An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
- answer
Condition string An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
- 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 between0
and255
.
- answer
Condition String An expression that is used to select a set of answers that match a condition. For example, answers with matching pool properties.
- should
Keep 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 between0
and255
.
Import
SteeringPolicies can be imported using the id
, e.g.
$ pulumi import oci:Dns/steeringPolicy:SteeringPolicy test_steering_policy "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.