Upcoming Scheduled Maintenance
The NetApp Knowledge Base will be offline between Oct 26, 23:59 PDT and Oct 27, 02:59 PDT, for system maintenance and infrastructure updates. As a result, Elio and kb.netapp.com will be unavailable.

ONTAP Discussions

How to get the ID of export-policy through API communication

Netcom
90 Views

When setting export-policy rule through API communication, export-policy ID is required.

 

ex)

POST /api/protocols/nfs/export-policies/12884901899/rules { "clients": [ { "match": "10.10.10.101" } ], "protocols": [ "any" ], "ro_rule": [ "any" ], "rw_rule": [ "any" ], "superuser": [ "any" ] }

 

However, I don't know the API phrase to get export-policy ID.

 

So I had to check it directly with GUI or CLI's Cammands.

 

I want to work only with API.

 

I want to get export-policy ID through API and set Access IP of nfs using API for export-policy rule.

 

Could you please tell me the API phrase to get the value of the ID of export-policy?

Thank you.

0 REPLIES 0
Public