Policy APIs
  • Updated on 07 Apr 2020
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Policy APIs

  • Print
  • Share
  • Dark
    Light

Policy association

This API is used to assign a backup policy to an export/share using a simple HTTP POST request. An empty response body with HTTP 204 status is returned on a successful policy application.

POST /x/igneous/v1/policies/backup

Example using CURL

curl --insecure -X POST
https://<IP>/x/igneous/v1/policies/backup \
-H 'Authorization: 2WXRXD92X2PRWZH57V9Z' \
-H 'Content-Type: application/json' \
-d '{
    "Policy": "My Policy", // case sensitive policy name. Empty to unset
    "System": "netapp-admin.iggy.bz",
    "SourcePath": "/home/nfs"
}'
Was this article helpful?