Service Compound TCP#

This class is used to manage Service Compound TCP

class ServiceCompoundTCP#
add(name, compound_service='pointcast', keep_connections_open_after_policy_installation=None, tags=None, **kw)#

Create new object.

Parameters
  • name (str) – Object name. Must be unique in the domain.

  • compound_service (str, optional) – Compound service type.

  • keep_connections_open_after_policy_installation (bool, optional) – Keep connections open after policy has been installed even if they are not allowed under the new policy. This overrides the settings in the Connection Persistence page. If you change this property, the change will not affect open connections, but only future connections.

  • tags (Union(str,List[str]), optional) – Collection of tag identifiers.

Keyword Arguments
  • **set-if-exists (bool, optional) – If another object with the same identifier already exists, it will be updated. The command behaviour will be the same as if originally a set command was called. Pay attention that original object’s fields will be overwritten by the fields provided in the request payload!

  • **color (Color, optional) – Color of the object. Should be one of existing colors.

  • **comments (str, optional) – Comments string.

  • **details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.

  • **groups (Union(str,List[str]), optional) – Collection of group identifiers.

  • **ignore-warnings (bool, optional) – Apply changes ignoring warnings. Defaults to False

  • **ignore-errors (bool, optional) – Apply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored. Defaults to False

Returns

The response from the server

Return type

Box

Examples

>>> firewallManagement.service_applications.service_compound_tcp.add(
... name="mycompoundtcp",
... compound_service="pointcast",
... keep_connections_open_after_policy_installation=False,
... tags=["t1"])
delete(uid=None, name=None, **kw)#

Delete existing object using object name or uid.

Parameters
  • uid (str, optional) – Object unique identifier.

  • name (str, optional) – Object name.

Keyword Arguments
  • **details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.

  • **ignore-warnings (bool, optional) – Apply changes ignoring warnings. Defaults to False

  • **ignore-errors (bool, optional) – Apply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored. Defaults to False

Returns

The response from the server

Return type

Box

Examples

>>> FirewallManagement.service_applications.service_compound_tcp.delete(
    uid="ed997ff8-6709-4d71-a713-99bf01711cd5")
set(uid=None, name=None, new_name=None, compound_service='pointcast', keep_connections_open_after_policy_installation=None, tags=None, **kw)#

Edit existing object using object name or uid.

Parameters
  • uid (str, optional) – Object unique identifier.

  • name (str, optional) – Object name.

  • new_name (str, optional) – New name of the object.

  • compound_service (str, optional) – Compound service type.

  • keep_connections_open_after_policy_installation (bool, optional) – Keep connections open after policy has been installed even if they are not allowed under the new policy. This overrides the settings in the Connection Persistence page. If you change this property, the change will not affect open connections, but only future connections.

  • tags (Union(str,List[str]), optional) – Collection of tag identifiers.

Keyword Arguments
  • **color (Color, optional) – Color of the object. Should be one of existing colors.

  • **comments (str, optional) – Comments string.

  • **details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.

  • **groups (Union(str,List[str]), optional) – Collection of group identifiers.

  • **ignore-warnings (bool, optional) – Apply changes ignoring warnings. Defaults to False

  • **ignore-errors (bool, optional) – Apply changes ignoring errors. You won’t be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored. Defaults to False

Returns

The response from the server

Return type

Box

Examples

>>> firewallManagement.service_applications.service_compound_tcp.set(
... uid="1f0f2270-b297-4400-afa4-d9f56a1cb407",
... new_name="mycompoundtcp",
... compound_service="pointcast",
... keep_connections_open_after_policy_installation=False,
... tags=["t1"])
show(uid=None, name=None, **kw)#

Retrieve existing object using object name or uid.

Parameters
  • uid (str, optional) – Object unique identifier.

  • name (str, optional) – Object name.

Keyword Arguments

**details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.

Returns

The response from the server

Return type

Box

Examples

>>> firewallManagement.service_applications.service_compound_tcp.set(
... uid="66333250-0680-46c3-a894-ebe1fef657f4",
... new_name="New_RPC_Service_2",
... program_number="5669",
... keep_connections_open_after_policy_installation=False,
... tags=["t1"])
show_services_compound_tcp(filter_results=None, limit=50, offset=0, order=None, **kw)#

Retrieve all objects.

Parameters
  • filter_results (str, optional) – Search expression to filter objects by. The provided text should be exactly the same as it would be given in SmartConsole Object Explorer. The logical operators in the expression (‘AND’, ‘OR’) should be provided in capital letters. he search involves both a IP search and a textual search in name, comment, tags etc.

  • limit (int, optional) – The maximal number of returned results. Defaults to 50 (between 1 and 500)

  • offset (int, optional) – Number of the results to initially skip. Defaults to 0

  • order (List[dict], optional) – Sorts results by the given field. By default the results are sorted in the descending order by the session publish time.

  • show_as_ranges (bool, optional) – When true, the group’s matched content is displayed as ranges of IP addresses rather than network objects. Objects that are not represented using IP addresses are presented as objects. The ‘members’ parameter is omitted from the response and instead the ‘ranges’ parameter is displayed. Defaults to False.

Keyword Arguments
  • **details-level (str, optional) – The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed representation of the object.

  • **domains-to-process (List[str], optional) – Indicates which domains to process the commands on. It cannot be used with the details-level full, must be run from the System Domain only and with ignore-warnings true. Valid values are: CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER.

  • **show-membership (bool, optional) – Indicates whether to calculate and show “groups” field for every object in reply.

Returns

The response from the server

Return type

Box

Examples

>>> FirewallManagement.service_applications.service_compound_tcp.show_services_compound_tcp()