Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

Retrieving a value from Cluster, and assign it to a variable in Playbook


How can I retrieve the corresponding export policy name based on a known volume name, then assign it to a variable in Playbook. The goal is to use the NA module to create a rule based on the policy name. 


I don't know if Playbook can do that. Thank you!



Not sure if this is the best way to do it you can make an API call to the OnTap system to get the export policy name.

- hosts: localhost
- name: Get NetApp UUID of Volume
url: https://cluster_name/api/storage/volumes?name=volume_name&fields=nas.export_policy.name&return_records=true&return_timeout=15
url_username: username
url_password: password
method: GET
force_basic_auth: yes
validate_certs: no
register: vol_export_policy
- name: Set export policy fact
export_policy: "{{ vol_export_policy.json.records[0].nas.export_policy.name }}"


NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner