drmofu.fortiflexvm.fortiflexvm_entitlements_points_info (2.0.0) — module

Get point usage for entitlements.

| "added in version" 2.0.0 of drmofu.fortiflexvm"

Authors: Xinwei Du (@DrMofu)

Install collection

Install with ansible-galaxy collection install drmofu.fortiflexvm:==2.0.0


Add to requirements.yml

  collections:
    - name: drmofu.fortiflexvm
      version: 2.0.0

Description

Returns total points consumed by one or more entitlements in a date range.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get point usage for entitlementss
  hosts: localhost
  collections:
    - fortinet.fortiflexvm
  vars:
    username: "<your_own_value>"
    password: "<your_own_value>"
  tasks:
    - name: Get entitlements points
      fortinet.fortiflexvm.fortiflexvm_entitlements_points_info:
        username: "{{ username }}"
        password: "{{ password }}"
        configId: 25
        startDate: "2020-10-01"
        endDate: "2020-10-25"
      register: result

    - name: Display response
      debug:
        var: result.entitlements

Inputs

    
endDate:
    description:
    - The end date of the date range to query. Any format that satisfies [ISO 8601](https://www.w3.org/TR/NOTE-datetime-970915.html)
      is accepted.
    - Recommended format is YYYY-MM-DD.
    required: true
    type: str

configId:
    description:
    - The ID of the configuration.
    required: true
    type: int

password:
    description:
    - The password to authenticate. If not declared, the code will read the environment
      variable FORTIFLEX_ACCESS_PASSWORD.
    required: false
    type: str

username:
    description:
    - The username to authenticate. If not declared, the code will read the environment
      variable FORTIFLEX_ACCESS_USERNAME.
    required: false
    type: str

startDate:
    description:
    - The start date of the date range to query. Any format that satisfies [ISO 8601](https://www.w3.org/TR/NOTE-datetime-970915.html)
      is accepted.
    - Recommended format is YYYY-MM-DD.
    required: true
    type: str

Outputs

entitlements:
  contains:
    points:
      description: The total points consumed by the entitlement in the specified date
        range.
      returned: always
      sample: 425
      type: int
    serialNumber:
      description: The serial number of the entitlement.
      returned: always
      sample: FGVMELTM20000029
      type: str
  description: List of entitlements and their consumed points in the specified date
    range.
  returned: always
  type: list