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:
[Required] Gets the drg_nat_policy_id of this DrgNatRule.
[Required] Gets the drg_nat_rule_priority of this DrgNatRule.
[Required] Gets the id of this DrgNatRule.
Gets the original_destination of this DrgNatRule.
Gets the original_source of this DrgNatRule.
Gets the translated_destination of this DrgNatRule.
Gets 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.
- property 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
- property 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
- property 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
- property 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
- property 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
- property 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
- property 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