GenerateKeyVersion
This API creates a version of the key.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/key/generatekeyversion
Input Parameters
Parameters | Description |
---|---|
userName | User name (optional). |
password | Password associated with the user (optional). |
keyName | Name of the key for which version is to be generated. |
certAlias | Client certificate alias for making SSL connections (optional). |
certPass | Password for the provided certificate alias (optional). |
Sample REST call for cxf
request
{
"GenerateKeyVersion": {
"userName": "NewUser",
"password": "asdf1234",
"keyName": "GenVersionofKey"
}
}
response
{
"GenerateKeyVersionResponse": {
"generateKeyVersionResponse": true
}
}
Sample SOAP Parameters
<prot:GenerateKeyVersion>
<userName>NewUser</userName>
<password>asdf1234</password>
<keyName>GenVersionofKey</keyName>
</prot:GenerateKeyVersion>
Output
boolean – indicate if key version generation was successful.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:GenerateKeyVersionResponse xmlns:ns2="http://dsws.org/protectappws/">true</ns2:GenerateKeyVersionResponse>
</soap:Body>
</soap:Envelope>