Related Documentation
Get Core File Upload Configuration
Use this API to get the FTP or SFTP server configuration for uploading core files from devices.
URI
https://[host]/api/juniper/servicenow/global-setting-management/ CoreFileUploadConfiguration (HTTP method = GET)
Consumes
None
Produces
- application/vnd.juniper.servicenow.global-setting-management. coreFileUploadConfiguration+xml;version=1
- application/vnd.juniper.servicenow.global-setting-management. coreFileUploadConfiguration+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
coreFileUploadType | String | Core file upload type Possible values—DISABLED, FTP, SFTP, and BOTH |
ftpServer | String | IP address in the IPv4 or IPv6 format or hostname of the FTP server to which core files are to be uploaded |
ftpUsername | String | Username of the FTP server |
ftpPassword | String | Password of the FTP server |
ftpPath | String | Path to upload core files on the FTP server |
sftpServer | String | IP address in the IPv4 or IPv6 format or hostname of the SFTP server to which core files are to be uploaded |
sftpUsername | String | Username of the SFTP server |
sftpPassword | String | Password of the SFTP server |
sftpPath | String | Path to upload core files on the SFTP server |
Sample Output
Sample XML Output
<coreFileUpload uri="/api/juniper/servicenow/global-setting-management/CoreFileUploadConfiguration"> <coreFileUploadType>FTP</coreFileUploadType> <ftpServer>ftp.example.com</ftpServer> <ftpUsername>anonymous</ftpUsername> <ftpPassword>password</ftpPassword> <ftpPath>/pub/incoming/</ftpPath> <method href= "/api/juniper/servicenow/global-setting-management/CoreFileUpload Configuration/34636/modifyConfiguration" /> <id>34636</id> </coreFileUpload>
Sample JSON Output
{ "coreFileUpload": { "coreFileUploadType ": " BOTH ", "ftpServer": "ftp.example.com", "ftpUsername": "anonymous", "ftpPassword": "password", "ftpPath": "/pub/incoming/", "method": {”href”: "/api/juniper/servicenow/global-setting-management/CoreFileUpload Configuration/34636/modifyConfiguration", "sftpPassword": "abc", } }