#Using netapp.ontap.na_ontap_rest_cli instead of netapp.ontap.na_ontap_command

1 messages · Page 1 of 1 (latest)

south wedge
#

Hello i want to change the following playbook to start using - netapp.ontap.na_ontap_rest ( because we are upgrading to 9.14.1P11 )

name: Apply existing QoS policy to vserver using ZAPI CLI passthrough
netapp.ontap.na_ontap_command:
<<: *auth # Assuming 'auth' contains authentication details
command: "vserver modify -vserver {{ svm.name }} -qos-policy-group {{ qos_policy_group_name }}"
when: "'dcmp' in (vars_local.template | default('') | string)"

Any thoughts ?
thanks, Ferry

warm quest
#

@south wedge You can try something like below:

    - name: Assign QoS policy group
      netapp.ontap.na_ontap_rest_cli:
        command: vserver
        verb: PATCH
        params:
          vserver: svm1
        body:
          qos-policy-group: policy1
      register: result
south wedge