API v2: User Directory Controllers πΒΆ
Data StructuresΒΆ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only, unique object identifier. |
|
|
string |
yes |
Case-insensitive. Uniqueness is required in the combination of attribute |
|
number {1 - 65535} |
yes |
Value format: port. Uniqueness is required in the combination of attribute |
|
string |
yes |
Uniqueness is required in the combination of attribute |
|
string |
Read-only. Expensive to use. |
|
|
string |
Read-only. Expensive to use. |
|
|
boolean |
yes |
|
|
string |
if |
Value format: x509-certificate. |
|
boolean |
yes |
|
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the UserDirectoryServerModelΒΆ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Get Existing User Directory Controllers ConfigurationΒΆ
Request
Method |
|
Path |
|
GET /api/v2/user_directory/server
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
'https://10.0.214.98/api/v2/user_directory/server'
Response
{
"result": "success",
"user_directory_server": [
{
"id": "9115285645797883905",
"address": "10.0.200.100",
"port": 121,
"user_directory_id": "9115285645797883905",
"user_directory_name": "active-directory-10.0.200.100 [domain: ad.com]",
"user_directory_type": "AD",
"tls_enabled": false,
"paged_mode": true,
"created_at": "2025-05-05 04:51:54.027646-07",
"modified_at": "2025-05-05 04:51:54.027646-07"
}
]
}
Get Controllers Configuration by User Directory IDΒΆ
Request
Method |
|
Path |
|
GET /api/v2/user_directory/<user_directory_id>/server
Example Request
curl -s -k -X GET \
-H 'Authorization:sgfeea6jsaz4mum9su8w61877n1g06sk' \
'https://10.31.87.227/api/v2/user_directory/9115285645797883908/server'
Response
{
"result": "success",
"user_directory_server": [
{
"id": "9115285645797883905",
"address": "10.0.200.100",
"port": 389,
"user_directory_id": "9115285645797883905",
"user_directory_name": "active-directory-10.0.200.100 [domain: ad.com]",
"user_directory_type": "AD",
"tls_enabled": false,
"paged_mode": true,
"created_at": "2025-05-05 04:51:54.027646-07",
"modified_at": "2025-05-05 04:51:54.027646-07"
},
{
"id": "9115285645797883910",
"address": "10.0.232.20",
"port": 389,
"user_directory_id": "9115285645797883908",
"user_directory_name": "ldap-10.0.200.100 [domain: ldap.com]",
"user_directory_type": "LDAP",
"tls_enabled": false,
"paged_mode": true,
"created_at": "2025-05-05 04:51:54.041014-07",
"modified_at": "2025-05-05 04:51:54.041014-07"
}
]
}
Get Controller Configuration by User Directory and Controller IDΒΆ
Request
Method |
|
Path |
|
GET /api/v2/user_directory/<user_directory_id>/server/<id>
Example Request
curl -s -k -X GET \
-H 'Authorization:sgfeea6jsaz4mum9su8w61877n1g06sk' \
'https://10.31.87.227/api/v2/user_directory/9115285645797883908/server/9115285645797883910'
Response
{
"result": "success",
"user_directory_server": [
{
"id": "9115285645797883910",
"address": "10.0.200.100",
"port": 389,
"user_directory_id": "9115285645797883908",
"user_directory_name": "ldap-10.0.200.100 [domain: ldap.com]",
"user_directory_type": "LDAP",
"tls_enabled": false,
"paged_mode": true,
"created_at": "2025-05-05 04:51:54.041014-07",
"modified_at": "2025-05-05 04:51:54.041014-07"
}
]
}
Defining Controller Configuration for Specific User DirectoryΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/user_directory/<id>/server
Example Request
curl -s -k -X POST \
-H 'Authorization:sgfeea6jsaz4mum9su8w61877n1g06sk' \
https://10.31.87.227/api/v2/user_directory/9115285645797883909/server \
-H 'Content-Type: application/json' -d'{"address":"10.0.200.100","port":122,"tls_enabled":false,"paged_mode":true}'
Response
{
"result": "success",
"user_directory_server": {
"id": "9115285645797883911"
}
}
Modify Controller Configuration for Specific User DirectoryΒΆ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
PATCH /api/v2/user_directory/<user_directory_id>/server/<id>
Example Request
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w61877n1g06sk' \
-H 'Content-Type: application/json' \
https://10.31.87.227/api/v2/user_directory/9115285645797883909/server/9115285645797883911 \
-d '{
"tls_enabled": true,
"tls_certificate": "-----BEGIN CERTIFICATE-----\\nMIID...\\n...REDACTED CERTIFICATE DATA...\\n-----END CERTIFICATE-----"
}'
Response
{
"result": "success"
}
Deleting Controller from User Directory ConfigurationΒΆ
Request
Method |
|
Path |
|
DELETE /api/v2//user_directory/<user_directory_id>/server/<id>
Example Request
curl -s -k -X DELETE \
-H 'Authorization:vg1ei6rgo58fsbobr7octp0w3afd9vsm' \
https://10.31.87.227/api/v2/user_directory/9115285645797883908/server/9115285645797883910
Response
{
"result": "success"
}