SAAS HIVE596认证授权方案

API文档


用户组织

<p>[TOC]</p> <h3>功能介绍:</h3> <ul> <li>获取全部用户组织信息</li> </ul> <h3>接口约束:</h3> <ul> <li>无</li> </ul> <h3>URI:</h3> <p><code>GET {{baseUrl}}/auth/authentication/organizations</code> </p> <h3>请求消息:</h3> <p><strong>请求头</strong> 请求头如表1所示。 表1 请求参数:</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">sobeycloud-token</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户token</td> </tr> <tr> <td style="text-align: left;">sobeycloud-site</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>用户站点(签名方式必填)</td> </tr> </tbody> </table> <p><strong>请求参数</strong> 请求参数如表2所示。</p> <p>表2 请求参数:</p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">--</td> <td style="text-align: left;">--</td> <td style="text-align: left;">--</td> <td>--</td> </tr> </tbody> </table> <h3>请求示例:</h3> <pre><code>GET /auth/authentication/organizations sobeycloud-site: S1 sobeycloud-token: SjUAxwMUwkpuY+CNt1daEMoVAVE= </code></pre> <hr /> <h3>响应消息:</h3> <p><strong>响应参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">--</td> <td style="text-align: left;">--</td> <td>--</td> </tr> </tbody> </table> <h3>响应示例:</h3> <p><strong>响应成功示例</strong> </p> <pre><code>{ "code": "0", "msg": null, "ext": { "page": 1, "total": -1, "results": [ { "id": 2, "operate": 0, "organizationcode": "46349561c9d54f939122d12b78575eec", "organizationname": "Test1", "parentid": 1, "sitecode": "S1", "sitename": null, "extendAttributes": null }, { "id": 1, "operate": 0, "organizationcode": "Daaa", "organizationname": "全部", "parentid": -1, "sitecode": "S1", "sitename": null, "extendAttributes": null } ], "size": 100 } }</code></pre> <p><strong>响应失败示例</strong> </p> <pre><code> { "code": "Auth.0014", "msg": "系统内部错误" }</code></pre> <hr /> <h3>错误码</h3> <p>参考 <a href="https://www.showdoc.com.cn/mbhauth/7655637558569867" title="错误码说明">错误码说明</a></p> <h3>状态码</h3> <p>参考 <a href="https://www.showdoc.com.cn/mbhauth/7655637558569867" title="状态码说明">状态码说明</a></p>

页面列表

ITEM_HTML