HFortix-FortiOS
  • Quick Start Guide
  • Authentication
  • User Guide
  • Methods and Usage
  • API Endpoints
    • Quick Navigation
      • CMDB
        • Categories
        • Quick Start
        • All Categories
      • MONITOR
      • LOG
      • SERVICE
    • API Overview
    • Usage Examples
  • API Reference
  • Topic Guides
  • Code Examples
HFortix-FortiOS
  • API Endpoints
  • CMDB
  • Emailfilter
  • Mheader
  • Edit on GitHub

Mheader

Configuration endpoint for emailfilter/mheader.

Python Attribute

fgt.api.cmdb.emailfilter.mheader

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.emailfilter.mheader.get()


# Create new item
result = fgt.api.cmdb.emailfilter.mheader.post(
    nkey='value',  # optional
    id='value',  # optional
    name='value',  # optional
)

# Update existing item
result = fgt.api.cmdb.emailfilter.mheader.put(
    id='updated-value',
    name='updated-value',
    comment='updated-value',
    entries='updated-value',
)

# Delete item
result = fgt.api.cmdb.emailfilter.mheader.delete()

Method Reference

get()

get(
    id=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,
    id=None,
    name=None,
    comment=None,
    entries=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Create object(s) in this table.

put()

put(
    id=None,
    payload_dict=None,
    before=None,
    after=None,
    name=None,
    comment=None,
    entries=None,
    vdom=None,
    raw_json=False,
    **kwargs
)

Update this specific resource.

delete()

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

Delete this specific resource.

Previous Next

© Copyright 2026, Herman W. Jacobsen.

Built with Sphinx using a theme provided by Read the Docs.