forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
898 lines
80 KiB
HTML
898 lines
80 KiB
HTML
<a name="EN-US_TOPIC_0000002268726281"></a><a name="EN-US_TOPIC_0000002268726281"></a>
|
|
|
|
<h1 class="topictitle1">Creating a model</h1>
|
|
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000002268726281__section11778341425"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000002268726281__p1318303404218">Import a meta model to create a model.</p>
|
|
<p id="EN-US_TOPIC_0000002268726281__p518317349425">The execution code and model must be uploaded to OBS first. By default, the model generated by a training job is stored in OBS.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section5183113418427"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0000002268726281__p1318412345424">The body parameter requirements for importing a model using a template are different from those for importing a model without using a template. In the following body parameters, <strong id="EN-US_TOPIC_0000002268726281__b2184133454212">template parameters</strong> indicate the parameters that can be configured when a model is imported using a template, <strong id="EN-US_TOPIC_0000002268726281__b151841534124217">non-template parameters</strong> indicate the parameters that can be configured when a model is imported without using a template, and <strong id="EN-US_TOPIC_0000002268726281__b1184934154213">public parameters</strong> indicate the parameters that are irrelevant to the model import mode.</p>
|
|
<ul id="EN-US_TOPIC_0000002268726281__ul10184173414421"><li id="EN-US_TOPIC_0000002268726281__li11184183412426"><p id="EN-US_TOPIC_0000002268726281__p14184123484218"><a name="EN-US_TOPIC_0000002268726281__li11184183412426"></a><a name="li11184183412426"></a>When a model is imported using a template (<strong id="EN-US_TOPIC_0000002268726281__b141851934184217">model_type</strong> is set to <strong id="EN-US_TOPIC_0000002268726281__b61851034184217">Template</strong>), the <strong id="EN-US_TOPIC_0000002268726281__b3185734114218">template</strong> field is mandatory and the <strong id="EN-US_TOPIC_0000002268726281__b12185113414210">source_location</strong> field does not need to be configured.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726281__li9185143411421"><p id="EN-US_TOPIC_0000002268726281__p19185103444210"><a name="EN-US_TOPIC_0000002268726281__li9185143411421"></a><a name="li9185143411421"></a>If a model is imported without using a template (<strong id="EN-US_TOPIC_0000002268726281__b11851134144210">model_type</strong> is not set to <strong id="EN-US_TOPIC_0000002268726281__b11851334134218">Template</strong>), <strong id="EN-US_TOPIC_0000002268726281__b12185133434213">source_location</strong> is mandatory and <strong id="EN-US_TOPIC_0000002268726281__b81851034194220">template</strong> does not need to be configured.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section218618347421"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000002268726281__p1618612349426">POST /v1/{project_id}/models</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__table13187193474216" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row12187134154219"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p181877347421">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p1518853414212">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p6188734114213">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p121881034104218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row19187163474218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1318843417429">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1918919345423">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p12189434184217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p141901834114210">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section15190173424215"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row2191163410422"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p11192534204214">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p61921346422">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p1919263464210">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p13193123416421">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row4191934144218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p191935341429">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p91931134154215">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1919433420429">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p819413415424">User token. It can be obtained by calling the IAM API that is used to obtain a user token. The value of <strong id="EN-US_TOPIC_0000002268726281__b161941134174214">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequest" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row91961134174220"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p8201183418423">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p112011334174217">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p102025348427">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p220217345422">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row319611347427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p6202183404214">model_docs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p020253413421">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p15202634194217">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_GuideDoc">GuideDoc</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p720323416429">List of model description documents. A maximum of three documents are supported. <strong id="EN-US_TOPIC_0000002268726281__b1620393444217">Common parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row10196163454212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p112031134164216">template</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1020393410424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p19203734184219"><a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelTemplate">ModelTemplate</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p18204173474217">Configuration items in a template. This parameter is mandatory when <strong id="EN-US_TOPIC_0000002268726281__b12204334184211">model_type</strong> is set to <strong id="EN-US_TOPIC_0000002268726281__b13204634164215">Template</strong>. <strong id="EN-US_TOPIC_0000002268726281__b4204934154218">Template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row20196334204217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1220423494216">model_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p13204133434215">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1920410345427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1620517347428">Model version in the format of <em id="EN-US_TOPIC_0000002268726281__i9205534114215">Digit.Digit.Digit</em>. Each digit is a one-digit or two-digit positive integer, but cannot start with 0. For example, <strong id="EN-US_TOPIC_0000002268726281__b9205203410428">01.01.01</strong> is not allowed. <strong id="EN-US_TOPIC_0000002268726281__b1620503413428">Common parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row10196934144211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p520516341422">source_job_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p220643414424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p22061034134217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p42061834184210">Version of the source training job. If the model is generated from a training job, input this parameter for source tracing. If the model is imported from a third-party meta model, leave this parameter blank. This parameter is left blank by default. <strong id="EN-US_TOPIC_0000002268726281__b22068349422">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1119711349426"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p192061342427">source_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p22061348425">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p7207534114218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p9207163412429">OBS path where the model is located or the SWR image location</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1319773415420"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p82071534144217">source_copy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p920723454212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p2020713418426">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p18208113414217">Whether to enable image replication. This parameter is valid only when <strong id="EN-US_TOPIC_0000002268726281__b1720813474216">model_type</strong> is set to <strong id="EN-US_TOPIC_0000002268726281__b320883464210">Image</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000002268726281__p202081334124216">Options:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726281__ul142081344420"><li id="EN-US_TOPIC_0000002268726281__li1208173444220"><p id="EN-US_TOPIC_0000002268726281__p9208143416421"><a name="EN-US_TOPIC_0000002268726281__li1208173444220"></a><a name="li1208173444220"></a><strong id="EN-US_TOPIC_0000002268726281__b16208163444211">true</strong>: Default value, indicating that image replication is enabled. After this function is enabled, models cannot be rapidly created, and modifying or deleting an image in the SWR source directory will not affect service deployment.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726281__li1420813346428"><p id="EN-US_TOPIC_0000002268726281__p2208163415425"><a name="EN-US_TOPIC_0000002268726281__li1420813346428"></a><a name="li1420813346428"></a><strong id="EN-US_TOPIC_0000002268726281__b820833414429">false</strong>: Image replication is not enabled. After this function is disabled, models can be rapidly created, but modifying or deleting an image in the SWR source directory will affect service deployment.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row6197193416423"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p122099346423">initial_config</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1720917345422">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p72091434124211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1720912344427">Character string converted from the model configuration file. You are advised to use the initial_config configuration file to provide information about the apis, dependencies, input_params, output_params, health, readiness_health, and startup_health fields. ** Non-template parameter**</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1619723444218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p19209123419426">execution_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p5209234124219">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1021014345425">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1921023464214">OBS path for storing the execution code. By default, this parameter is left blank. The name of the execution code file is consistently to be <strong id="EN-US_TOPIC_0000002268726281__b72101134194216">customize_service.py</strong>. The inference code file must be stored in the <strong id="EN-US_TOPIC_0000002268726281__b172105345427">model</strong> directory. This parameter can be left blank. Then, the system will automatically identify the inference code in the <strong id="EN-US_TOPIC_0000002268726281__b921013419421">model</strong> directory. <strong id="EN-US_TOPIC_0000002268726281__b1721093474215">Common parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row91981834164213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p921033414426">source_job_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1321093420421">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p19211123464212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p02111134154217">ID of the source training job. If the model is generated from a training job, input this parameter for source tracing. If the model is imported from a third-party meta model, leave this parameter blank. This parameter is left blank by default. <strong id="EN-US_TOPIC_0000002268726281__b1121163413428">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row18198134104211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p162118345421">model_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p321119344425">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p102115343421">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p12123343425">Model type. The value is TensorFlow/Image/PyTorch/Template/MindSpore, which is read from the configuration file. ** Common Parameters**</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1419813434214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p2212103464212">output_params</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p13212634164219">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p192121345425">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestInferParams">CreateModelRequestInferParams</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p102137348423">Collection of output parameters of a model. By default, this parameter is left blank. If the parameters are read from <strong id="EN-US_TOPIC_0000002268726281__b1421383412422">apis</strong> in the configuration file, provide only the <strong id="EN-US_TOPIC_0000002268726281__b22132034114210">initial_config</strong> field, and this field can be left blank. <strong id="EN-US_TOPIC_0000002268726281__b8213183404212">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row0198634114218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p321323434211">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p13213634134212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p19213134124216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1921320345429">Model description that consists of 1 to 100 characters. The following special characters cannot be contained: &!'"<>= <strong id="EN-US_TOPIC_0000002268726281__b18214334164213">Common parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row51981334124217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p4214163420426">runtime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p11214183454212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1521411346424">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p0214734104210">Model runtime environment. Its possible values are determined based on <strong id="EN-US_TOPIC_0000002268726281__b1521518347423">model_type</strong>. For details, see .</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row919803494211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p9215134184210">model_metrics</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p172151834124212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p021517349424">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p2215183484219">Model precision. If the value is read from the configuration file, this parameter can be left blank. <strong id="EN-US_TOPIC_0000002268726281__b921583413428">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1619818343423"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p421673413421">source_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p14216153494210">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p62161345424">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p82171334164217">Model source type. Currently, the value can only be auto, which is used to distinguish models deployed through ExeML (the model download function is not provided). This parameter is not required for models deployed through training jobs or other methods. It is left blank by default. ** Non-template parameter**</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row2198183410429"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p12217934164215">dependencies</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p122171434204211">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p122171834134216">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelDependencies">ModelDependencies</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p221717344424">Package required for inference code and model. By default, this parameter is left blank. If the package is read from the configuration file, this parameter can be left blank. <strong id="EN-US_TOPIC_0000002268726281__b182181534134217">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row15198143412426"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p221820342422">workspace_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p721818349424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p821843484216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p221815343421">Workspace ID If no workspace is created, the default value is 0. If a workspace is created and used, the actual value prevails.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row13198153454212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p11218113414216">model_algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p15219163454215">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p721918345427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1321920343421">Model algorithm. If the algorithm is read from the configuration file, this parameter can be left blank. The value can be <strong id="EN-US_TOPIC_0000002268726281__b1521903416423">predict_analysis</strong>, <strong id="EN-US_TOPIC_0000002268726281__b202191734104218">object_detection</strong>, or <strong id="EN-US_TOPIC_0000002268726281__b5219103474213">image_classification</strong>. <strong id="EN-US_TOPIC_0000002268726281__b1421918349424">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row01993349425"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p18219203494211">apis</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p52204347426">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p022063420422">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestModelApis">CreateModelRequestModelApis</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p522043494213">All API input and output parameters of the model. If the parameters are parsed from the configuration file, this parameter can be left blank. <strong id="EN-US_TOPIC_0000002268726281__b2022193474216">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row819923420422"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p822117342421">model_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p5221203454216">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p622163484213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p322193474218">Model name, which consists of 1 to 64 characters. <strong id="EN-US_TOPIC_0000002268726281__b11222103417427">Common parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row919913454216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p17222133416426">install_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p22221934144217">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p2222143418422">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p422212344428">Deployment type. Only lowercase letters are supported. The value can be <strong id="EN-US_TOPIC_0000002268726281__b022373474218">real-time</strong> or batch. The default value is [<strong id="EN-US_TOPIC_0000002268726281__b17223133484214">real-time</strong>, <strong id="EN-US_TOPIC_0000002268726281__b3223234164218">batch</strong>].</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1519983424214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p622312348427">input_params</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p322343413426">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p922319349425">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestInferParams">CreateModelRequestInferParams</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p72241342429">Collection of input parameters of a model. By default, this parameter is left blank. If the parameters are read from <strong id="EN-US_TOPIC_0000002268726281__b1224123474213">apis</strong> in the configuration file, provide only the <strong id="EN-US_TOPIC_0000002268726281__b422433415428">initial_config</strong> field, and this field can be left blank. <strong id="EN-US_TOPIC_0000002268726281__b42245348426">Non-template parameter</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row9199133464219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1622553444215">cmd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p102257341429">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p13225234164210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p8226133454214">Image startup command.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row10199163416422"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p6226103419429">deployment_constraints</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1322711348424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p2227534194215"><a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_deployment_constraints">deployment_constraints</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p622713343425">Model deployment constraints (tag:hc,hk)</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_GuideDoc"></a><a name="en-us_topic_0000002091201385_request_GuideDoc"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_GuideDoc" frame="border" border="1" rules="all"><caption><b>Table 4 </b>GuideDoc</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row622823464219"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p1323093414212">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p152311434194216">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p102315348422">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p7231734154210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row32292343427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p14232173410423">doc_url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p323217344420">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1623323410421">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p172337345424">HTTP(S) link of the document</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row12291634124218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1923443419428">doc_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p182341134104217">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p123553444212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p19235193412427">Document name, which must start with a letter.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelTemplate"></a><a name="en-us_topic_0000002091201385_request_ModelTemplate"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelTemplate" frame="border" border="1" rules="all"><caption><b>Table 5 </b>ModelTemplate</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row11236034184214"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p12373344420">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p12371734144212">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p18238103412421">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.5.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p1423814349422">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row12369348422"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p2238334134213">infer_format</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p723883418422">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p323883494219">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p92391634104218">Input and output mode ID. When this parameter is provided, the built-in input and output modes in the template are overwritten.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row323633474210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p72391534164219">template_inputs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p2239113454211">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1123919345421">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestTemplateInput">CreateModelRequestTemplateInput</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p172402344427">Template input configuration, specifying the source path for configuring a model.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row823611347421"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p13240163454213">template_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p19240103484220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1524053415425">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p15240134154214">ID of the used template. The template has a built-in input and output mode.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestTemplateInput"></a><a name="en-us_topic_0000002091201385_request_CreateModelRequestTemplateInput"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestTemplateInput" frame="border" border="1" rules="all"><caption><b>Table 6 </b>CreateModelRequestTemplateInput</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row224173484215"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p1824283420423">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p324233418422">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p9242113414424">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.6.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p142437347425">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row16241134124210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p62438341425">input</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p824343413426">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p0243534124210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.6.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p72441334114214">Template input path, which can be a path to an OBS file or directory. When you use a template with multiple input items to create a model, if the target paths <strong id="EN-US_TOPIC_0000002268726281__b10244934134216">input_properties</strong> specified in the template are the same, the OBS directory or OBS file name entered here must be unique to prevent files from being overwritten.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1124117348423"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p92444345422">input_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p202441434184213">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p12451348425">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.6.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1524593424215">Input item ID, which is obtained from template details.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelDependencies"></a><a name="en-us_topic_0000002091201385_request_ModelDependencies"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelDependencies" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ModelDependencies</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row1024513411427"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p1246153464212">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p14247143412426">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p16247934134215">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.7.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p024763474210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row11246133412429"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p525073414218">installer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p6250534104210">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p9250143474217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p132511434184214">Installation mode. Only pip is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row42462341426"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p12252734124211">packages</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1625253418420">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p425203420421">Array of <a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_Packages">Packages</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.7.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p625213454215">Collection of dependency packages</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_Packages"></a><a name="en-us_topic_0000002091201385_request_Packages"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_Packages" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Packages</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row102531434134215"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p3129193517426">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p1613003514214">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p913073594219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.8.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p1013093534210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row142531434164217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p7130835154219">package_version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1313023544220">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1513019357427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.8.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p71301435104211">Version of a dependency package. If this parameter is left blank, the latest version is installed by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row102534347427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p7130163584217">package_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p131301635204213">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p6130143517427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.8.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p6131183504216">Name of a dependency package. Ensure that the package name is correct and available.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row13253153454212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p7131143544220">restraint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p313153510420">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p713163520427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.8.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1913173504220">Version restriction. This parameter is mandatory only when package_version exists. The options are as follows:</p>
|
|
<ul id="EN-US_TOPIC_0000002268726281__ul19131103584220"><li id="EN-US_TOPIC_0000002268726281__li81311535104213"><p id="EN-US_TOPIC_0000002268726281__p17131193515427"><a name="EN-US_TOPIC_0000002268726281__li81311535104213"></a><a name="li81311535104213"></a>EXACT: The version is the same as the specified version.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726281__li11311935144214"><p id="EN-US_TOPIC_0000002268726281__p91311335164212"><a name="EN-US_TOPIC_0000002268726281__li11311935144214"></a><a name="li11311935144214"></a>ATLEAST: The version is not earlier than the specified version.</p>
|
|
</li><li id="EN-US_TOPIC_0000002268726281__li713123544210"><p id="EN-US_TOPIC_0000002268726281__p15131163574210"><a name="EN-US_TOPIC_0000002268726281__li713123544210"></a><a name="li713123544210"></a>ATMOST: not later than the specified version.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestModelApis"></a><a name="en-us_topic_0000002091201385_request_CreateModelRequestModelApis"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestModelApis" frame="border" border="1" rules="all"><caption><b>Table 9 </b>CreateModelRequestModelApis</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row7260143413423"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p10132113516420">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p413218355425">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p113273524210">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.9.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p1313233584217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row1226010345423"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p8132123574211">protocol</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p19132335154218">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p31321735194215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.9.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p21321535194216">Request protocol. The options are HTTP and HTTPS.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row2260434184216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p6133123514425">method</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p16133193518424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1313315357423">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.9.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1313319357429">Request method, which can be <strong id="EN-US_TOPIC_0000002268726281__b11133535174211">post</strong> or <strong id="EN-US_TOPIC_0000002268726281__b1113319352426">get</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row7261193412426"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p11133203514217">input_params</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p11335358424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p15133103512428"><a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelInOutputParams">ModelInOutputParams</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.9.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p613316352427">API input and output parameters, described in JSON Schema format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row162611934154214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1613314357425">output_params</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p31341635174215">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p12134163513427"><a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelInOutputParams">ModelInOutputParams</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.9.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p111341335184212">API input and output parameters, described in JSON Schema format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row52611634124219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1813412353423">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p5134133534218">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p61341235144213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.9.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p113413356429">Inference request URL</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelInOutputParams"></a><a name="en-us_topic_0000002091201385_request_ModelInOutputParams"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_ModelInOutputParams" frame="border" border="1" rules="all"><caption><b>Table 10 </b>ModelInOutputParams</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row162672343425"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p41344355426">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p17135153510421">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p8135153518420">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.10.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p1135153513429">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row526723444220"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p713553514421">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p161351635134212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p121351535104213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.10.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p131351835144217">Type in JSON Schema, which can be <strong id="EN-US_TOPIC_0000002268726281__b013614351429">object</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row12267934174214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p6136183564212">properties</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1513603594218">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1136153510420">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.10.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p201361935154212">Properties of an object element in JSON Schema. You can configure parameters, including the parameter name and type.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestInferParams"></a><a name="en-us_topic_0000002091201385_request_CreateModelRequestInferParams"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_CreateModelRequestInferParams" frame="border" border="1" rules="all"><caption><b>Table 11 </b>CreateModelRequestInferParams</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row182701534154216"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p6136635204216">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p1313623594210">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p10137133584215">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.11.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p81379352423">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row162712344427"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p4137193564218">protocol</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p13137143544210">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p3137435134213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p61371235154213">Request protocol. The options are HTTP and HTTPS.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row122711134114217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p61371935134211">min</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p613733534215">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p18137135114220">Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p613717351421">Minimum value of the parameter. This parameter is optional when param_type is set to int or float. By default, this parameter is left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row102711344425"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p19137203511423">method</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p21381135184213">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p913814354427">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p113823514213">Request method, which can be <strong id="EN-US_TOPIC_0000002268726281__b11382359424">post</strong> or <strong id="EN-US_TOPIC_0000002268726281__b813873517425">get</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1027103484218"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p4138113516428">max</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p171382357422">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p14138113544210">Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p01381635154211">Maximum value of the parameter. This parameter is optional when param_type is set to int or float. By default, this parameter is left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1927193416421"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1813811355427">param_desc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p8138035134219">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1313803574210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p81383356425">Parameter description. It is recommended that the parameter description contain a maximum of 100 characters. By default, this parameter is left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row127133420421"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p813873504213">param_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p14138935114215">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p8139535204214">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p11396359421">Parameter name. It is recommended that the parameter name contain a maximum of 64 characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row6271183424215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p11139103594215">url</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p16139153511426">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p11139183564220">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1513903564213">API URL</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row4271163444211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p613933524212">param_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p17139153524215">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1413911357426">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.11.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1139103544218">Parameter type, which can be <strong id="EN-US_TOPIC_0000002268726281__b2139835164219">int</strong>, <strong id="EN-US_TOPIC_0000002268726281__b1613983564213">string</strong>, <strong id="EN-US_TOPIC_0000002268726281__b71398351423">float</strong>, <strong id="EN-US_TOPIC_0000002268726281__b1413983524213">timestamp</strong>, <strong id="EN-US_TOPIC_0000002268726281__b18139113512428">date</strong>, or <strong id="EN-US_TOPIC_0000002268726281__b11391035174212">file</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_deployment_constraints"></a><a name="en-us_topic_0000002091201385_request_deployment_constraints"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_deployment_constraints" frame="border" border="1" rules="all"><caption><b>Table 12 </b>deployment_constraints</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row32791234134211"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.12.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p2139113515427">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.12.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p1513963584215">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.12.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p161406355427">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.12.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p41404354424">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row9280103454213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p15140735104215">request_mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p8140135184210">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p31401035154219">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p19140235144214">Request model of a job when the model is deployed as a service</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row10280534164216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p19140435154220">cpu_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p914073518423">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p31401735124211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p18140193511426">CPU type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row22801334154219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p21401135184211">input_types</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p0140163511424">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p16140143514212">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p121406353421">Input and output type in asynchronous mode and video service scenarios, such as <strong id="EN-US_TOPIC_0000002268726281__b17140143510421">OBS</strong> and <strong id="EN-US_TOPIC_0000002268726281__b1414073574218">VIS</strong>. This parameter is used for importing custom images. Non-custom images are described in the <strong id="EN-US_TOPIC_0000002268726281__b16140113513425">runtime</strong> file.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row192821234144216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p201401535134220">outputTypes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p191401935144210">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1714015359424">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p1614093564214">Input and output type in asynchronous mode and video service scenarios, such as <strong id="EN-US_TOPIC_0000002268726281__b714113524210">OBS</strong> and <strong id="EN-US_TOPIC_0000002268726281__b191418354424">DIS</strong>. This parameter is used for importing custom images. Non-custom images are described in the <strong id="EN-US_TOPIC_0000002268726281__b3141935104214">runtime</strong> file.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row628343464219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p514111351427">service_config</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p18141193544220">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p16141335174210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p12141135194212">Field of service deployment, which can be specified during service deployment. This parameter is used for importing custom images. Non-custom images are described in the <strong id="EN-US_TOPIC_0000002268726281__b1141435164219">runtime</strong> file. As the structure is rather complex, the value is in the XML format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row2283203417429"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p2141735114217">task_config</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p201411935144213">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1314163584216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p314143516425">Field of job-related configurations, which can be specified during job creation. This parameter is used for importing custom images. Non-custom images are described in the <strong id="EN-US_TOPIC_0000002268726281__b20141103518420">runtime</strong> file. As the structure is rather complex, the value is in the XML format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row52831434104217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p9141133584215">model_security</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p121411035164216">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p20141143517424"><a href="#EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_model_security">model_security</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.12.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p414123516429">After the model is encrypted using the Edge, the root key, model key, and encrypted model can be obtained.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_model_security"></a><a name="en-us_topic_0000002091201385_request_model_security"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_request_model_security" frame="border" border="1" rules="all"><caption><b>Table 13 </b>model_security</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row229013419428"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.5.1.1"><p id="EN-US_TOPIC_0000002268726281__p2142133513426">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.5.1.2"><p id="EN-US_TOPIC_0000002268726281__p10142153518428">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.13.2.5.1.3"><p id="EN-US_TOPIC_0000002268726281__p1142203524218">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.13.2.5.1.4"><p id="EN-US_TOPIC_0000002268726281__p18142535104218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row152901234144214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p17142193515424">model_key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p18142635124213">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p51421035144210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.13.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p181421435164217">Obtain the model key after using the Edge to encrypt the model.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row1429093454213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p2142135124212">rootKey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p14142183544211">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p814223518420">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.13.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p141421335114216">Obtain the root key after using the Edge to encrypt the model.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row17290153424211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p11422352428">security_policy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p914253518422">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p16142435154214">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.13.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p11142835174211">Obtain the model encryption policy after using the Edge to encrypt the model.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000002268726281__row14291203464217"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.1 "><p id="EN-US_TOPIC_0000002268726281__p114233554219">is_verify_app</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.2 "><p id="EN-US_TOPIC_0000002268726281__p71425359421">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.13.2.5.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1614213524217">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.13.2.5.1.4 "><p id="EN-US_TOPIC_0000002268726281__p9143153524212">Whether to verify the files in the edge scenario, including the configuration files, container images, and library files.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section7143173514211"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000002268726281__p1914313513428"><strong id="EN-US_TOPIC_0000002268726281__b151431835114212">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_response_CreateModelResponse" frame="border" border="1" rules="all"><caption><b>Table 14 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row02954344421"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000002268726281__p314363513425">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0000002268726281__p191431135104215">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0000002268726281__p1314363554212">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row3295234124218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000002268726281__p1614363519424">model_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000002268726281__p101431535144218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000002268726281__p1214393518428">Model ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section1914333513421"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000002268726281__p1114313584219">Create a model. Set the model name to <strong id="EN-US_TOPIC_0000002268726281__b11143535144215">mnist</strong>, version to <strong id="EN-US_TOPIC_0000002268726281__b9143113534215">1.0.0</strong>, type to <strong id="EN-US_TOPIC_0000002268726281__b181431335174215">TensorFlow</strong>, and model file source to an OBS bucket.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000002268726281__screen17143133515421">POST https://{endpoint}/v1/{project_id}/models
|
|
|
|
{
|
|
"model_name" : "mnist",
|
|
"model_version" : "1.0.0",
|
|
"source_location" : "https://models.obs.xxxxx.com/mnist",
|
|
"source_job_id" : "55",
|
|
"source_job_version" : "V100",
|
|
"model_type" : "TensorFlow",
|
|
"runtime" : "python2.7",
|
|
"description" : "mnist model",
|
|
"execution_code" : "https://testmodel.obs.xxxxx.com/customize_service.py",
|
|
"input_params" : [ {
|
|
"url" : "/v1/xxx/image",
|
|
"protocol" : "http",
|
|
"method" : "post",
|
|
"param_name" : "image_url",
|
|
"param_type" : "string",
|
|
"min" : 0,
|
|
"max" : 9,
|
|
"param_desc" : "http://test/test.jpeg"
|
|
} ],
|
|
"output_params" : [ {
|
|
"url" : "/v1/xxx/image",
|
|
"protocol" : "http",
|
|
"method" : "post",
|
|
"param_name" : "face_location",
|
|
"param_type" : "box",
|
|
"param_desc" : "face_location param value description"
|
|
} ],
|
|
"dependencies" : [ {
|
|
"installer" : "pip",
|
|
"packages" : [ {
|
|
"package_name" : "numpy",
|
|
"package_version" : "1.5.0",
|
|
"restraint" : "ATLEAST"
|
|
} ]
|
|
} ],
|
|
"model_algorithm" : "object_detection",
|
|
"model_metrics" : "{\"f1\":0.52381,\"recall\":0.666667,\"precision\":0.466667,\"accuracy\":0.625}",
|
|
"apis" : [ {
|
|
"url" : "/v1/xxx/image",
|
|
"protocol" : "http",
|
|
"method" : "post",
|
|
"input_params" : {
|
|
"type" : "object",
|
|
"properties" : {
|
|
"image_url" : {
|
|
"type" : "string"
|
|
}
|
|
}
|
|
},
|
|
"output_params" : {
|
|
"type" : "object",
|
|
"properties" : {
|
|
"face_location" : {
|
|
"type" : "box"
|
|
}
|
|
}
|
|
}
|
|
} ],
|
|
"initial_config" : "{\"protocol\":\"http\",\"port\":\"8080\",\"health\":{\"check_method\":\"HTTP\",\"protocol\":\"http\",\"url\":\"/health\",\"period_seconds\":\"5\",\"failure_threshold\":\"10\",\"initial_delay_seconds\":\"12\"},\"readiness_health\":{\"check_method\":\"HTTP\",\"protocol\":\"http\",\"url\":\"/readiness_health\",\"period_seconds\":\"5\",\"failure_threshold\":\"20\",\"initial_delay_seconds\":\"12\"},\"startup_health\":{\"check_method\":\"HTTP\",\"protocol\":\"http\",\"url\":\"/startup_health\",\"period_seconds\":\"5\",\"failure_threshold\":\"10\",\"initial_delay_seconds\":\"12\"}}"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section11468355421"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000002268726281__p101464358424"><strong id="EN-US_TOPIC_0000002268726281__b141461435204214">Status code: 200</strong></p>
|
|
<p id="EN-US_TOPIC_0000002268726281__p14146163524217">The model is created.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000002268726281__screen614643534217">{
|
|
"model_id" : "7feb7235-ed9c-48ae-9833-2876b2458445"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section514813353429"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002268726281__en-us_topic_0000002091201385_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002268726281__row1530612341426"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000002268726281__p201484356426">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="EN-US_TOPIC_0000002268726281__p171481635124218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000002268726281__row1930611340421"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000002268726281__p16148183554220">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000002268726281__p1914823514212">The model is created.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002268726281__section18148113511422"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000002268726281__p1014863512424">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ai_management.html">Model Management</a></div>
|
|
</div>
|
|
</div>
|
|
|