ONTAP Discussions

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

Netcom
277 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.

1 REPLY 1

chenguanghui
154 Views
Public