#'*' for the fields doesn't return all the fields for the "netapp.ontap.na_ontap_rest_info" API.

1 messages · Page 1 of 1 (latest)

vapid obsidian
#

Below is the YAML. But if the actual fields are specified (for the ones that are not returned through '*'), the fields return. a couple of the examples are the anti_ransomware, autosize.

Is this by designed? Is the recommendation to explicitly specify the required fields instead? Did notice that it is NOT recommended to use '*" for the fields with the API - https://docs.ansible.com/projects/ansible/latest/collections/netapp/ontap/na_ontap_rest_info_module.html#parameters

- name: Run ONTAP gather facts for aggregate info and volume info
  netapp.ontap.na_ontap_rest_info:
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    validate_certs: false
    fields:
      - '*'
    gather_subset:
    - storage/volumes
    parameters:
      name: vol01
  register: ontap_facts

- name: Display volume info
  debug:
    msg: "Volumes: {{ ontap_facts }}"
frozen thistle
#

@vapid obsidian Please use fields '**' to retrieve all details and filed names to get only those info