Spec-Zone.ru › Ansible 2.10

fortinet.fortimanager.fmgr_firewall_vip_obj – Настройка виртуального IP-адреса для IPv4.

Примечание

Этот плагин входит в коллекцию fortinet.fortimanager (версия 1.0.5).

Для его установки используйте: ansible-galaxy collection install fortinet.fortimanager.

Для использования в книге задач укажите: fortinet.fortimanager.fmgr_firewall_vip_obj.

Новое в версии 2.10: of fortinet.fortimanager

  • Обзор
  • Параметры
  • Примечания
  • Примеры
  • Возвращаемые значения

Обзор

  • Этот модуль позволяет настраивать устройство FortiManager, позволяя пользователю [ клонировать, удалить, получить, переместить, установить, обновить ] следующие API.
  • /pm/config/adom/{adom}/obj/firewall/vip/{vip}
  • /pm/config/global/obj/firewall/vip/{vip}
  • Примеры включают все параметры и значения, которые необходимо настроить перед использованием.

Параметры

Параметр Варианты/Значения по умолчанию Комментарии
loose_validation
boolean
    Варианты:
  • no
  • yes
Проверка параметров выполняется нестрого
method
string / обязательно
    Варианты:
  • clone
  • delete
  • get
  • move
  • set
  • update
Метод запроса
params
list / элементы=string
Параметры для каждого метода
См. полный список параметров в https://ansible-galaxy-fortimanager-docs.readthedocs.io/en/latest
url_params
dictionary
Параметры для каждого URL-адреса API-запроса
Также см. полный список параметров URL в https://ansible-galaxy-fortimanager-docs.readthedocs.io/en/latest
workspace_locking_adom
string
Имя домена для блокировки в случае работы FortiManager в режиме рабочей области
может быть глобальным или любым другим пользовательским именем домена
workspace_locking_timeout
integer
По умолчанию:
300
Максимальное время ожидания в секундах, пока другой пользователь не разблокирует рабочую область

Примечания

Примечание

  • Существует только три параметра верхнего уровня, где ‘method’ всегда обязателен, а остальные два ‘params’ и ‘url_params’ могут быть необязательными
  • Из-за сложности схемы API fortimanager проверка выполняется за пределами процедуры проверки параметров Ansible.
  • Синтаксис OPTIONS не соответствует стандартному спецификации аргументов Ansible, но со структурой схемы API fortimanager нам нужна тривиальная трансформация, когда мы заполняем книгу задач ansible

Примеры

