Modify a Core File Configuration
Use this API to modify a core file upload configuration.
Starting from the year 2018, Service Now does not support upload of core files to FTP servers.
URI
https://[host]/api/juniper/servicenow/global-setting-management/ CoreFileUploadConfiguration /{id}/modifyConfiguration (HTTP method = PUT)
Consumes
application/vnd.juniper.servicenow.global-setting-management.modify Configuration+xml;version=1;charset=UTF-8
application/vnd.juniper.servicenow.global-setting-management.modify Configuration+json;version=1;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
coreFileUploadType | String | Core file upload type Possible values:—DISABLED, FTP, SFTP, and BOTH |
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 |
Produces
application/vnd.juniper.servicenow.global-setting-management.modifyConfiguration +xml;version=1
application/vnd.juniper.servicenow.global-setting-management.modifyConfiguration +json;version=1
Request Elements
Element | Type | Description |
---|---|---|
msg | String | Status message of the modify core file upload configuration job |
Sample Input
Sample XML Input
<coreFileUpload > <coreFileUploadType>SFTP</coreFileUploadType> <sftpServer>sftp.example.com</sftpServer> <sftpUsername>user@example.com</sftpUsername> <sftpPassword>password</sftpPassword> <sftpPath>/test/test1/ </sftpPath> </coreFileUpload>
Sample JSON Input
{ "coreFileUpload": { "coreFileUploadType": "SFTP", "sftpServer": "sftp.example.com", "sftpUsername": "user@example.com", "sftpPassword": "password", "sftpPath": "/test/test1/" } }
Sample Output
Sample XML Output
<servicenowmsg> <msg>Core file configuration modified successfully</msg> </servicenowmsg>
Sample JSON Output
{ "servicenowmsg": { "msg": "Core file configuration modified successfully" } }