文档中心 > API类目 > 智慧园区API

alibaba.campus.component.getall (获取规则中心所有组件)

获取所有可用的组件信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result PojoResult result
  • └ content
  • String
  • {"component":{"actions":[],"allowedChange":false,"attributes":[{"allowedChange":false,"code":"p1","display":true,"flags":"IN|EXECUTE_ON_CHANGE|FROZEN","name":"显示名P1","orderNum":1,"paramType":"Number"},{"allowedChange":false,"code":"p2","flags":"IN|EXECUTE_ON_CHANGE|FROZEN","name":"显示名P2","orderNum":1,"paramType":"Number"},{"allowedChange":false,"code":"p3","flags":"OUT|FROZEN","orderNum":1,"paramType":"Number"}],"author":"default","classDefine":"com.alibaba.comp.AddComponent","cloud":false,"code":"add","custom":false,"description":"","enName":"","name":"add","originId":"system","properties":[{"allowedChange":false,"code":"pp1","defaultValue":0,"name":"显示名p1","orderNum":1,"paramType":"Boolean"},{"allowedChange":false,"code":"pp2","defaultValue":0,"name":"显示名p2","orderNum":1,"paramType":"Number"}],"runTimeEnvironment":"akka","type":"rule","version":"1.0"}}
  • content
  • └ request_id
  • String
  • 1
  • requestId
  • └ error_code
  • String
  • 500
  • errorCode
  • └ error_msg
  • String
  • 成功
  • errorMsg
  • └ success
  • Boolean
  • true
  • success
  • └ error_level
  • String
  • 1
  • errorLevel
  • └ error_ext_info
  • String
  • 1
  • errorExtInfo

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusComponentGetallRequest req = new AlibabaCampusComponentGetallRequest();
AlibabaCampusComponentGetallResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_component_getall_response>
    <result>
        <content>{&quot;component&quot;:{&quot;actions&quot;:[],&quot;allowedChange&quot;:false,&quot;attributes&quot;:[{&quot;allowedChange&quot;:false,&quot;code&quot;:&quot;p1&quot;,&quot;display&quot;:true,&quot;flags&quot;:&quot;IN|EXECUTE_ON_CHANGE|FROZEN&quot;,&quot;name&quot;:&quot;显示名P1&quot;,&quot;orderNum&quot;:1,&quot;paramType&quot;:&quot;Number&quot;},{&quot;allowedChange&quot;:false,&quot;code&quot;:&quot;p2&quot;,&quot;flags&quot;:&quot;IN|EXECUTE_ON_CHANGE|FROZEN&quot;,&quot;name&quot;:&quot;显示名P2&quot;,&quot;orderNum&quot;:1,&quot;paramType&quot;:&quot;Number&quot;},{&quot;allowedChange&quot;:false,&quot;code&quot;:&quot;p3&quot;,&quot;flags&quot;:&quot;OUT|FROZEN&quot;,&quot;orderNum&quot;:1,&quot;paramType&quot;:&quot;Number&quot;}],&quot;author&quot;:&quot;default&quot;,&quot;classDefine&quot;:&quot;com.alibaba.comp.AddComponent&quot;,&quot;cloud&quot;:false,&quot;code&quot;:&quot;add&quot;,&quot;custom&quot;:false,&quot;description&quot;:&quot;&quot;,&quot;enName&quot;:&quot;&quot;,&quot;name&quot;:&quot;add&quot;,&quot;originId&quot;:&quot;system&quot;,&quot;properties&quot;:[{&quot;allowedChange&quot;:false,&quot;code&quot;:&quot;pp1&quot;,&quot;defaultValue&quot;:0,&quot;name&quot;:&quot;显示名p1&quot;,&quot;orderNum&quot;:1,&quot;paramType&quot;:&quot;Boolean&quot;},{&quot;allowedChange&quot;:false,&quot;code&quot;:&quot;pp2&quot;,&quot;defaultValue&quot;:0,&quot;name&quot;:&quot;显示名p2&quot;,&quot;orderNum&quot;:1,&quot;paramType&quot;:&quot;Number&quot;}],&quot;runTimeEnvironment&quot;:&quot;akka&quot;,&quot;type&quot;:&quot;rule&quot;,&quot;version&quot;:&quot;1.0&quot;}}</content>
        <request_id>1</request_id>
        <error_code>500</error_code>
        <error_msg>成功</error_msg>
        <success>true</success>
        <error_level>1</error_level>
        <error_ext_info>1</error_ext_info>
    </result>
</alibaba_campus_component_getall_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

返回
顶部