Use the GET method to view the secret key properties for a KSS keystore. If the keystore is password-protected, you must provide Base64-encoded header values for the keystore and key passwords.
The following table summarizes the GET request parameters.
Name | Description | Type |
---|---|---|
keyAlias |
Alias of the secret key. | Query |
keystoreName |
Name of the keystore. | Query |
stripeName |
Name of the stripe. | Query |
Media Types: | application/json |
The response body contains information about the certificate, including:
Attribute | Description |
---|---|
"Property n " |
List of secret key properties, where n serves as an index that starts at 1 and is incremented by 1 for each additional property. |
The following example shows how to view all certificates for an alias by submitting a GET request on the REST resource using cURL.
curl -i -X GET -u username:password -H keystorePassword:bXlQd2Q= -H keyPassword:bXlLZXlQd2Q= http://myhost:7001/idaas/platform/admin/v1/keystoreservice/secretkey?"stripeName=myStripe&keystoreName=myKeystore&keyAlias=myKeyAlias"
The following shows an example of the response header. For more about the HTTP status codes, see "HTTP Status Codes for HTTP Methods."
HTTP/1.1 200 OK
The following shows an example of the response body in JSON format.
{ "Property 1":"DES" }