forked from docs/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
22 lines
3.4 KiB
HTML
22 lines
3.4 KiB
HTML
<a name="EN-US_TOPIC_0109822371"></a><a name="EN-US_TOPIC_0109822371"></a>
|
|
|
|
<h1 class="topictitle1">Querying Job Details</h1>
|
|
<div id="body46031676"><div class="section" id="EN-US_TOPIC_0109822371__section48854323"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0109822371__p48581817143">After a request is successfully received, a job id is returned. You can run the job to query the execution status. This part describes how to use a job ID to query job details.</p>
|
|
<div class="note" id="EN-US_TOPIC_0109822371__note021013252910"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0109822371__en-us_topic_0109822404_p88501497167">The token obtained from IAM is valid for only 24 hours. If you want to use a token for authentication, you can cache it to avoid frequently calling the IAM API.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0109822371__section64886077"><h4 class="sectiontitle">Involved APIs</h4><p class="litext" id="EN-US_TOPIC_0109822371__p23385131">If you use a token for authentication, you must obtain the token and add <strong id="EN-US_TOPIC_0109822371__en-us_topic_0109822381_b842352706134841">X-Auth-Token</strong> to the request header of the IMS API when making an API call.</p>
|
|
<ul id="EN-US_TOPIC_0109822371__ul1840113419200"><li id="EN-US_TOPIC_0109822371__li6754315">IAM API used to obtain the token<p id="EN-US_TOPIC_0109822371__en-us_topic_0109822381_p1833933634"><a name="EN-US_TOPIC_0109822371__li6754315"></a><a name="li6754315"></a>URI format: POST https://<em id="EN-US_TOPIC_0109822371__en-us_topic_0109822381_i15500165112426">IAM endpoint</em>/v3/auth/tokens</p>
|
|
</li><li id="EN-US_TOPIC_0109822371__li46707930">IMS API used to query an asynchronous job<p id="EN-US_TOPIC_0109822371__p14513103914219"><a name="EN-US_TOPIC_0109822371__li46707930"></a><a name="li46707930"></a>URI format: GET https://<em id="EN-US_TOPIC_0109822371__i8301154181618">IMS endpoint</em>/v1/<em id="EN-US_TOPIC_0109822371__i0181227141718">Project ID</em>/jobs/<em id="EN-US_TOPIC_0109822371__i1778416104170">Job ID</em></p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0109822371__section47103787"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0109822371__ol41981212104717"><li id="EN-US_TOPIC_0109822371__li1837051910476">Obtain the token.</li><li id="EN-US_TOPIC_0109822371__li17198512194712">Send <strong id="EN-US_TOPIC_0109822371__b14589103019186">GET https://</strong><em id="EN-US_TOPIC_0109822371__i3731911191818">IMS endpoint</em><strong id="EN-US_TOPIC_0109822371__b10582733141814">/v1/</strong><em id="EN-US_TOPIC_0109822371__i1860021851817">Project ID</em><strong id="EN-US_TOPIC_0109822371__b34724379186">/jobs/</strong><em id="EN-US_TOPIC_0109822371__i662811265185">Job ID</em>.</li><li class="msonormal" id="EN-US_TOPIC_0109822371__li519861264716">Add <strong id="EN-US_TOPIC_0109822371__b84235270615255">X-Auth-Token</strong> to the request header.</li><li class="msonormal" id="EN-US_TOPIC_0109822371__li5198131254714">Check the job details after the request is successfully processed. For details about the parameters, see "Asynchronous Job Query" in <em id="EN-US_TOPIC_0109822371__i84235269795048">Image Management Service API Reference</em>.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0219492328.html">Common Scenarios</a></div>
|
|
</div>
|
|
</div>
|
|
|