REST API  17
REST API for Luna Network HSMs
PUT /api/lunasa/time

PUT /api/lunasa/time

This resource configures time, date and time zone on the appliance.

Parameters

time

This parameter specifies the hour, minute, and second values. The format must be HH:MM:SS.

Use: Required

JSON Schema:

    Object
    type:string
    pattern: ^(([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))$

date

This parameter specifies the date. The format must be YYYY-MM-DD.

Use: Required

JSON Schema:

    Object
    type:string
    pattern: ^(([0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|2[0-9]|1[0-9]|0[1-9]))$

timeZone

This parameter specifies the time zone. Please refer to Luna Network HSM documentation for details.

Use: Required

JSON Schema:

    Object
    type:string

Responses

204

Success

400

Invalid time zone or bad request or unexpected error.

Example Request

    PUT
    https://1.2.3.4:8443/api/lunasa/time
    {
        "time": "15:00:00",
        "date": "2016-05-27",
        "timeZone": "EST"
    }

Example Result

{
}

Notes

This resource will require SO authentication when the forceSoLogin flag is enabled. (See GET /api/lunasa)