REST Interface
Using REST Interface
Use the REST interface from the API playground or through any REST client such as curl. The REST interface acquires an authorization token internally and uses it for making API calls.
Accessing API Playground
The embedded API Guide shares authentication with the CipherTrust Web UI. To authenticate to both the API Guide and the CipherTrust Web UI, visit https://${cm}_or_hostname> in a web browser. Alternatively, click the Log In link in the top right corner of the API Guide. Specify the username and password to authenticate the local user to the root domain. After login, the API Guide is accessible through the API button in the upper right corner.
You are logged out after 10 minutes of inactivity with the API Guide open. If you close the browser window, you are logged out after 30 minutes of your last login.
Making an API Call
To make an API call, find the API in the left pane and click it. In the right pane, specify the required parameters, and click an appropriate button (for example, POST, GET, DELETE, or Curl). For example, to create a Protection Policy on the CipherTrust Manager:
-
In the left pane of the API playground, click Data Protection/Protection Policies.
-
Under Protection Policies, click Create. The Create section of the API playground is displayed in the right pane.
-
In the body field, specify required parameters with their values, as shown below.
{ "name": "HR", "app_connector_type": "CAKM for Oracle TDE", "configurations": { "log_level": "WARN", "symmetric_key_cache_expiry": 43200, "heartbeat_interval": 300, "heartbeat_timeout_count": 5 }, "groups": [ "HR_group" ] }Expand schema under the body field for names and types of fields. Hover your mouse over each field to view its description. The parameter names and casing in the body field must match with those shown in the schema. Also, ensure that parameters and their values are specified in double quotes.
-
Click POST.
Alternatively, to get an equivalent
curlcommand, click the Curl button. Thecurlequivalent will be shown in the text field below. Use thecurltool to run the command to make the REST API call.Similarly, all API calls can be made by referring to the schema shown in the playground.