注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > MOZI权限API

alibaba.mozi.vds.tenant.api.service.orgline (根据组织查询组织汇报线)

根据组织查询组织汇报线

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req GetOrganizationLineRequest 可选 入参
  • └ organization_code
  • String
  • 可选
  • node112
  • 组织code
  • └ tenant_id
  • Number
  • 可选
  • 10000035003
  • 租户id
  • └ need_supervisor
  • Boolean
  • 可选
  • false
  • 负责人

响应参数

名称 类型 示例值 描述
result GetOrganizationLineResult 出参
  • data
  • OrganizationLine
  • 数据
  • organizations
  • Organization []
  • 组织列表
  • └ organization_code
  • String
  • 组织code
  • └ organization_name
  • String
  • 组织名称
  • supervisors
  • Employee []
  • 负责人
  • └ employee_code
  • String
  • 负责人code
  • └ success
  • Boolean
  • 是否成功
  • └ request_id
  • String
  • 请求id
  • └ response_message
  • String
  • 返回信息
  • └ response_meta_data
  • String
  • 返回信息
  • └ response_code
  • String
  • 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMoziVdsTenantApiServiceOrglineRequest req = new AlibabaMoziVdsTenantApiServiceOrglineRequest();
AlibabaMoziVdsTenantApiServiceOrglineRequest.GetOrganizationLineRequest obj1 = new AlibabaMoziVdsTenantApiServiceOrglineRequest.GetOrganizationLineRequest();
obj1.setOrganizationCode("node112");
obj1.setTenantId(10000035003L);
obj1.setNeedSupervisor(false);
req.setReq(obj1);
AlibabaMoziVdsTenantApiServiceOrglineResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mozi_vds_tenant_api_service_orgline_response>
    <result>
        <data>
            <organizations>
                <organization>
                    <organization_code></organization_code>
                    <organization_name></organization_name>
                    <supervisors>
                        <employee>
                            <employee_code></employee_code>
                        </employee>
                    </supervisors>
                </organization>
            </organizations>
        </data>
        <success></success>
        <request_id></request_id>
        <response_message></response_message>
        <response_meta_data></response_meta_data>
        <response_code></response_code>
    </result>
</alibaba_mozi_vds_tenant_api_service_orgline_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

返回
顶部