A newer release of this product is available.
Protocols fpolicy svm.uuid engines endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Overview
The FPolicy engine allows you to configure the external servers to which the file access notifications are sent. As part of FPolicy engine configuration, you can configure the server(s) to which the notification is sent, an optional set of secondary server(s) to which the notification is sent in the case of the primary server(s) failure, the port number for FPolicy application and the type of the engine, synchronous or asynchronous.
For the synchronous engine, ONTAP will wait for a response from the FPolicy application before it allows the operation. With an asynchronous engine, ONTAP proceeds with the operation processing after sending the notification to the FPolicy application. An engine can belong to multiple FPolicy policies.
Examples
Creating an FPolicy engine
# The API: POST /protocols/fpolicy/{svm.uuid}/engines #The call: curl -X POST "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"engine0\", \"port\": 9876, \"primary_servers\": [ \"10.132.145.22\", \"10.140.101.109\" ], \"secondary_servers\": [ \"10.132.145.20\", \"10.132.145.21\" ], \"type\": \"synchronous\"}" # The response: { "num_records": 1, "records": [ { "name": "engine0", "primary_servers": [ "10.132.145.22", "10.140.101.109" ], "secondary_servers": [ "10.132.145.20", "10.132.145.21" ], "port": 9876, "type": "synchronous" } ] }
Creating an FPolicy engine with the minimum required fields
# The API: POST /protocols/fpolicy/{svm.uuid}/engines #The call: curl -X POST "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"engine0\", \"port\": 9876, \"primary_servers\": [ \"10.132.145.22\", \"10.140.101.109\" ], \"type\": \"synchronous\"}" # The response: { "num_records": 1, "records": [ { "name": "engine0", "primary_servers": [ "10.132.145.22", "10.140.101.109" ], "port": 9876, "type": "synchronous" } ] }
Retrieving an FPolicy engine configuration for a particular SVM
# The API: GET /protocols/fpolicy/{svm.uuid}/engines # The call: curl -X GET "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/?fields=*&return_records=true&return_timeout=15" -H "accept: application/json" # The response: { "records": [ { "svm": { "uuid": "4f643fb4-fd21-11e8-ae49-0050568e2c1e" }, "name": "cifs", "primary_servers": [ "10.20.20.10" ], "port": 9876, "type": "synchronous" }, { "svm": { "uuid": "4f643fb4-fd21-11e8-ae49-0050568e2c1e" }, "name": "nfs", "primary_servers": [ "10.23.140.64", "10.140.101.109" ], "secondary_servers": [ "10.132.145.20", "10.132.145.22" ], "port": 9876, "type": "synchronous" } ], "num_records": 2 }
Retrieving a specific FPolicy engine configuration for an SVM
# The Api: GET /protocols/fpolicy/{svm.uuid}/engines/{name} #The call: curl -X GET "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/cifs?fields=*" -H "accept: application/json" # The response: { "svm": { "uuid": "4f643fb4-fd21-11e8-ae49-0050568e2c1e" }, "name": "cifs", "primary_servers": [ "10.20.20.10" ], "port": 9876, "type": "synchronous" }
Updating an FPolicy engine for an SVM
# The API: PATCH /protocols/fpolicy/{svm.uuid}/engines/{name} # The call: curl -X PATCH "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/cifs" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"port\": 6666, \"secondary_servers\": [ \"10.132.145.20\", \"10.132.145.21\" ], \"type\": \"synchronous\"}"
Updating all the attributes of a specific FPolicy engine for an SVM
# The API: PATCH /protocols/fpolicy/{svm.uuid}/engines/{name} # The call: curl -X PATCH "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/engines/cifs" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"port\": 9876, \"primary_servers\": [ \"10.132.145.20\", \"10.140.101.109\" ], \"secondary_servers\": [ \"10.132.145.23\", \"10.132.145.21\" ], \"type\": \"synchronous\"}"
Deleting a specific FPolicy engine for an SVM
# The API: DELETE /protocols/fpolicy/{svm.uuid}/engines/{name} # The call: curl -X DELETE "https://<mgmt-ip>/api/protocols/fpolicy/4f643fb4-fd21-11e8-ae49-0050568e2c1e/events/cifs" -H "accept: application/json"