Getting external CipherTrust Manager Domains
Use the post /v1/cckm/external-cm/get-domains
API to fetch the list of domains from an external CipherTrust Manager. These domains can then be added to the CipherTrust Manager and managed through CCKM.
Syntax
curl -k '<IP>/api/v1/cckm/external-cm/get-domains' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
connection | string | Name or ID of the external CipherTrust Manager connection. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/external-cm/get-domains' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI0MmFmZDExNy02YzllLTRhNGUtOTAwYS1lYjlhNDNjYWE5ZDIiLCJzdWIiOiJsb2NhbHwzMTI5ODdkMS0wOWNiLTQxZTEtOThmNy1jZjRhNzgwNTZiMTMiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNDVmOWE3NWUtMzI1NC00NWJkLWE0NzYtOWU2NWUyNjdmNGVkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjdiYzNkOWM4LWRiYTQtNDVmMy05YWNiLWI3NGM2MzQyYzYyMCIsImlhdCI6MTYxNDc1MTg1MSwiZXhwIjoxNjE0NzUyMTUxfQ.ahdxfM7-WA4u7sotHy6qelc9MkoZytst7oZWsvE7Cr0' -H 'Content-Type: application/json' --data-binary $'{\n "connection": "cm-ext-connection"\n}' --compressed
Example Response
{
"skip": 0,
"limit": 10,
"total": 6,
"current_domain": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "root"
},
"resources": [
{
"id": "813d65ec-f2c1-41f8-b4d2-378252c72a39",
"name": "d3-insidedomain2"
},
{
"id": "00a8b1f3-d1e3-4991-bca1-a360fcf994cf",
"name": "d2-insidedomain"
},
{
"id": "0abcee27-0d07-420a-aa60-198259bbf996",
"name": "d3-insided2"
},
{
"id": "dfced667-0977-4d58-813e-ae26ec49336c",
"name": "domain2"
},
{
"id": "0c78b1c9-486e-41fd-ad1d-b80912342073",
"name": "domain"
},
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "root"
}
]
}
The output shows the list of available external CipherTrust Manager domains linked with the specified external CipherTrust Manager connection. You can now add these external CipherTrust Manager domains to CCKM using their IDs (for example, "id": 1385
). Refer to Adding external CipherTrust Manager Domains for details.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.