- hosts: fortimanager-inventory
  collections:
    - fortinet.fortimanager
  connection: httpapi
  vars:
     ansible_httpapi_use_ssl: True
     ansible_httpapi_validate_certs: False
     ansible_httpapi_port: 443
  tasks:

   - name: REQUESTING /PM/CONFIG/OBJ/FIREWALL/VIP/{VIP}
     fmgr_firewall_vip_obj:
        loose_validation: False
        workspace_locking_adom: <value in [global, custom adom]>
        workspace_locking_timeout: 300
        method: <value in [clone, set, update]>
        url_params:
           adom: <value in [none, global, custom dom]>
           vip: <value of string>
        params:
           -
              data:
                 arp-reply: <value in [disable, enable]>
                 color: <value of integer>
                 comment: <value of string>
                 dns-mapping-ttl: <value of integer>
                 dynamic_mapping:
                   -
                       _scope:
                         -
                             name: <value of string>
                             vdom: <value of string>
                       arp-reply: <value in [disable, enable]>
                       color: <value of integer>
                       comment: <value of string>
                       dns-mapping-ttl: <value of integer>
                       extaddr: <value of string>
                       extintf: <value of string>
                       extip: <value of string>
                       extport: <value of string>
                       gratuitous-arp-interval: <value of integer>
                       http-cookie-age: <value of integer>
                       http-cookie-domain: <value of string>
                       http-cookie-domain-from-host: <value in [disable, enable]>
                       http-cookie-generation: <value of integer>
                       http-cookie-path: <value of string>
                       http-cookie-share: <value in [disable, same-ip]>
                       http-ip-header: <value in [disable, enable]>
                       http-ip-header-name: <value of string>
                       http-multiplex: <value in [disable, enable]>
                       https-cookie-secure: <value in [disable, enable]>
                       id: <value of integer>
                       ldb-method: <value in [static, round-robin, weighted, ...]>
                       mapped-addr: <value of string>
                       mappedip:
                         - <value of string>
                       mappedport: <value of string>
                       max-embryonic-connections: <value of integer>
                       monitor:
                         - <value of string>
                       nat-source-vip: <value in [disable, enable]>
                       outlook-web-access: <value in [disable, enable]>
                       persistence: <value in [none, http-cookie, ssl-session-id]>
                       portforward: <value in [disable, enable]>
                       portmapping-type: <value in [1-to-1, m-to-n]>
                       protocol: <value in [tcp, udp, sctp, ...]>
                       realservers:
                         -
                             client-ip:
                               - <value of string>
                             healthcheck: <value in [disable, enable, vip]>
                             holddown-interval: <value of integer>
                             http-host: <value of string>
                             ip: <value of string>
                             max-connections: <value of integer>
                             monitor: <value of string>
                             port: <value of integer>
                             seq: <value of integer>
                             status: <value in [active, standby, disable]>
                             weight: <value of integer>
                       server-type: <value in [http, https, ssl, ...]>
                       service: <value of string>
                       src-filter:
                         - <value of string>
                       srcintf-filter:
                         - <value of string>
                       ssl-algorithm: <value in [high, medium, low, ...]>
                       ssl-certificate: <value of string>
                       ssl-cipher-suites:
                         -
                             cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
                             id: <value of integer>
                             versions:
                               - <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                       ssl-client-fallback: <value in [disable, enable]>
                       ssl-client-renegotiation: <value in [deny, allow, secure]>
                       ssl-client-session-state-max: <value of integer>
                       ssl-client-session-state-timeout: <value of integer>
                       ssl-client-session-state-type: <value in [disable, time, count, ...]>
                       ssl-dh-bits: <value in [768, 1024, 1536, ...]>
                       ssl-hpkp: <value in [disable, enable, report-only]>
                       ssl-hpkp-age: <value of integer>
                       ssl-hpkp-backup: <value of string>
                       ssl-hpkp-include-subdomains: <value in [disable, enable]>
                       ssl-hpkp-primary: <value of string>
                       ssl-hpkp-report-uri: <value of string>
                       ssl-hsts: <value in [disable, enable]>
                       ssl-hsts-age: <value of integer>
                       ssl-hsts-include-subdomains: <value in [disable, enable]>
                       ssl-http-location-conversion: <value in [disable, enable]>
                       ssl-http-match-host: <value in [disable, enable]>
                       ssl-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                       ssl-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                       ssl-mode: <value in [half, full]>
                       ssl-pfs: <value in [require, deny, allow]>
                       ssl-send-empty-frags: <value in [disable, enable]>
                       ssl-server-algorithm: <value in [high, low, medium, ...]>
                       ssl-server-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                       ssl-server-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                       ssl-server-session-state-max: <value of integer>
                       ssl-server-session-state-timeout: <value of integer>
                       ssl-server-session-state-type: <value in [disable, time, count, ...]>
                       type: <value in [static-nat, load-balance, server-load-balance, ...]>
                       uuid: <value of string>
                       weblogic-server: <value in [disable, enable]>
                       websphere-server: <value in [disable, enable]>
                 extaddr: <value of string>
                 extintf: <value of string>
                 extip: <value of string>
                 extport: <value of string>
                 gratuitous-arp-interval: <value of integer>
                 http-cookie-age: <value of integer>
                 http-cookie-domain: <value of string>
                 http-cookie-domain-from-host: <value in [disable, enable]>
                 http-cookie-generation: <value of integer>
                 http-cookie-path: <value of string>
                 http-cookie-share: <value in [disable, same-ip]>
                 http-ip-header: <value in [disable, enable]>
                 http-ip-header-name: <value of string>
                 http-multiplex: <value in [disable, enable]>
                 https-cookie-secure: <value in [disable, enable]>
                 id: <value of integer>
                 ldb-method: <value in [static, round-robin, weighted, ...]>
                 mapped-addr: <value of string>
                 mappedip:
                   - <value of string>
                 mappedport: <value of string>
                 max-embryonic-connections: <value of integer>
                 monitor: <value of string>
                 name: <value of string>
                 nat-source-vip: <value in [disable, enable]>
                 outlook-web-access: <value in [disable, enable]>
                 persistence: <value in [none, http-cookie, ssl-session-id]>
                 portforward: <value in [disable, enable]>
                 portmapping-type: <value in [1-to-1, m-to-n]>
                 protocol: <value in [tcp, udp, sctp, ...]>
                 realservers:
                   -
                       client-ip:
                         - <value of string>
                       healthcheck: <value in [disable, enable, vip]>
                       holddown-interval: <value of integer>
                       http-host: <value of string>
                       ip: <value of string>
                       max-connections: <value of integer>
                       monitor: <value of string>
                       port: <value of integer>
                       seq: <value of integer>
                       status: <value in [active, standby, disable]>
                       weight: <value of integer>
                 server-type: <value in [http, https, ssl, ...]>
                 service: <value of string>
                 src-filter:
                   - <value of string>
                 srcintf-filter: <value of string>
                 ssl-algorithm: <value in [high, medium, low, ...]>
                 ssl-certificate: <value of string>
                 ssl-cipher-suites:
                   -
                       cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
                       id: <value of integer>
                       versions:
                         - <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-client-fallback: <value in [disable, enable]>
                 ssl-client-renegotiation: <value in [deny, allow, secure]>
                 ssl-client-session-state-max: <value of integer>
                 ssl-client-session-state-timeout: <value of integer>
                 ssl-client-session-state-type: <value in [disable, time, count, ...]>
                 ssl-dh-bits: <value in [768, 1024, 1536, ...]>
                 ssl-hpkp: <value in [disable, enable, report-only]>
                 ssl-hpkp-age: <value of integer>
                 ssl-hpkp-backup: <value of string>
                 ssl-hpkp-include-subdomains: <value in [disable, enable]>
                 ssl-hpkp-primary: <value of string>
                 ssl-hpkp-report-uri: <value of string>
                 ssl-hsts: <value in [disable, enable]>
                 ssl-hsts-age: <value of integer>
                 ssl-hsts-include-subdomains: <value in [disable, enable]>
                 ssl-http-location-conversion: <value in [disable, enable]>
                 ssl-http-match-host: <value in [disable, enable]>
                 ssl-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-mode: <value in [half, full]>
                 ssl-pfs: <value in [require, deny, allow]>
                 ssl-send-empty-frags: <value in [disable, enable]>
                 ssl-server-algorithm: <value in [high, low, medium, ...]>
                 ssl-server-cipher-suites:
                   -
                       cipher: <value in [TLS-RSA-WITH-RC4-128-MD5, TLS-RSA-WITH-RC4-128-SHA, TLS-RSA-WITH-DES-CBC-SHA, ...]>
                       priority: <value of integer>
                       versions:
                         - <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-server-max-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-server-min-version: <value in [ssl-3.0, tls-1.0, tls-1.1, ...]>
                 ssl-server-session-state-max: <value of integer>
                 ssl-server-session-state-timeout: <value of integer>
                 ssl-server-session-state-type: <value in [disable, time, count, ...]>
                 type: <value in [static-nat, load-balance, server-load-balance, ...]>
                 uuid: <value of string>
                 weblogic-server: <value in [disable, enable]>
                 websphere-server: <value in [disable, enable]>

   - name: REQUESTING /PM/CONFIG/OBJ/FIREWALL/VIP/{VIP}
     fmgr_firewall_vip_obj:
        loose_validation: False
        workspace_locking_adom: <value in [global, custom adom]>
        workspace_locking_timeout: 300
        method: <value in [get]>
        url_params:
           adom: <value in [none, global, custom dom]>
           vip: <value of string>
        params:
           -
              option: <value in [object member, chksum, datasrc]>

   - name: REQUESTING /PM/CONFIG/OBJ/FIREWALL/VIP/{VIP}
     fmgr_firewall_vip_obj:
        loose_validation: False
        workspace_locking_adom: <value in [global, custom adom]>
        workspace_locking_timeout: 300
        method: <value in [move]>
        url_params:
           adom: <value in [none, global, custom dom]>
           vip: <value of string>
        params:
           -
              option: <value in [before, after]>
              target: <value of string>

Возвращаемые значения

Общие возвращаемые значения описаны здесь, следующие — поля, уникальные для этого модуля:

Ключ Возвращаемое значение Описание
data
dictionary
всегда
Полезная нагрузка, возвращаемая в запросе

status
dictionary
всегда
Статус API-запроса

url
string
всегда
Полный запрашиваемый URL

Пример:
/sys/login/user


Авторы

  • Frank Shen (@fshen01)
  • Link Zheng (@zhengl)

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/fortinet/fortimanager/fmgr_firewall_vip_obj_module.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API