Encrypt Application
/essbase/rest/v1/applications/{applicationName}/encrypt
To prevent unauthorized access to the Essbase application, encrypt it. Only logged in Essbase users can access encrypted applications.
OCID encryption type is available for Essbase stack deployments on Oracle Cloud Infrastructure via Marketplace. This encryption type uses Oracle OCI Vault, a service that securely stores and manages master encryption keys and secrets.
For type, enter OCID
. For vaultId, enter the OCID of the Vault. For masterKeyId, enter the OCID of the Master Encryption Key.
See Also
Request
-
applicationName(required): string
Application name.
Encryption Key.
object
-
key:
array key
-
masterKeyId(required):
string
Required for OCID encryption type. The OCID of the Master Encryption Key (MEK) in the Oracle Vault in OCI.
-
type(required):
string
The supported encryption type. The only supported value is
OCID
, representing Oracle Vault key management. -
vaultId(required):
string
Required for OCID encryption type. The OCID of the Oracle Vault in OCI.
Response
- text/plain
- application/json
- application/xml
200 Response
SUCCESS
Encryption applied on the application.
400 Response
FAILURE
Failed to apply encryption on the application.
415 Response
FAILURE
Failed to apply encryption on the application.
500 Response
FAILURE
Failed to apply encryption on the application.
Examples
The following example shows how to encrypt an Essbase application.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X POST -i https://192.0.2.100/essbase/rest/v1/applications/Sample_Dynamic/encrypt -H "Content-Type: application/json" --data "@./appEncryption.json" -u %User%:%Password%
Example of JSON Payload
The following are the contents of appEncryption.json
passed in the cURL example above. Replace the values for vaultId
and masterKeyId
with your OCI Vault OCID and master encryption key OCID.
{
"type": "OCID",
"vaultId": "ocid1.vaultid.oc1..<unique_ID>",
"masterKeyId": "ocid1.keyId.oc1..<unique_ID>"
}