REST API
The REST API is hosted at this base URL: https://{addr}/api/v1
The specification is available here.
You can use the REST interface via curl, or from the "API playground".
To copy and paste the following example commands, set an environment variable to point to your CipherTrust Manager instance:
For example, this command will use the root admin's credentials to create an API token:
Note
By default, this command creates a token for the root domain. You can specify a child domain to log in to with "{\"name\":\"domain_user\",\"password\":\"domain_user_password\", \"domain\":\"domain_name\"}"
The response:
Copy the value of the jwt property into another environment variable:
Using the jq tool, we can fetch, extract, and export the token in a single shell command:
We can use that API token to make other calls: