連線至 Active Directory 網域
產品版本:10.11
最後修改日期:2024年7月31日
連線至 AD 網域。
注意!!!
若 NAKIVO Backup & Replication 是以多租戶模式安裝的,則僅有主租戶可使用 API。
終點
https://<Director_IP_address>:4443/c/router
請求範例
curl --request POST \
--url https://<Director_IP_address>:4443/c/router \
--header "content-type: application/json" \
--cookie cookies.txt \
--data '{
"action": "ADDomainManagement",
"method": "connectAD",
"data": [{
"domainName": "adtestvn.local",
"preferredDc": "10.30.30.1",
"username": "administrator",
"password": "password",
"integratedGroups": "users,domain users"}],
"type": "rpc",
"tid": 1}'
請求欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
|
|
字串 |
|
|
|
字串 |
|
|
|
陣列 |
包含一個元素的陣列:AD 網域連線設定。請參閱下方的資料表 |
|
|
字串 |
|
|
|
整數 |
|
資料
|
領域 |
價值 |
Description |
|---|---|---|
|
|
字串 |
AD 網域 |
|
|
字串 |
首選 DC/主機(可選) |
|
|
字串 |
使用者名稱 |
|
|
字串 |
密碼 |
|
|
字串 |
要整合的 AD 群組清單,以逗號分隔,例如: |
回應範例
{
"action": "ADDomainManagement",
"method": "connectAD",
"tid": "1",
"type": "rpc",
"message": null,
"where": null,
"cause": null,
"data": true
}
回應欄位
|
領域 |
類型 |
值(們) |
|---|---|---|
|
|
字串 |
|
|
|
字串 |
|
|
|
字串 |
|
|
|
字串 |
|
|
|
null |
|
where
|
null |
|
cause
|
null |
|
data
|
布林值 | true
|