Replication Start REST Service

Use Replication Start REST Service to start the replication server for replicating the current IBM® Security Guardium® Key Lifecycle Manager active files on clone servers based on a configured schedule.

Note: IBM Security Guardium Key Lifecycle Manager data is replicated based on a configured schedule only when new cryptographic objects are added to the master server.
Operation
POST
URL
https://<host>:<port>/SKLM/rest/v1/replicate/start
By default, Guardium Key Lifecycle Manager server listens to non-secure port 9080 (HTTP) and secure port 9443 (HTTPS) for communication. During IBM Security Guardium Key Lifecycle Manager installation, you can modify these default ports.
Note: The non-secure port 9080 is not applicable when IBM Security Guardium Key Lifecycle Manager is deployed in a containerized environment.

Request

Request Parameters
Parameter Description
host Specify the IP address or host name of the IBM Security Guardium Key Lifecycle Manager server.
port Specify the port number on which the IBM Security Guardium Key Lifecycle Manager server listens for requests.
Request Headers
Header name Value
Content-Type application/json
Accept application/json
Authorization SKLMAuth userAuthId=<authIdValue>
Accept-Language Any valid locale that is supported by IBM Security Guardium Key Lifecycle Manager. For example: en or de

Response

Response Headers
Header name Value and description
Status Code
200 OK
The request was successful. The response body contains the requested representation.
400® Bad Request
The authentication information was not provided in the correct format.
401 Unauthorized
The authentication credentials were missing or incorrect.
404 Not Found Error
The processing of the request fails.
500 Internal Server Error
The processing of the request fails because of an unexpected condition on the server.
Content-Type application/json
Content-Language Locale for the response message.
Success response body

JSON object with the following specification:

JSON property name Description
code Returns the value that is specified by the message property.
message Returns the status message that indicates the success or failure of the replication task:
CTGKM2207W
IBM Security Guardium Key Lifecycle Manager replication task is already up.
CTGKM2205I
IBM Security Guardium Key Lifecycle Manager replication task started successfully.
CTGKM2206E
IBM Security Guardium Key Lifecycle Manager replication task failed to start.
Error Response Body

JSON object with the following specification.

JSON property name Description
code Returns the application error code.
message Returns a message that describes the error.

Examples

Service request to start the replication task
POST https://localhost:<port>/SKLM/rest/v1/replicate/start
Content-Type: application/json
Accept: application/json
Authorization: SKLMAuth userAuthId=139aeh34567m
Success response
Status Code : 200 OK
{"code": "CTGKM2205I","message": "CTGKM2205I IBM Security Guardium Key Lifecycle Manager replication task started successfully."}}
Service request to start the replication task without specifying the configuration file
POST https://localhost:<port>/SKLM/rest/v1/replicate/start
Content-Type: application/json
Accept : application/json
Authorization: SKLMAuth userAuthId=139aeh34567m
Error response
Status Code : 200 OK
{"code": "CTGKM2222E","message": "CTGKM2222E No valid replication 
config file exists."}