security_service_groups - Service Group Resource
Added in version 1.0.0.
Synopsis
Service Group Resource.
Use API “/resource-api/v2/security/service-groups”.
Requirements
The below requirements are needed on the host that executes this module.
ansible>=2.17.0
Parameters
- state The state of the module. "present" means create or update the resource, "absent" means delete the resource.type: strchoices: ['present', 'absent']default: present
- force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
- bypass_validation Bypass validation of the module.type: booldefault: False
- params The parameters of the module.[Required]type: dict
- primary_key [Required]type: str
- proxy type: bool
- members type: listelements: dict
- primary_key type: str
- datasource type: strchoices: ['security/service-groups', 'security/services']
Examples
- name: Security service group
hosts: fortisase
gather_facts: false
vars:
security_service_group: "service_group_example"
tasks:
- name: Create/Update security service group
fortinet.fortisase.security_service_groups:
state: present
params:
primary_key: "{{ security_service_group }}"
proxy: false
members:
- primary_key: "HTTP"
datasource: "security/services"
- primary_key: "HTTPS"
datasource: "security/services"
- name: Delete security service group
fortinet.fortisase.security_service_groups:
state: absent
params:
primary_key: "{{ security_service_group }}"
Return Values
- http_code type: intreturned: always
- response type: rawreturned: always