ResolverRuleDetails¶
- class oci.dns.models.ResolverRuleDetails(**kwargs)¶
Bases:
objectA rule for a resolver. Specifying both qnameCoverConditions and clientAddressConditions is not allowed.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes:
A constant which can be used with the action property of a ResolverRuleDetails.
[Required] Gets the action of this ResolverRuleDetails.
Gets the client_address_conditions of this ResolverRuleDetails.
Gets the qname_cover_conditions of this ResolverRuleDetails.
Methods:
__init__(**kwargs)Initializes a new ResolverRuleDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- ACTION_FORWARD = 'FORWARD'¶
A constant which can be used with the action property of a ResolverRuleDetails. This constant has a value of “FORWARD”
- __init__(**kwargs)¶
Initializes a new ResolverRuleDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
client_address_conditions (list[str]) – The value to assign to the client_address_conditions property of this ResolverRuleDetails.
qname_cover_conditions (list[str]) – The value to assign to the qname_cover_conditions property of this ResolverRuleDetails.
action (str) – The value to assign to the action property of this ResolverRuleDetails. Allowed values for this property are: “FORWARD”
- property action¶
[Required] Gets the action of this ResolverRuleDetails. The action determines the behavior of the rule. If a query matches a supplied condition, the action will apply. If there are no conditions on the rule, all queries are subject to the specified action. * FORWARD - Matching requests will be forwarded from the source interface to the destination address.
Allowed values for this property are: “FORWARD”
- Returns
The action of this ResolverRuleDetails.
- Return type
str
- property client_address_conditions¶
Gets the client_address_conditions of this ResolverRuleDetails. A list of CIDR blocks. In order for the rule action to apply, the query must come from a client within one of the CIDR blocks.
- Returns
The client_address_conditions of this ResolverRuleDetails.
- Return type
list[str]
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property qname_cover_conditions¶
Gets the qname_cover_conditions of this ResolverRuleDetails. A list of domain names. In order for the rule action to apply, the query must either match or be a subdomain of one of the listed domains.
- Returns
The qname_cover_conditions of this ResolverRuleDetails.
- Return type
list[str]