Querying NTP Service Information

Function

This interface is used to query NTP service information.

Syntax

Operation type: GET

URL: https://device_ip/redfish/v1/Systems/NTPService

Request header:

X-Auth-Token: auth_value

Request message body: None

Usage Guidelines

None

Example

Request:

GET https://10.10.10.10/redfish/v1/Systems/NTPService

Request header:

X-Auth-Token: auth_value

Request message body: None

Response:

{
    "@odata.type": "#MindXEdgeNTPService.v1_0_0.MindXEdgeNTPService",
    "@odata.context": "/redfish/v1/$metadata#Systems/NTPService",
    "@odata.id": "/redfish/v1/Systems/NTPService",
    "Id": "NTPService",
    "Name": "NTPService",
    "ClientEnabled": true,
    "ServerEnabled": false,
    "Port": null,
    "NTPRemoteServers": "127.127.xx.xx",
    "NTPRemoteServersbak": null,
    "NTPLocalServers": ""
}

Response code: 200

Output Description

Table 1 Operation output description

Field

Type

Description

@odata.type

Character string

Type of the NTP service resource.

@odata.context

Character string

OData description of the NTP service resource model.

@odata.id

Character string

Path to access the NTP service resource.

Id

Character string

ID of the NTP service resource.

Name

Character string

Name of the NTP service resource.

ClientEnabled

Boolean

Whether the NTP client is enabled.

ServerEnabled

Boolean

Whether the NTP server is enabled.

Port

Character string

NTP server port number.

NTPRemoteServers

Character string

IP address of the preferred NTP server.

NTPRemoteServersbak

Character string

IP address of the alternate NTP server.

NTPLocalServers

Character string

Local IP address used for the NTP service.