fortiflexvm_entitlements_vm_create - Create one or more VMs based on a FortiFlex Configuration. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. versionadded:: 2.0.0 .. contents:: :local: :depth: 1 Synopsis -------- Create one or more VMs based on a FortiFlex Configuration. This API is only used to create one or more VMs. To modify a VM, please refer to fortiflexvm_entitlements_update. Requirements ------------ The below requirements are needed on the host that executes this module. - ansible>=2.15 Parameters ---------- .. raw:: html Examples ------------- .. code-block:: yaml - name: Create VMs. hosts: localhost vars: username: "" password: "" tasks: - name: Create Virtual Machines. fortinet.fortiflexvm.fortiflexvm_entitlements_vm_create: username: "{{ username }}" password: "{{ password }}" configId: 42 count: 1 # If you set it as 0, FortiFlexvm ansible collection will not create any vm. # description: "Create through Ansible" # Optional. # endDate: "2023-11-11T00:00:00" # Optional. If not set, it will use the program end date automatically. # folderPath: "My Assets" # Optional. If not set, new VM will be in "My Assets" # skipPending: false # Optional. Set 'skipPending' to true will activate the entitlement right away and charges start. register: result - name: Display response ansible.builtin.debug: var: result.entitlements Return Values ------------- .. raw:: html Authors ------- - Xinwei Du (@dux-fortinet) .. hint:: If you notice any issues in this documentation, you can create a pull request to improve it.