create_device_group
Creates a device group in a FortiManager ADOM to organize managed devices and nested groups for bulk operations such as policy installation.
Instructions
Create a device group in FortiManager's device manager database.
Device groups organize managed devices (and other groups) for bulk operations like policy installation. This is a dvmdb object -- creation does not touch any live device.
Args: adom: ADOM name where the group will be created name: Group name (dvmdb group.name, master key) os_type: Device platform family the group targets (default: "unknown"). One of: unknown, fos, fsw, foc, fml, faz, fwb, fch, fct, log, fmg, fsa, fdd, fac, fpx, fna, ffw, fsr, fad, fdc, fap, fxt, fts, fai, fwc, fis, fed, fpa, fca, ftc, fss, fra, sim, fdt. description: Optional group description
Returns: dict: Create result with keys: - status: "success" or "error" - group: Created group name/adom - message: Status or error message
Example: >>> result = await create_device_group( ... adom="root", ... name="Branch-Firewalls", ... os_type="fos", ... description="All branch FortiGates", ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| name | Yes | ||
| os_type | No | unknown | |
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||