Create a new FortiFlex configuration
Use the fortflexvm_configs_create
module to create a new FortiFlex configuration under a program.
Parameters
The following parameters are included:
Parameter |
Type |
Description |
---|---|---|
|
String (Optional) |
The username to authenticate. If not declared, the code will read the environment variable |
password
|
String (Optional) |
The password to authenticate. If not declared, the code will read the environment variable |
|
String |
The serial number of your FortiFlex program. |
|
String |
The name of your FortiFlex configuration. |
|
Dictionary (Optional) |
The FortiGate Virtual Machine - Service Bundle. |
|
Dictionary (Optional) |
The FortiManager Virtual Machine. |
|
Dictionary (Optional) |
The FortiWeb Virtual Machine - Service Bundle. |
|
Dictionary (Optional) |
The FortiGate Virtual Machine - A La Carte Services. |
|
Dictionary (Optional) |
The FortiAnalyzer Virtual Machine. |
|
Dictionary (Optional) |
The FortiPortal Virtual Machine. |
The fortigateBundle
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
String |
The number of CPUs. This value can be |
service
|
String |
The value can be either |
|
Integer (Optional) |
The number of VDOMs between 0 and 500. The default value is 0. |
The fortiManager
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
Integer |
The number of managed devices between 1 and 100000. |
|
Integer |
The number of ADOMs between 1 and 100000. |
The fortiWeb
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
String |
The number of CPUs. This value can be |
service
|
String |
The service package can be |
The fortiGateLCS
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
Integer |
The number of CPUs between 1 and 96. |
fortiGuardServices
|
List (Optional) |
The FortiGuard services this FortiGate Virtual Machine supports. The default value is an empty list but may contain |
|
String |
The value can be |
|
Integer |
The number of VDOMs between 1 and 500. |
|
List (Optional) |
The cloud services this FortiGate Virtual Machine supports. The default value is an empty list but may contain |
The fortiAnalyzer
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
Integer |
The daily storage (GB) between 5 and 8300. |
adom
|
Integer |
The number of ADOMs between 0 and 1200. |
|
String |
The support service. |
The fortiPortal
dictionary includes:
Attribute |
Type |
Description |
---|---|---|
|
Integer |
The number of managed devices between 0 and 100000. |
Example
The following is an example use of this module:
- name: Create VM configuration hosts: localhost collections: - fortinet.fortiflexvm vars: username: "<your_own_value>" password: "<your_own_value>" tasks: - name: Create a Virtual Machine configuration fortinet.fortiflexvm.fortiflexvm_configs_create: username: "{{ username }}" password: "{{ password }}" programSerialNumber: "ELAVMS000000XXXX" name: "ansible" # Please only use one of the following. fortiGateBundle: cpu: "2" # "1", "2", "4", "8", "16", "32", "2147483647" service: "FC" # "FC", "UTM", "ENT", "ATP" vdom: 10 # 0 ~ 500 # fortiManager: # device: 1 # 1 ~ 100000 # adom: 1 # 1 ~ 100000 # fortiWeb: # cpu: "4" # "1", "2", "4", "8", "16" # service: "FWBSTD" # "FWBSTD" or "FWBADV" # fortiGateLCS: # cpu: 4 # 1 ~ 96 # fortiGuardServices: [] # "IPS", "AVDB", "FURL", "IOTH", "FGSA", "ISSS" # supportService: "FC247" # "FC247", "ASET" # vdom: 1 # 1 ~ 500 # cloudServices: ["FAMS", "SWNM"] # "FAMS", "SWNM", "FMGC", "AFAC" # fortiAnalyzer: # storage: 5 # 5 ~ 8300 # adom: 1 # 0 ~ 1200 # service: "FAZFC247" # "FAZFC247" # fortiPortal: # device: 1 # 0 ~ 100000 register: result - name: Display response debug: var: result.configs
Return values
The following parameters are returned:
Parameter |
Type Returned |
Description |
---|---|---|
|
Dictionary |
The configuration you create. |
The configs
dictionary includes:
Parameter |
Type Returned |
Description |
---|---|---|
|
Integer |
The ID of the configuration. |
|
String |
The name of the configuration. |
|
String |
The program serial number the configuration belongs to. |
status
|
String |
The status of the configuration. |
|
Dictionary (Changed) |
The FortiGate Virtual Machine - Service Bundle. |
|
Dictionary (Changed) |
The FortiManager Virtual Machine. |
|
Dictionary (Changed) |
The FortiWeb Virtual Machine - Service Bundle. |
|
Dictionary (Changed) |
The FortiGate Virtual Machine - A La Carte Services. |
|
Dictionary (Changed) |
The FortiAnalyzer Virtual Machine. |
|
Dictionary (Changed) |
The FortiPortal Virtual Machine. |
See the Parameters for dictionary attributes that are always returned.