SteeringPolicyAnswer

class oci.dns.models.SteeringPolicyAnswer(**kwargs)

Bases: object

DNS record data with metadata for processing in a steering policy.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

__init__(**kwargs)

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

Parameters:
  • name (str) -- The value to assign to the name property of this SteeringPolicyAnswer.
  • rtype (str) -- The value to assign to the rtype property of this SteeringPolicyAnswer.
  • rdata (str) -- The value to assign to the rdata property of this SteeringPolicyAnswer.
  • pool (str) -- The value to assign to the pool property of this SteeringPolicyAnswer.
  • is_disabled (bool) -- The value to assign to the is_disabled property of this SteeringPolicyAnswer.
is_disabled

Gets the is_disabled of this SteeringPolicyAnswer. 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.

Example:
"rules": [
{

"ruleType": "FILTER", "defaultAnswerData": [

{
"answerCondition": "answer.isDisabled != true", "shouldKeep": true

}

]

},

Returns:The is_disabled of this SteeringPolicyAnswer.
Return type:bool
name

[Required] Gets the name of this SteeringPolicyAnswer. 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.

Example:

"rules": [
{

"ruleType": "FILTER", "defaultAnswerData": [

{
"answerCondition": "answer.name == 'server 1'", "shouldKeep": true

}

]

}

]

Returns:The name of this SteeringPolicyAnswer.
Return type:str
pool

Gets the pool of this SteeringPolicyAnswer. 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.

Example:

"rules": [
{

"ruleType": "FILTER", "defaultAnswerData": [

{
"answerCondition": "answer.pool == 'US East Servers'", "shouldKeep": true

}

]

}

]

Returns:The pool of this SteeringPolicyAnswer.
Return type:str
rdata

[Required] Gets the rdata of this SteeringPolicyAnswer. 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.

Returns:The rdata of this SteeringPolicyAnswer.
Return type:str
rtype

[Required] Gets the rtype of this SteeringPolicyAnswer. The canonical name for the record's type. Only A, AAAA, and CNAME are supported. For more information, see Supported DNS Resource Record Types.

Returns:The rtype of this SteeringPolicyAnswer.
Return type:str