How do I 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:
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:
where file type is NAT 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 |