forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com> Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
43 lines
4.3 KiB
HTML
43 lines
4.3 KiB
HTML
<a name="dataartsstudio_02_0314"></a><a name="dataartsstudio_02_0314"></a>
|
|
|
|
<h1 class="topictitle1">Project ID and Account ID</h1>
|
|
<div id="body8662426"><div class="section" id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0183643042_section41152976192830"><h4 class="sectiontitle">Obtaining a Project ID and Account ID</h4><div class="p" id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0183643042_en-us_topic_0080205343_p491327619141">You can obtain the project ID and account ID by performing the following steps:<ol id="dataartsstudio_02_0314__en-us_topic_0000001129537317_ol6260200121819"><li id="dataartsstudio_02_0314__en-us_topic_0000001129537317_li19260803185">Register with and log in to the management console.</li><li id="dataartsstudio_02_0314__en-us_topic_0000001129537317_li142601019186">Hover the cursor on the username in the upper right corner and select <span class="uicontrol" id="dataartsstudio_02_0314__en-us_topic_0000001129537317_uicontrol0260130191818"><b>My Credentials</b></span> from the drop-down list.</li><li id="dataartsstudio_02_0314__en-us_topic_0000001129537317_li1026113031818">On the <strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_b196637155315">My Credentials</strong> page, obtain the account name and account ID, and obtain the project ID from the project list.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0191815273_section1691341861315"><h4 class="sectiontitle">Obtaining a Project ID by Calling an API</h4><p id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0191815273_p996711364120">You can obtain a project ID by calling the API used to query projects based on specified criteria.</p>
|
|
<p id="dataartsstudio_02_0314__en-us_topic_0000001129537317_p14711138165">The API for obtaining a project ID is <strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_b2467242195817">GET https://</strong><em id="dataartsstudio_02_0314__en-us_topic_0000001129537317_i12467942115818">{Endpoint}</em><strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_b194681742165816">/v3/projects/</strong>, where <em id="dataartsstudio_02_0314__en-us_topic_0000001129537317_i10468942105811">{Endpoint}</em> indicates the endpoint of IAM.</p>
|
|
<p id="dataartsstudio_02_0314__en-us_topic_0000001129537317_p743513120226">An endpoint is the <strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0000001082451448_b16300195371816">request address</strong> for calling an API. Endpoints vary depending on services and regions. You can obtain endpoints from <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
|
|
<p id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0191815273_p82371314564">For details about API authentication, see <a href="dataartsstudio_02_0010.html">Authentication</a>.</p>
|
|
<p id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0191815273_p1461198134114">The following is a response example. The value of <strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_b59871830172012">id</strong> under <strong id="dataartsstudio_02_0314__en-us_topic_0000001129537317_b2988123019201">projects</strong> is the project ID. If multiple IDs are returned, obtain the desired one based on your actual region (name).</p>
|
|
<pre class="screen" id="dataartsstudio_02_0314__en-us_topic_0000001129537317_en-us_topic_0191815273_screen676419149446">{
|
|
"projects": [
|
|
{
|
|
"domain_id": "65382450e8f64ac0870cd180d14e684b",
|
|
"is_domain": false,
|
|
"parent_id": "65382450e8f64ac0870cd180d14e684b",
|
|
"name": "region-name",
|
|
"description": "",
|
|
"links": {
|
|
"next": null,
|
|
"previous": null,
|
|
"self": "https://www.example.com/v3/projects/a4a5d4098fb4474fa22cd05f897d6b99"
|
|
},
|
|
"id": "a4a5d4098fb4474fa22cd05f897d6b99",
|
|
"enabled": true
|
|
}
|
|
],
|
|
"links": {
|
|
"next": null,
|
|
"previous": null,
|
|
"self": "https://www.example.com/v3/projects"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_02_0001.html">Before You Start</a></div>
|
|
</div>
|
|
</div>
|
|
|