単一データセットの行と列の権限構成情報 (追加および更新) を設定します。
操作説明
このインターフェイスは、Quick BI の新しい行および列の権限モデルのみをサポートします。古い行および列の権限をまだ使用している場合は、このインターフェイスを呼び出す前に、新しい行および列の権限モデルに移行してください。新しい行および列の権限モデルに移行する手順:[組織管理] --> [セキュリティ設定] --> [新しいバージョンの行および列の権限にアップグレード] で、[ワンクリックアップグレード] をクリックして、新しい行レベルの権限にアップグレードします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
quickbi-public:SetDataLevelPermissionRuleConfig |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RuleModel |
string |
必須 |
{ "rule": "a5bb24da--a891683e14da", // 行および列の権限ルールの ID。指定すると、行レベルの権限ルールが変更されます。指定しない場合は、新しいルールが追加されます。 "cubeId": "7c7223ae--3c744528014b", // データセット ID "ruleName": "Test Row-Level Permission", // 行レベルの権限ルールの名前 "ruleLevelType": "ROW_LEVEL", // 行レベルの権限のタイプ:ROW_LEVEL:行レベルの権限、COLUMN_LEVEL:列レベルの権限 "ruleTargetScope": "ALL", // 行レベルの権限ルールの対象ユーザー:1:全員、2:特定のユーザー "hitTakeEffect": 1, // ヒット後にルールが有効になるかどうか (列レベルの権限の場合):1:有効 (デフォルト)、0:無効 "ruleUsersModel": { "userGroups": [ "9bd2c6440ac542589f16bf12ca8178dd", // 対象ユーザーグループのユーザーグループ ID "0d5fb19b--1248fc27ca51", "3d2c23d4--f6390f325c2d" ], "users": [ "433423784358", // 対象ユーザーのユーザー ID "Huang2e3fa822" ] }, "ruleContentModel": { "ruleContentType": "ROW_FIELD", // 行および列の権限ルールのタイプ "ruleContentJson": "{"conditionNode":{"caption":"Period","isMeasure":false,"pathId":"7d3bbc6","relationOperator":"not-null","name":"7d3bbc6","value":{"value":[""],"valueType":"ENUM"}}}", // ルールの JSON 文字列 "ruleOriginConfigJson": "{"operator":"and","operands":[{"labelName":"Period","isValid":true,"uniqueId":"5","fieldId":"7d3b***bc6","error":false,"fieldType":"string","defaultValue":{"selectType":"condition","value":{"conditionOp":"not-null","conditionValue":""},"valueType":"ENUM"}}],"isRelation":true}" // フロントエンドテンプレートで使用される JSON 結果 (行レベルの権限に固有) } } |
{ "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 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. | |
| 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. | |
| 400 | Cannot.Support.MultipleDatasource | The current user tag table fields come from multiple tag tables, and separate calculations for multiple rows are not allowed. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。