alibaba.airbi.cubeauth.sync.rule (alibaba.airbi.cubeauth.sync.rule)

同步数据集行权限规则(create|update)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
rpc_context RpcContext 可选 基础参数
  • └ tenant_id
  • String
  • 可选
  • 1000
  • 租户ID
  • └ time_zone
  • String
  • 可选
  • Asia/Shanghai
  • 时区
  • └ app_access_key
  • String
  • 可选
  • app_access_key
  • 应用访问KEY
  • └ app_code
  • String
  • 可选
  • app_code
  • 应用code
  • └ locale
  • String
  • 可选
  • en
  • 语言
  • operator
  • UserInfo
  • 可选
  • 人员信息
  • 人员信息
  • └ work_no
  • String
  • 可选
  • 00001
  • 工号
  • └ auth_provider
  • String
  • 可选
  • mozi
  • 登陆态
  • └ corp_id
  • String
  • 可选
  • corp_id
  • 企业id
cube_code String 可选 cubeCode 数据集编码
cube_rule CubeRule 可选 权限规则
  • └ rule_id
  • Number
  • 可选
  • ruleId
  • 规则ID
  • └ rule_name
  • String
  • 可选
  • ruleName
  • 规则名称
  • condition_list
  • Condition []
  • 可选
  • conditionList
  • 条件列表,AND关系
  • └ field_code
  • String
  • 可选
  • fieldCode
  • 字段编码
  • └ operator_type
  • String
  • 可选
  • operatorType
  • 操作符,如:EqualTo/In/Like
  • └ value_type
  • String
  • 可选
  • valueType
  • 值绑定类型,如: VARIABLE,CONSTANT,ALL
  • └ variable_code
  • String
  • 可选
  • variableCode
  • 变量代码
  • └ constant_values
  • String
  • 可选
  • constantValues
  • 常量值(多值逗号隔开)

响应参数

名称 类型 示例值 描述
result RpcResult result 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • Number
  • 1000
  • 错误编码
  • └ error_msg
  • String
  • error_msg
  • 错误信息
  • └ content
  • Number
  • content
  • content

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAirbiCubeauthSyncRuleRequest req = new AlibabaAirbiCubeauthSyncRuleRequest();
AlibabaAirbiCubeauthSyncRuleRequest.RpcContext obj1 = new AlibabaAirbiCubeauthSyncRuleRequest.RpcContext();
obj1.setTenantId("1000");
obj1.setTimeZone("Asia/Shanghai");
obj1.setAppAccessKey("app_access_key");
obj1.setAppCode("app_code");
obj1.setLocale("en");
AlibabaAirbiCubeauthSyncRuleRequest.UserInfo obj2 = new AlibabaAirbiCubeauthSyncRuleRequest.UserInfo();
obj2.setWorkNo("00001");
obj2.setAuthProvider("mozi");
obj2.setCorpId("corp_id");
obj1.setOperator(obj2);
req.setRpcContext(obj1);
req.setCubeCode("cubeCode");
AlibabaAirbiCubeauthSyncRuleRequest.CubeRule obj3 = new AlibabaAirbiCubeauthSyncRuleRequest.CubeRule();
obj3.setRuleId(ruleIdL);
obj3.setRuleName("ruleName");
List<AlibabaAirbiCubeauthSyncRuleRequest.Condition> list5 = new ArrayList<AlibabaAirbiCubeauthSyncRuleRequest.Condition>();
AlibabaAirbiCubeauthSyncRuleRequest.Condition obj6 = new AlibabaAirbiCubeauthSyncRuleRequest.Condition();
list5.add(obj6);
obj6.setFieldCode("fieldCode");
obj6.setOperatorType("operatorType");
obj6.setValueType("valueType");
obj6.setVariableCode("variableCode");
obj6.setConstantValues("constantValues");
obj3.setConditionList(list5);
req.setCubeRule(obj3);
AlibabaAirbiCubeauthSyncRuleResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_airbi_cubeauth_sync_rule_response>
    <result>
        <success>true</success>
        <error_code>1000</error_code>
        <error_msg>error_msg</error_msg>
        <content>content</content>
    </result>
</alibaba_airbi_cubeauth_sync_rule_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部