forked from docs/doc-exports
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
45 lines
3.4 KiB
HTML
45 lines
3.4 KiB
HTML
<a name="modelarts_04_0300"></a><a name="modelarts_04_0300"></a>
|
|
|
|
<h1 class="topictitle1">Configuring a Service Endpoint</h1>
|
|
<div id="body8662426"><p id="modelarts_04_0300__en-us_topic_0301408379_p4702115019389"></p>
|
|
<p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p67061415131514">Using the SDK in non-notebook environments needs to call IAM, OBS, and ModelArts. Therefore, the endpoints of these services are required. Therefore, the endpoints of these services are required. To obtain the endpoints, configure as follows:</p>
|
|
<pre class="screen" id="modelarts_04_0300__en-us_topic_0301408379_screen15311152416419">from modelarts.session import Session
|
|
Session.set_endpoint(iam_endpoint="***", obs_endpoint="***", modelarts_endpoint="***", region_name="***")</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0300__en-us_topic_0301408379_table175008564210" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="modelarts_04_0300__en-us_topic_0301408379_row1250019524219"><th align="left" class="cellrowborder" valign="top" width="31.61%" id="mcps1.3.4.2.3.1.1"><p id="modelarts_04_0300__en-us_topic_0301408379_p25006520421">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="68.39%" id="mcps1.3.4.2.3.1.2"><p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p650011510423">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="modelarts_04_0300__en-us_topic_0301408379_row20500858420"><td class="cellrowborder" valign="top" width="31.61%" headers="mcps1.3.4.2.3.1.1 "><p id="modelarts_04_0300__en-us_topic_0301408379_p45001511423">iam_endpoint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.39%" headers="mcps1.3.4.2.3.1.2 "><p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p195001554428">IAM endpoint</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="modelarts_04_0300__en-us_topic_0301408379_row15500205194211"><td class="cellrowborder" valign="top" width="31.61%" headers="mcps1.3.4.2.3.1.1 "><p id="modelarts_04_0300__en-us_topic_0301408379_p350018544210">obs_endpoint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.39%" headers="mcps1.3.4.2.3.1.2 "><p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p25004594218">OBS endpoint</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="modelarts_04_0300__en-us_topic_0301408379_row850814453429"><td class="cellrowborder" valign="top" width="31.61%" headers="mcps1.3.4.2.3.1.1 "><p id="modelarts_04_0300__en-us_topic_0301408379_p16509194518426">modelarts_endpoint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.39%" headers="mcps1.3.4.2.3.1.2 "><p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p1650912452421">ModelArts endpoint</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="modelarts_04_0300__en-us_topic_0301408379_row2500355428"><td class="cellrowborder" valign="top" width="31.61%" headers="mcps1.3.4.2.3.1.1 "><p id="modelarts_04_0300__en-us_topic_0301408379_p175009511427">region_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="68.39%" headers="mcps1.3.4.2.3.1.2 "><p id="modelarts_04_0300__en-us_topic_0000001147595803_en-us_topic_0301408379_p18500259429">Region name</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_04_0003.html">Preparations</a></div>
|
|
</div>
|
|
</div>
|
|
|