設定單條資料集行列許可權配置資訊(新增和更新)。
介面說明
:當前介面僅支援 Quick BI 新版行列許可權模型。若您仍在使用老的行列許可權,請先一鍵遷移至新的行列許可權模型後再調用該介面。一鍵遷移至新的行列許可權模型的操作步驟:在組織管理-->安全配置-->行列許可權升級新版中,單擊一鍵升級,升級至新版行級許可權。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:SetDataLevelPermissionRuleConfig |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RuleModel |
string |
是 |
{
} |
{ "cubeId": "aa574353-41cf-****-8d0d-455176c101fa", "hitTakeEffect": 1, "isOpen": 1, "permissionMode": "COMPLEX", "ruleContentModel": { "ruleContent": { "pathId": [ "264b7a970b" ] }, "ruleContentJson": "{\"pathId\":[\"264b7a970b\"]}", "ruleContentType": "COLUMN_FORBID" }, "ruleId": "3971fa8e-f7e0-****-b6e3-5b3167dd7247", "ruleLevelType": "COLUMN_LEVEL", "ruleName": "rulename", "ruleTargetScope": "ALL" } |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
string |
儲存成功的行列許可權資訊。 |
{ "cubeId": "aa574353-41cf-****-8d0d-455176c101fa", "hitTakeEffect": 1, "isOpen": 1, "permissionMode": "COMPLEX", "ruleContentModel": { "ruleContent": { "pathId": [ "264b7a970b" ] }, "ruleContentJson": "{\"pathId\":[\"264b7a970b\"]}", "ruleContentType": "COLUMN_FORBID" }, "ruleId": "3971fa8e-f7e0-****-b6e3-5b3167dd7247", "ruleLevelType": "COLUMN_LEVEL", "ruleName": "name", "ruleTargetScope": "ALL" } |
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": "{\n \"cubeId\": \"aa574353-41cf-****-8d0d-455176c101fa\",\n \"hitTakeEffect\": 1,\n \"isOpen\": 1,\n \"permissionMode\": \"COMPLEX\",\n \"ruleContentModel\": {\n \"ruleContent\": {\n \"pathId\": [\n \"264b7a970b\"\n ]\n },\n \"ruleContentJson\": \"{\\\"pathId\\\":[\\\"264b7a970b\\\"]}\",\n \"ruleContentType\": \"COLUMN_FORBID\"\n },\n \"ruleId\": \"3971fa8e-f7e0-****-b6e3-5b3167dd7247\",\n \"ruleLevelType\": \"COLUMN_LEVEL\",\n \"ruleName\": \"name\",\n \"ruleTargetScope\": \"ALL\"\n}",
"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 | CubePermission.ColumnlevelField.Repeat | There are duplicate field configurations. | 有重複的欄位配置。 |
| 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. | 資料集模型不屬於當前組織。 |
| 400 | PathId.NotExist.Error | The cube field does not exist ,path id: %s. | 資料集欄位不存在,欄位id:%s。 |
| 400 | Cannot.Support.MultipleDatasource | The current user tag table fields come from multiple tag tables, and separate calculations for multiple rows are not allowed. | 目前使用者標籤表欄位來自於多個標籤表,不允許使用多行分別計算。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。