fortigate-api
latest

Contents:

  • FortiGateAPI
    • FortiGateAPI
    • FortiGateAPI.cmdb
      • alertemail
      • antivirus
      • application
      • authentication
      • certificate
      • credential_store
      • dlp
      • dnsfilter
      • emailfilter
      • endpoint_control
      • extender_controller
      • file_filter
      • firewall
      • firewall_ipmacbinding
      • firewall_schedule
      • firewall_service
      • firewall_shaper
      • firewall_ssh
      • firewall_ssl
      • firewall_wildcard_fqdn
      • ftp_proxy
      • icap
      • ips
      • log
      • log_disk
      • log_fortianalyzer
      • log_fortianalyzer2
      • log_fortianalyzer3
      • log_fortianalyzer_cloud
      • log_fortiguard
      • log_memory
      • log_null_device
      • log_syslogd
      • log_syslogd2
      • log_syslogd3
      • log_syslogd4
      • log_webtrends
      • report
      • router
      • ssh_filter
      • switch_controller
      • switch_controller_auto_config
      • switch_controller_initial_config
      • switch_controller_security_policy
      • system
        • accprofile
        • admin
        • alarm
        • api_user
        • arp_table
        • auto_install
        • auto_script
        • automation_action
        • automation_destination
        • automation_stitch
        • automation_trigger
        • central_management
        • cluster_sync
        • console
        • csf
        • custom_language
        • ddns
        • dedicated_mgmt
        • dns
        • dns_database
        • dns_server
        • dscp_based_priority
        • email_server
        • external_resource
        • fips_cc
        • fortiguard
        • fortimanager
        • fortisandbox
        • fsso_polling
        • ftm_push
        • geneve
        • geoip_country
        • geoip_override
        • global_
        • gre_tunnel
        • ha
        • ha_monitor
        • interface
        • ipip_tunnel
        • ips
        • ips_urlfilter_dns
        • ips_urlfilter_dns6
        • ipsec_aggregate
        • ipv6_neighbor_cache
        • ipv6_tunnel
        • link_monitor
        • lte_modem
        • mac_address_table
        • mobile_tunnel
        • modem
        • nat64
        • nd_proxy
        • netflow
        • network_visibility
        • npu
        • ntp
        • object_tagging
        • password_policy
        • password_policy_guest_admin
        • physical_switch
        • pppoe_interface
        • probe_response
        • proxy_arp
        • ptp
        • replacemsg_group
        • replacemsg_image
        • resource_limits
        • saml
        • sdn_connector
        • sdwan
        • session_helper
        • session_ttl
        • settings
        • sflow
        • sit_tunnel
        • sms_server
        • speed_test_server
        • sso_admin
        • standalone_cluster
        • storage
        • stp
        • switch_interface
        • tos_based_priority
        • vdom
        • vdom_dns
        • vdom_exception
        • vdom_link
        • vdom_netflow
        • vdom_property
        • vdom_radius_server
        • vdom_sflow
        • virtual_switch
        • virtual_wire_pair
        • vne_tunnel
        • vxlan
        • wccp
        • zone
      • system_3g_modem
      • system_autoupdate
      • system_dhcp
      • system_dhcp6
      • system_lldp
      • system_replacemsg
      • system_snmp
      • user
      • voip
      • vpn
      • vpn_certificate
      • vpn_ipsec
      • vpn_ssl
      • vpn_ssl_web
      • waf
      • wanopt
      • web_proxy
      • webfilter
      • wireless_controller
      • wireless_controller_hotspot20
    • FortiGateAPI.log (not ready)
    • FortiGateAPI.monitor (not ready)
  • FortiGate
  • REST API
  • Usage
fortigate-api
  • FortiGateAPI
  • FortiGateAPI.cmdb
  • FortiGateAPI.cmdb.system
  • FortiGateAPI.cmdb.system.vdom_link
  • Edit on GitHub

FortiGateAPI.cmdb.system.vdom_link

class fortigate_api.cmdb.system.VdomLinkSC(fortigate: FortiGate, **kwargs)

Web UI

API

https://172.16.177.65/api/v2/cmdb/system/vdom-link

Data

uid: str = 'name'

Unique identifier of fortigate-object.

create(data: Dict[str, Any]) → Response

Create the fortigate-object in the Fortigate.

Parameters:

data (dict) – Data of the fortigate-object. More details can be found at https://fndn.fortinet.net for related POST method.

Returns:

Session response.

  • <Response [200]> Object successfully created,

  • <Response [500]> Object already exists.

Return type:

Response

delete(uid: str | int = '', filter: str | Sequence[str] = '', **kwargs) → Response

Delete the fortigate-object from the Fortigate.

Parameters:
  • uid (str or int) – Identifier of the fortigate-object. Used to delete a single object.

  • filter (str or List[str]) – Filter fortigate-objects by one or multiple Filtering conditions. Used to delete multiple objects.

  • kwargs – Fortigate REST API parameters. More details can be found at https://fndn.fortinet.net for related DELETE method.

Returns:

Session response.

  • <Response [200]> Object successfully deleted,

  • <Response [404]> Object not found in the Fortigate.

Return type:

Response

get(**kwargs) → List[Dict[str, Any]]

Get fortigate-objects, all or filtered by some parameters.

Parameters:

kwargs – Fortigate REST API parameters. filter - Filter fortigate-objects by one or multiple Filtering conditions. More details can be found at https://fndn.fortinet.net for related GET method.

Returns:

List of the fortigate-objects.

Return type:

List[dict]

is_exist(uid: str | int) → bool

Check if a fortigate-object exists in the Fortigate.

Parameters:

uid (str or int) – Identifier of the fortigate-object.

Returns:

True - object exists, False - object does not exist.

Return type:

bool

update(data: Dict[str, Any]) → Response

Update fortigate-object on the Fortigate.

Parameters:

data (dict) – Data of the fortigate-object to update. More details can be found at https://fndn.fortinet.net for related PUT method.

Returns:

Session response.

  • <Response [200]> Object successfully updated,

  • <Response [404]> Object has not been updated.

Return type:

Response

property url: str

URL to the fortigate-object.

Previous Next

© Copyright 2021, Vladimirs Prusakovs. Revision 401b2c7b.

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