AddressList

class oci.network_firewall.models.AddressList(**kwargs)

Bases: object

List of addresses with a reference name. The value of an entry is a list of IP addresses or prefixes in CIDR notation or FQDNs. The associated key is the identifier by which the IP address list is referenced.

Attributes:

TYPE_FQDN

A constant which can be used with the type property of a AddressList.

TYPE_IP

A constant which can be used with the type property of a AddressList.

addresses

[Required] Gets the addresses of this AddressList.

description

Gets the description of this AddressList.

name

[Required] Gets the name of this AddressList.

parent_resource_id

[Required] Gets the parent_resource_id of this AddressList.

total_addresses

[Required] Gets the total_addresses of this AddressList.

type

[Required] Gets the type of this AddressList.

Methods:

__init__(**kwargs)

Initializes a new AddressList object with values from keyword arguments.

TYPE_FQDN = 'FQDN'

A constant which can be used with the type property of a AddressList. This constant has a value of “FQDN”

TYPE_IP = 'IP'

A constant which can be used with the type property of a AddressList. This constant has a value of “IP”

__init__(**kwargs)

Initializes a new AddressList 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 AddressList.

  • type (str) – The value to assign to the type property of this AddressList. Allowed values for this property are: “FQDN”, “IP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • addresses (list[str]) – The value to assign to the addresses property of this AddressList.

  • total_addresses (int) – The value to assign to the total_addresses property of this AddressList.

  • parent_resource_id (str) – The value to assign to the parent_resource_id property of this AddressList.

  • description (str) – The value to assign to the description property of this AddressList.

property addresses

[Required] Gets the addresses of this AddressList. List of addresses.

Returns

The addresses of this AddressList.

Return type

list[str]

property description

Gets the description of this AddressList. The description of the address list. This field can be used to add additional info.

Returns

The description of this AddressList.

Return type

str

property name

[Required] Gets the name of this AddressList. Unique name to identify the group of addresses to be used in the policy rules.

Returns

The name of this AddressList.

Return type

str

property parent_resource_id

[Required] Gets the parent_resource_id of this AddressList. OCID of the Network Firewall Policy this Address List belongs to.

Returns

The parent_resource_id of this AddressList.

Return type

str

property total_addresses

[Required] Gets the total_addresses of this AddressList. Count of total Addresses in the AddressList

Returns

The total_addresses of this AddressList.

Return type

int

property type

[Required] Gets the type of this AddressList. Type of address List. The accepted values are - * FQDN * IP

Allowed values for this property are: “FQDN”, “IP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The type of this AddressList.

Return type

str