DrgNatRule¶
-
class
oci.core.models.DrgNatRule(**kwargs)¶ Bases:
objectA DRG NAT rule specifies the mapping between an original source/destination IP and a translated source/destination IP. The source needs to be described in the context of packet entering the DRG.
Methods
__init__(**kwargs)Initializes a new DrgNatRule object with values from keyword arguments. Attributes
drg_nat_policy_id[Required] Gets the drg_nat_policy_id of this DrgNatRule. drg_nat_rule_priority[Required] Gets the drg_nat_rule_priority of this DrgNatRule. id[Required] Gets the id of this DrgNatRule. original_destinationGets the original_destination of this DrgNatRule. original_sourceGets the original_source of this DrgNatRule. translated_destinationGets the translated_destination of this DrgNatRule. translated_sourceGets the translated_source of this DrgNatRule. -
__init__(**kwargs)¶ Initializes a new DrgNatRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this DrgNatRule.
- drg_nat_policy_id (str) – The value to assign to the drg_nat_policy_id property of this DrgNatRule.
- drg_nat_rule_priority (int) – The value to assign to the drg_nat_rule_priority property of this DrgNatRule.
- original_source (str) – The value to assign to the original_source property of this DrgNatRule.
- translated_source (str) – The value to assign to the translated_source property of this DrgNatRule.
- original_destination (str) – The value to assign to the original_destination property of this DrgNatRule.
- translated_destination (str) – The value to assign to the translated_destination property of this DrgNatRule.
-
drg_nat_policy_id¶ [Required] Gets the drg_nat_policy_id of this DrgNatRule. The DRG NAT policy’s Oracle ID (OCID).
Returns: The drg_nat_policy_id of this DrgNatRule. Return type: str
-
drg_nat_rule_priority¶ [Required] Gets the drg_nat_rule_priority of this DrgNatRule. The priority associated with each DRG NAT rule.
Returns: The drg_nat_rule_priority of this DrgNatRule. Return type: int
-
id¶ [Required] Gets the id of this DrgNatRule. The Oracle-assigned ID of the DRG NAT rule.
Returns: The id of this DrgNatRule. Return type: str
-
original_destination¶ Gets the original_destination of this DrgNatRule. Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Destination NAT.
- Potential values:
- An IPv4 address range in CIDR notation. For example: 192.168.1.0/24.
Returns: The original_destination of this DrgNatRule. Return type: str
-
original_source¶ Gets the original_source of this DrgNatRule. Represents the range of IP addresses to match against when routing traffic. Original CIDR range for Source NAT.
- Potential values:
- An IPv4 address range in CIDR notation. For example: 192.168.1.0/24.
Returns: The original_source of this DrgNatRule. Return type: str
-
translated_destination¶ Gets the translated_destination of this DrgNatRule. Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Destination NAT.
- Potential values:
- An IPv4 address range in CIDR notation. For example: 192.168.1.0/24.
Returns: The translated_destination of this DrgNatRule. Return type: str
-
translated_source¶ Gets the translated_source of this DrgNatRule. Represents the range of IP addresses to match against when routing traffic. Translated CIDR range for Source NAT.
- Potential values:
- An IPv4 address range in CIDR notation. For example: 192.168.1.0/24.
Returns: The translated_source of this DrgNatRule. Return type: str
-