分享页面

查询可用区关联规格信息

<p><strong>简要描述:</strong> </p> <ul> <li>本接口用于查询可用区关联规格信息。接口请求地址</li></ul> <p><strong>注:</strong></p> <ul> <li>当请求参数 line_no 和 area_no 同时存在,area_no 必须为 line_no 所属线路下的 可用区编号。</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">string</td> <td>线路编号</td> </tr> <tr> <td style="text-align:left">area_no</td> <td style="text-align:left">否</td> <td style="text-align:left">string</td> <td>可用区编号</td> </tr> <tr> <td style="text-align:left">type</td> <td style="text-align:left">否</td> <td style="text-align:left">integer</td> <td>返回值类别取值范围:1:全部;2:规格组;3:规格信息</td> </tr> <tr> <td style="text-align:left">detail</td> <td style="text-align:left">否</td> <td style="text-align:left">integer</td> <td>可用区关联规格,默认值:1取值范围:1:输出;2:不输出</td> </tr> </tbody> </table> <p><strong>输入示例</strong></p> <p> <a href="https://www.qg.net/api/cloud-product/areaSpec?productId=104&amp;type=1">https://www.qg.net/api/cloud-product/areaSpec?productId=104&amp;type=1</a></p> <p><strong>返回示例</strong><br>JSON格式</p> <pre><code> { &quot;RequestId&quot;:&#39;423369C7-AD6F-3GT6-NMJ7-E2RG5N6HG7D3&#39;, &quot;Code&quot;: 0, &quot;Message&quot; : &quot;返回内容&quot; &quot;Data&quot;: { &quot;group_list&quot;:{ &quot;1&quot;:{ &quot;Name&quot;: &quot;标准型S1&quot;, &quot;Group_id&quot;:&quot;D1&quot; }, &quot;2&quot;:{ &quot;Name&quot;: &quot;标准型S2&quot;, &quot;Group_id&quot;:&quot;D2&quot; } }, &quot;spec_list&quot;:{ &quot;1&quot;:{ &quot;Group_id&quot;:&quot;S2&quot;, &quot;Name&quot;: &quot;标准型S2&quot;, &quot;Spec_no&quot;: &quot;S2.SMALL1&quot;, &quot;Cpu&quot;:&quot;1&quot;, &quot;Memory&quot;:&quot;1&quot;, &quot;Systemdisk&quot;:&quot;&quot;, &quot;Datadisk&quot;:&quot;&quot;, &quot;Bandwidth&quot;:&quot;&quot;, &quot;Ip&quot;:&quot;&quot;, &quot;Defense&quot;:&quot;&quot;, &quot;Months&quot;:&quot;&quot;, &quot;Months_rate&quot;:&quot;&quot;, &quot;Buy_status&quot;:&quot;1&quot;, &quot;Upgrade_status&quot;:&quot;1&quot;, }, &quot;2&quot;:{ &quot;Group_id&quot;:&quot;S2&quot;, &quot;Name&quot;: &quot;标准型S2&quot;, &quot;Spec_no&quot;: &quot;S2.SMALL2&quot;, &quot;Cpu&quot;:&quot;1&quot;, &quot;Memory&quot;:&quot;2&quot;, &quot;Systemdisk&quot;:&quot;&quot;, &quot;Datadisk&quot;:&quot;&quot;, &quot;Bandwidth&quot;:&quot;&quot;, &quot;Ip&quot;:&quot;&quot;, &quot;Defense&quot;:&quot;&quot;, &quot;Months&quot;:&quot;&quot;, &quot;Months_rate&quot;:&quot;&quot;, &quot;Buy_status&quot;:&quot;1&quot;, &quot;Upgrade_status&quot;:&quot;1&quot;, } } &quot;detail&quot;:{ &quot;1&quot;:{ &quot;Line_no&quot;:&quot;ap-beijing&quot;, &quot;Area_no&quot;:&quot;ap-beijing-1&quot;, &quot;Group_name&quot;:&quot;标准型S1&quot;, &quot;Group_id&quot;:&quot;S1&quot;, &quot;Spec_name&quot;:&quot;标准型S1&quot;, &quot;Spec_no&quot;:&quot;S1.SMALL2&quot;, &quot;Price&quot;:&quot;&quot; &quot;Cpu&quot; : &quot;1&quot;, &quot;Memory&quot;: &quot;2&quot;, &quot;Trial_time&quot;:&quot;&quot;, &quot;Day_rate&quot;:&quot;&quot;, &quot;Week_rate&quot;:&quot;&quot;, &quot;Months&quot;:&quot;&quot;, &quot;Months_rate&quot;:&quot;&quot;, &quot;Buy_status&quot;:1, &quot;Status&quot;:1, &quot;Upgrade_status&quot;:&quot;&quot;, }, &quot;2&quot;:{ &quot;Line_no&quot;:&quot;ap-beijing&quot;, &quot;Area_no&quot;:&quot;ap-beijing-1&quot;, &quot;Group_name&quot;:&quot;标准型S1&quot;, &quot;Group_id&quot;:&quot;S1&quot;, &quot;Spec_name&quot;:&quot;标准型S1&quot;, &quot;Spec_no&quot;:&quot;S1.MEDIUM2&quot;, &quot;Price&quot;:&quot;&quot; &quot;Cpu&quot; : &quot;2&quot;, &quot;Memory&quot;: &quot;2&quot;, &quot;Trial_time&quot;:&quot;&quot;, &quot;Day_rate&quot;:&quot;&quot;, &quot;Week_rate&quot;:&quot;&quot;, &quot;Months&quot;:&quot;&quot;, &quot;Months_rate&quot;:&quot;&quot;, &quot;Buy_status&quot;:1, &quot;Status&quot;:1, &quot;Upgrade_status&quot;:&quot;&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">group_list</td> <td style="text-align:left">array</td> <td>规格组列表,详情请参考group_list数据结构说明</td> </tr> <tr> <td style="text-align:left">spec_list</td> <td style="text-align:left">array</td> <td>规格信息列表,详情请参考spec_list数据结构说明</td> </tr> <tr> <td style="text-align:left">detail</td> <td style="text-align:left">array</td> <td>可用区关联规格列表,详情请参考detail数据结构说明</td> </tr> </tbody> </table> <ul> <li>group_list数据结构说明</li></ul> <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">Name</td> <td style="text-align:left">string</td> <td>规格组名称</td> </tr> <tr> <td style="text-align:left">Group_id</td> <td style="text-align:left">string</td> <td>规格组编号</td> </tr> </tbody> </table> <ul> <li>spec_list数据结构说明</li></ul> <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">Group_id</td> <td style="text-align:left">string</td> <td>规格组编号</td> </tr> <tr> <td style="text-align:left">Name</td> <td style="text-align:left">string</td> <td>规格名称</td> </tr> <tr> <td style="text-align:left">Spec_no</td> <td style="text-align:left">string</td> <td>规格编号</td> </tr> <tr> <td style="text-align:left">Cpu</td> <td style="text-align:left">integer</td> <td>cpu</td> </tr> <tr> <td style="text-align:left">Memory</td> <td style="text-align:left">decimal</td> <td>内存</td> </tr> <tr> <td style="text-align:left">Systemdisk</td> <td style="text-align:left">int</td> <td>系统盘</td> </tr> <tr> <td style="text-align:left">Datadisk</td> <td style="text-align:left">integer</td> <td>数据盘</td> </tr> <tr> <td style="text-align:left">Bandwidth</td> <td style="text-align:left">integer</td> <td>带宽</td> </tr> <tr> <td style="text-align:left">Ip</td> <td style="text-align:left">integer</td> <td>ip数</td> </tr> <tr> <td style="text-align:left">Defense</td> <td style="text-align:left">integer</td> <td>防御值</td> </tr> <tr> <td style="text-align:left">Buy_status</td> <td style="text-align:left">integer</td> <td>购买状态</td> </tr> <tr> <td style="text-align:left">Upgrade_status</td> <td style="text-align:left">integer</td> <td>升级状态</td> </tr> </tbody> </table> <ul> <li>detail数据结构说明</li></ul> <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">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">Group_name</td> <td style="text-align:left">string</td> <td>规格组名称</td> </tr> <tr> <td style="text-align:left">Group_id</td> <td style="text-align:left">string</td> <td>规格组编号</td> </tr> <tr> <td style="text-align:left">Spec_name</td> <td style="text-align:left">string</td> <td>规格名称</td> </tr> <tr> <td style="text-align:left">Spec_no</td> <td style="text-align:left">string</td> <td>规格编号</td> </tr> <tr> <td style="text-align:left">Price</td> <td style="text-align:left">string</td> <td>销售价格</td> </tr> <tr> <td style="text-align:left">Cpu</td> <td style="text-align:left">integer</td> <td>cpu</td> </tr> <tr> <td style="text-align:left">Memory</td> <td style="text-align:left">decimal</td> <td>内存</td> </tr> <tr> <td style="text-align:left">Trial_time</td> <td style="text-align:left">string</td> <td>试用时间</td> </tr> <tr> <td style="text-align:left">Day_rate</td> <td style="text-align:left">string</td> <td>日付费率</td> </tr> <tr> <td style="text-align:left">Week_rate</td> <td style="text-align:left">string</td> <td>周付费率</td> </tr> <tr> <td style="text-align:left">Months</td> <td style="text-align:left">string</td> <td>可选时长 例如:1,3,6,12,24,36</td> </tr> <tr> <td style="text-align:left">Months_rate</td> <td style="text-align:left">string</td> <td>月付费率 例如:1,3,6,12,24,36</td> </tr> <tr> <td style="text-align:left">Buy_status</td> <td style="text-align:left">integer</td> <td>购买状态 1:开启 0:关闭</td> </tr> <tr> <td style="text-align:left">Upgrade_status</td> <td style="text-align:left">integer</td> <td>升级状态 1:开启 0:关闭</td> </tr> <tr> <td style="text-align:left">Status</td> <td style="text-align:left">integer</td> <td>规格状态 1:开启 0:关闭</td> </tr> </tbody> </table> <p> <strong>备注</strong> </p> <ul> <li>更多返回错误代码请看公共API栏目下的<a href="https://www.qg.net/doc/251.html" title="公共错误代码">公共错误代码</a>文档描述</li></ul>
本文导读