分享页面

查询可用区关联宿主机列表

<p><strong>简要描述:</strong> </p> <ul> <li>本接口用于获取云服务器-宿主机列表。接口请求地址</li></ul> <p><strong>参数:</strong> </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">productId</td> <td style="text-align:left">是</td> <td style="text-align:left">integer</td> <td>品牌编号</td> </tr> <tr> <td style="text-align:left">line_no</td> <td style="text-align:left">否</td> <td style="text-align:left">varchar</td> <td>线路编号</td> </tr> <tr> <td style="text-align:left">area_no</td> <td style="text-align:left">否</td> <td style="text-align:left">varchar</td> <td>可用区编号</td> </tr> <tr> <td style="text-align:left">host_id</td> <td style="text-align:left">否</td> <td style="text-align:left">integer</td> <td>宿主机ID查询单台宿主机详情 为必传参数</td> </tr> </tbody> </table> <p> <strong>输入示例:</strong> </p> <ul> <li><a href="https://www.qg.net/api/cloud-product/getHostList?productId=value&amp;area_no=value">https://www.qg.net/api/cloud-product/getHostList?productId=value&amp;area_no=value</a></li></ul> <p> <strong>返回示例</strong></p> <pre><code> { &quot;RequestId&quot;: &quot;4C467B38-3910-447D-87BC-AC049166F216&quot;, &quot;Code&quot;: 0, &quot;Message&quot; : &quot;返回内容&quot; &quot;Data&quot;: { &quot;1&quot;:{ &quot;Id&quot;: &quot;1&quot;, &quot;Line_no&quot;: &quot;xxx&quot;, &quot;Area_no&quot;: &quot;xxxxx&quot;, &quot;Name&quot;: &quot;香港BGP2&quot;, &quot;Remaining_num&quot;: &quot;1000&quot;, &quot;Ip_status&quot;:&quot;1&quot;, &quot;Broadband_statu&quot;:&quot;1&quot;, &quot;Status&quot;:&quot;1&quot; }, &quot;2&quot;:{ &quot;Id&quot;: &quot;1&quot;, &quot;Line_no&quot;: &quot;xxx&quot;, &quot;Area_no&quot;: &quot;xxxxx&quot;, &quot;Name&quot;: &quot;香港BGP3&quot;, &quot;Remaining_num&quot;: &quot;1000&quot;, &quot;Ip_status&quot;:&quot;1&quot;, &quot;Broadband_statu&quot;:&quot;1&quot;, &quot;Status&quot;:&quot;1&quot; } }, &quot;totalremainnum&quot;:&quot;2000&quot; } </code></pre><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">RequestId</td> <td style="text-align:left">string</td> <td>请求编号</td> </tr> <tr> <td style="text-align:left">Code</td> <td style="text-align:left">integer</td> <td>状态码</td> </tr> <tr> <td style="text-align:left">Message</td> <td style="text-align:left">string</td> <td>返回内容</td> </tr> <tr> <td style="text-align:left">Id</td> <td style="text-align:left">integer</td> <td>宿主机id</td> </tr> <tr> <td style="text-align:left">Line_no</td> <td style="text-align:left">string</td> <td>线路编号</td> </tr> <tr> <td style="text-align:left">Area_no</td> <td style="text-align:left">string</td> <td>可用区编号</td> </tr> <tr> <td style="text-align:left">Name</td> <td style="text-align:left">varchar</td> <td>宿主机名称</td> </tr> <tr> <td style="text-align:left">Remaining_num</td> <td style="text-align:left">integer</td> <td>剩余主机数目</td> </tr> <tr> <td style="text-align:left">Ip_status</td> <td style="text-align:left">string</td> <td>IP状态。取值范围:normal:资源充足,剩余IP大于100 [0,99]:剩余 IP具体数值</td> </tr> <tr> <td style="text-align:left">Broadband_statu</td> <td style="text-align:left">string</td> <td>宽带状态。取值范围:normal:资源充足,剩余宽带大于100 [0,99]:剩余宽带具体数值</td> </tr> <tr> <td style="text-align:left">Yotalremainnum</td> <td style="text-align:left">integer</td> <td>剩余总数</td> </tr> <tr> <td style="text-align:left">Status</td> <td style="text-align:left">integer</td> <td>宿主机状态:0:禁用,1:正常</td> </tr> </tbody> </table> <p> <strong>备注</strong> </p> <ul> <li>更多返回错误代码请看公共API栏目下的<a href="https://www.qg.net/doc/251.html" title="公共错误代码">公共错误代码</a>文档描述</li></ul>
本文导读