FortilinkSettings#

Configuration endpoint for switch_controller/fortilink_settings.

Python Attribute#

fgt.api.cmdb.switch_controller.fortilink_settings

Available Methods#

  • get() - GET operation

  • post() - POST operation

  • put() - PUT operation

  • delete() - DELETE operation

Examples#

from hfortix_fortios import FortiOS

fgt = FortiOS(host='192.168.1.99', token='your-token')

# List all items
items = fgt.api.cmdb.switch_controller.fortilink_settings.get()

# Get specific item by name
item = fgt.api.cmdb.switch_controller.fortilink_settings.get(name='item-name')

# Create new item
result = fgt.api.cmdb.switch_controller.fortilink_settings.post(
    nkey='value',  # optional
    name='value',  # optional
    fortilink='value',  # optional
)

# Update existing item
result = fgt.api.cmdb.switch_controller.fortilink_settings.put(
    name='updated-value',
    fortilink='updated-value',
    inactive_timer='updated-value',
    link_down_flush='updated-value',
)

# Delete item
result = fgt.api.cmdb.switch_controller.fortilink_settings.delete(name='item-name')

Method Reference#

get()#

get(
    name=None,
    payload_dict=None,
    attr=None,
    skip_to_datasource=None,
    acs=None,
    search=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Select a specific entry from a CLI table.

post()#

post(
    payload_dict=None,
    nkey=None,
    name=None,
    fortilink=None,
    inactive_timer=None,
    link_down_flush=None,
    access_vlan_mode=None,
    nac_ports=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Create object(s) in this table.

put()#

put(
    name=None,
    payload_dict=None,
    before=None,
    after=None,
    fortilink=None,
    inactive_timer=None,
    link_down_flush=None,
    access_vlan_mode=None,
    nac_ports=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Update this specific resource.

delete()#

delete(
    name=None,
    payload_dict=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Delete this specific resource.