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>
102 lines
8.8 KiB
HTML
102 lines
8.8 KiB
HTML
<a name="EN-US_TOPIC_0000001909747436"></a><a name="EN-US_TOPIC_0000001909747436"></a>
|
|
|
|
<h1 class="topictitle1">Restarting a Visualization Job</h1>
|
|
<div id="body1536897563953"><div class="section" id="EN-US_TOPIC_0000001909747436__section36118687"><h4 class="sectiontitle">Function</h4><p class="MsoNormal" id="EN-US_TOPIC_0000001909747436__p49034961">This API is used to restart a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in <a href="modelarts_03_0065.html">Querying a Visualization Job List</a> and <a href="modelarts_03_0066.html">Querying the Details About a Visualization Job</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section56632733"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001909747436__p148891756161414">POST /v1/{project_id}/visualization-jobs/{job_id}/restart</p>
|
|
<div class="p" id="EN-US_TOPIC_0000001909747436__p61414216919"><a href="#EN-US_TOPIC_0000001909747436__table20736351173356">Table 1</a> describes the required parameters.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909747436__table20736351173356"></a><a name="table20736351173356"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909747436__table20736351173356" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909747436__row5314023173356"><th align="left" class="cellrowborder" valign="top" width="17.090000000000003%" id="mcps1.3.2.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001909747436__p10746977173422">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.510000000000002%" id="mcps1.3.2.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001909747436__p65198818173422">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.820000000000002%" id="mcps1.3.2.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001909747436__p46612907173422">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.580000000000005%" id="mcps1.3.2.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001909747436__p23681614151847">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909747436__row18124941173356"><td class="cellrowborder" valign="top" width="17.090000000000003%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001909747436__p48322763173422">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.510000000000002%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001909747436__p4813935511624">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.820000000000002%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001909747436__p23375442173422">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.580000000000005%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001909747436__p14362646173422">Project ID. For details about how to obtain a project ID, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909747436__row66549402173356"><td class="cellrowborder" valign="top" width="17.090000000000003%" headers="mcps1.3.2.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001909747436__p12481001173422">job_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.510000000000002%" headers="mcps1.3.2.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001909747436__p2118234711624">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.820000000000002%" headers="mcps1.3.2.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001909747436__p15034621173422">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.580000000000005%" headers="mcps1.3.2.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001909747436__p9844788173422">ID of a visualization job</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section39932554"><h4 class="sectiontitle">Request Body</h4><p id="EN-US_TOPIC_0000001909747436__p1459291216108">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section23848671"><h4 class="sectiontitle">Response Body</h4><div class="p" id="EN-US_TOPIC_0000001909747436__p1921211831013"><a href="#EN-US_TOPIC_0000001909747436__table1616937211145">Table 2</a> describes the response parameters.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909747436__table1616937211145"></a><a name="table1616937211145"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909747436__table1616937211145" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909747436__row3299591411145"><th align="left" class="cellrowborder" valign="top" width="17.008299170082992%" id="mcps1.3.4.2.2.2.4.1.1"><p id="EN-US_TOPIC_0000001909747436__p64685575111418">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.968803119688031%" id="mcps1.3.4.2.2.2.4.1.2"><p id="EN-US_TOPIC_0000001909747436__p5602779111418">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="71.02289771022899%" id="mcps1.3.4.2.2.2.4.1.3"><p id="EN-US_TOPIC_0000001909747436__p145514399401">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909747436__row0238128181915"><td class="cellrowborder" valign="top" width="17.008299170082992%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909747436__p2530905217407">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.968803119688031%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909747436__p2536505617407">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.02289771022899%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909747436__p4130369517407">Whether the request is successful</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909747436__row994226511145"><td class="cellrowborder" valign="top" width="17.008299170082992%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909747436__p5018360111418">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.968803119688031%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909747436__p42122968111418">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.02289771022899%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909747436__p115491551124112">Error code of a failed API call. For details, see <a href="modelarts_03_0095.html">Error Codes</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001909747436__p56517271111418">This parameter is not included when the API call succeeds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909747436__row4055089611145"><td class="cellrowborder" valign="top" width="17.008299170082992%" headers="mcps1.3.4.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001909747436__p31663372111418">error_message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.968803119688031%" headers="mcps1.3.4.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001909747436__p41451367111418">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="71.02289771022899%" headers="mcps1.3.4.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001909747436__p463795419413">Error message of a failed API call.</p>
|
|
<p id="EN-US_TOPIC_0000001909747436__p2117573111418">This parameter is not included when the API call succeeds.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section690185017914"><h4 class="sectiontitle">Sample Request</h4><p id="EN-US_TOPIC_0000001909747436__p26415528917">The following shows how to restart the visualization job whose ID is 10.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001909747436__screen8657750165">POST https://endpoint/v1/{project_id}/visualization-jobs/10/restart</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section101757571862"><h4 class="sectiontitle">Sample Response</h4><ul id="EN-US_TOPIC_0000001909747436__ul915113916716"><li id="EN-US_TOPIC_0000001909747436__li11512097711">Successful response<pre class="screen" id="EN-US_TOPIC_0000001909747436__screen5152129278">{
|
|
"is_success": true
|
|
}</pre>
|
|
</li><li id="EN-US_TOPIC_0000001909747436__li51522091276">Failed response<pre class="screen" id="EN-US_TOPIC_0000001909747436__screen20152189572">{
|
|
"is_success": false,
|
|
"error_message": "This job can't be resubmit. job status: 8",
|
|
"error_code": "ModelArts.0105"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909747436__section16342114917109"><h4 class="sectiontitle">Status Code</h4><p id="EN-US_TOPIC_0000001909747436__p1731954913014">For details about the status code, see <a href="modelarts_03_0094.html#EN-US_TOPIC_0000001909907492__table1450010510213">Table 1</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_03_0063.html">Visualization Jobs</a></div>
|
|
</div>
|
|
</div>
|
|
|