根據行列權限種類,取得資料集行列權限的白名單列表。
介面說明
:目前介面僅支援 Quick BI 新版行列權限模型。若您仍在使用舊的行列權限,請先一鍵遷移至新的行列權限模型後再呼叫該介面。一鍵遷移至新的行列權限模型的操作步驟:在組織管理-->安全設定-->行列權限升級新版中,按一下一鍵升級,升級至新版行級權限。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:ListDataLevelPermissionWhiteList |
list |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| CubeId |
string |
是 |
資料集 ID。 |
3d5db23c-e4f2-49dd-a883-92285b48e14a |
| RuleType |
string |
是 |
白名單所屬的行列權限類型:
|
ROW_LEVEL |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
object |
指定行級權限類型的白名單列表。 |
|
| CubeId |
string |
資料集 ID。 |
7c7223ae-****-3c744528014b |
| RuleType |
string |
資料集行列權限類型。取值範圍:
|
ROW_LEVEL |
| UsersModel |
object |
白名單資訊。 |
|
| UserGroups |
array |
使用者群組 ID 列表。 |
["0d5fb19b-***-1248fc27ca51"] |
|
string |
使用者群組 ID。 |
0d5fb19b-***-1248fc27ca51 |
|
| Users |
array |
Quick BI 使用者的 UserID 列表。 |
["4334***358"] |
|
string |
Quick BI 使用者的 UserID。 |
4334***358 |
|
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": {
"CubeId": "7c7223ae-****-3c744528014b",
"RuleType": "ROW_LEVEL",
"UsersModel": {
"UserGroups": [
"0d5fb19b-***-1248fc27ca51"
],
"Users": [
"4334***358"
]
}
},
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Cube.Not.Exist | The Cube does not exist. | 資料集不存在。 |
| 400 | CubePermission.Columnlevel.VersionError | You are not allowed to use the new dataLevelPermission API. | 沒有權限使用新版行列權限。 |
| 400 | RowLevelPermission.SwitchClose.Error | The row level permission switch must be on. | 對應的列級權限開關必須開啟。 |
| 400 | RowLevelPermission.Rule.NotExsist | The row level permission rule does not exist: %s. | 列級權限規則不存在:%s。 |
| 400 | RowLevelPermission.Rule.NotBelongToCube | The row level permission rule does not belong to the current cube. | 列級權限規則不屬於目前資料集。 |
| 400 | Cube.NotBelongTo.CurrentOrganization | The cube does not belong to the current organization %s. | 資料集模型不屬於目前組織。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。