Reset Search
 

 

Article

KB44983 - How to configure NTP server on PCS using REST API .

« Go Back

Information

 
Last Modified Date3/31/2022 3:41 PM
Synopsis
The article describes How to configure an NTP server on PCS using REST API .
Problem or Goal
The scope of this article is to provide steps to configure the NTP server on PCS using REST API.
Cause
Solution
 
  • NTP Server configuration with encrypted key
PUT  /api/v1/configuration/system/configuration/date-and-time/ntp-settings
HOST 10.64.193.97
Authorization: Basic 7KQ2a4JrE9fwKxQHOoWgWrgPFB1X/G3Co9SPVTpjD4A=

Request:
Content-Type: application/json
{
    "enable""true",
    "fourth-server""",
    "fourth-server-key-encrypted""",
    "secondary-server""",
    "secondary-server-key-encrypted""",
    "server""10.0.0.1",
    "server-key-encrypted""3u+UR6n8AgABAAAA4zcj6AqEko0VLG8UNPIjOkGP19FE20y0rR1w/iWC2uo=",
    "third-server""",
    "third-server-key-encrypted"""
}

Response:
{
    "result": {
        "info": [
            {
                "message""Operation succeeded without warning or error!"
            }
        ]
    }
}
  •  NTP Server configuration with cleartext key
PUT  /api/v1/configuration/system/configuration/date-and-time/ntp-settings
HOST 10.64.193.97
Authorization: Basic 7KQ2a4JrE9fwKxQHOoWgWrgPFB1X/G3Co9SPVTpjD4A=
Request:
Content-Type: application/json
{
    "enable""true",
    "fourth-server""",
    "fourth-server-key-encrypted""",
    "secondary-server""",
    "secondary-server-key-encrypted""",
    "server""10.0.0.2",
    "server-key-cleartext""1 MD5 5d41402abc4b2a76b9719d911017c592",
    "third-server""",
    "third-server-key-encrypted"""
}

Response:
{
    "result": {
        "info": [
            {
                "message""Operation succeeded without warning or error!"
            }
        ]
    }
}

NOTE: The key should have following format: [numeric index] [algorithm (MD5/SHA1 etc)] [key value string].
 
Related Links
Attachment 1 
Created ByAnsari Sultan

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255