fortinet / fortinet.fortiflexvm / 2.2.0 / module / fortiflexvm_entitlements_hardware_create Create hardware entitlements based on a FortiFlex Configuration. | "added in version" 2.0.0 of fortinet.fortiflexvm" Authors: Xinwei Du (@dux-fortinet)fortinet.fortiflexvm.fortiflexvm_entitlements_hardware_create (2.2.0) — module
Install with ansible-galaxy collection install fortinet.fortiflexvm:==2.2.0
collections: - name: fortinet.fortiflexvm version: 2.2.0
Create hardware entitlements based on a FortiFlex Configuration.
This API is only used to create one or more hardware entitlements.
To modify an entitlement, please refer to fortiflexvm_entitlements_update.
- name: Create hardware entitlements hosts: localhost vars: username: "<your_own_value>" password: "<your_own_value>" tasks: - name: Create hardware entitlements fortinet.fortiflexvm.fortiflexvm_entitlements_hardware_create: username: "{{ username }}" password: "{{ password }}" configId: 42 serialNumbers: - "FGT60FTK19000010" - "FGT60FTK19000013" endDate: "2023-11-11T00:00:00" register: result - name: Display response ansible.builtin.debug: var: result.entitlements
endDate: description: - VM(s) end date. It can not be before today's date or after the program's end date. - Any format that satisfies [ISO 8601](https://www.w3.org/TR/NOTE-datetime-970915.html) is accepted. - Recommended format is "YYYY-MM-DDThh:mm:ss". - If not specify, it will use the program's end date automatically. type: str configId: description: - The ID of a FortiFlex Configuration. required: true type: int password: description: - The password to authenticate. If not declared, the code will read the environment variable FORTIFLEX_ACCESS_PASSWORD. type: str username: description: - The username to authenticate. If not declared, the code will read the environment variable FORTIFLEX_ACCESS_USERNAME. type: str serialNumbers: description: - List of hardware serial numbers. elements: str required: true type: list
entitlements: contains: accountId: description: The ID of the account associated with the program. returned: always sample: 12345 type: int configId: description: The ID of the entitlement configuration. returned: always sample: 42 type: int description: description: The description of the hardware entitlement. returned: always sample: Create through Ansible type: str endDate: description: The end date of the hardware entitlement. returned: always sample: '2023-11-11T00:00:00' type: str serialNumber: description: The serial number of the hardware. returned: always sample: FGVMMLTM23002016 type: str startDate: description: The start date of the hardware entitlement. returned: always sample: '2023-04-06T15:49:29.643' type: str status: description: The status of the hardware entitlement. returned: always sample: PENDING type: str token: description: The token assigned to the hardware entitlement. returned: always sample: '' type: str tokenStatus: description: The status of the token assigned to the hardware entitlement. returned: always sample: '' type: str description: A list of hardware entitlements and their details. returned: always type: list