To set upload targets and policies
Steps
| 1  | Log in to a station that has access to the NSP system. | 
| 2  | Open a console window. | 
| 3  | Issue the following RESTCONF API call to configure a policy that defines the FTP/SFTP servers that can be used to upload the data collected in files: Note: In order to issue a RESTCONF API call, you require a token; see the My First NSP API Client tutorial on the Network Developer Portal for information. POST https://address:443/restconf/data/flowconf:config/policies/upload-target where address is the NSP cluster advertised address The message body is the following: { "upload-target" : [ { "name" : "name", "protocol" : "protocol", "ip-address" : "IP address", "port" : "port" "username" : "username" "password" : "password" "descr" : "description", } ] } where name is the server name protocol is one of the following: IP address is the server IP address port is the server port username is the FTP or SFTP username password is the FTP or SFTP password description is an optional description | 
| 4  | Issue the following RESTCONF API call to configure a policy that defines the FTP/SFTP servers that can be used to upload the data collected in files: Note: In order to issue a RESTCONF API call, you require a token; see the My First NSP API Client tutorial on the Network Developer Portal for information. POST https://address:443/restconf/data/flowconf:config/policies/upload where address is the NSP cluster advertised address The message body is the following: { "upload" : [ { "file-type" : "file type", "server" : "server", "enabled" : "true", } ] } where file type is NAT, IPDR, or CSV server is the server IP address Note: The settings in the above example represent the default values. | 
| 5  | Close the console window. End of steps |