Client Group Import REST Service

Use the Client Group Import REST Service to import client group data into IBM Security Guardium Key Lifecycle Manager server from the export file. The export file is an encrypted archive that contains client group data from a different instance of IBM Security Guardium Key Lifecycle Manager.

Operation
POST
URL
https://host:port/SKLM/rest/v1/clientImport/importClientGroup

By default, Guardium Key Lifecycle Manager server listens to the secure port 9443 (HTTPS) for communication. During IBM Security Guardium Key Lifecycle Manager installation, you can modify this default port.

Request

Request Parameters
Parameter Description
host Specify the IP address or hostname 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.
Request body

JSON object with the following specification:

Property name Description
importFilePath Specifies the location of the export file that contains client group data for importing into the current instance of IBM Security Guardium Key Lifecycle Manager.
password Specifies the password that was used to encrypt the export file for importing and decrypting client group data into the current instance of IBM Security Guardium Key Lifecycle Manager.

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 status property.
status Returns the status to indicate whether the client group data is imported into IBM Security Guardium Key Lifecycle Manager from the export file with an appropriate message.
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 import client group data
POST https://localhost:<port>/SKLM/rest/v1/clientImport/importClientGroup
Content-Type: application/json
Accept: application/json
Authorization: SKLMAuth userAuthId=805afe85-6f73-4034-a02f-4d7f65dbf1f8
{"importFilePath": "${SKLM_DATA}\\sklm_v4.2.1.0_20230809172524+0530_export.exp", 
"password": "SKLM@admin123"}
Success response
Status Code : 200 OK
{"code": 0,
 "status": "CTGKM2908I Import operation succeeded. Please restart the server for changes to come into effect.",
 "messageId": "CTGKM2908I"}
Error response
Status Code : 400 Bad Request
{"code": 2,
 "status": "CTGKM6263E Import operation failed due to an error. Check the logs for more information.",
 "messageId": "CTGKM6263E"}