forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com> Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
41 lines
3.6 KiB
HTML
41 lines
3.6 KiB
HTML
<a name="projectid_accountid"></a><a name="projectid_accountid"></a>
|
|
|
|
<h1 class="topictitle1">Project ID and Account ID</h1>
|
|
<div id="en-us_topic_0000001668278466_body0000001129537317"><div class="section" id="projectid_accountid__en-us_topic_0000001668278466_en-us_topic_0183643042_section41152976192830"><h4 class="sectiontitle">Obtaining a Project ID and Account ID</h4><div class="p" id="projectid_accountid__en-us_topic_0000001668278466_en-us_topic_0183643042_en-us_topic_0080205343_p491327619141">A project is a group of tenant resources, and an account ID corresponds to the current account. The IAM ID corresponds to the current user. You can view the project IDs, account IDs, and user IDs in different regions on the corresponding pages.<ol id="projectid_accountid__en-us_topic_0000001668278466_ol6260200121819"><li id="projectid_accountid__en-us_topic_0000001668278466_li19260803185">Register with and log in to the management console.</li><li id="projectid_accountid__en-us_topic_0000001668278466_li142601019186">Hover the cursor on the username in the upper right corner and select <span class="uicontrol" id="projectid_accountid__en-us_topic_0000001668278466_uicontrol0260130191818"><b>My Credentials</b></span> from the drop-down list.</li><li id="projectid_accountid__en-us_topic_0000001668278466_li1026113031818">On the <strong id="projectid_accountid__en-us_topic_0000001668278466_b191446371160">API Credentials</strong> page, obtain the account name, account ID, IAM username, and IAM user ID, and obtain the project ID from the project list.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="projectid_accountid__en-us_topic_0000001668278466_en-us_topic_0191815273_section1691341861315"><h4 class="sectiontitle">Obtaining a Project ID by Calling an API</h4><p id="projectid_accountid__en-us_topic_0000001668278466_p1394311337334">You can obtain the project ID by calling the API to query project information. The API is GET https://{Endpoint}/v3/projects, in which {Endpoint} is the IAM endpoint and can be obtained from IAM documentation.</p>
|
|
<p id="projectid_accountid__en-us_topic_0000001668278466_en-us_topic_0191815273_p82371314564">For details about API authentication, see <a href="dataartsstudio_02_0010.html">Authentication</a>. </p>
|
|
<p id="projectid_accountid__en-us_topic_0000001668278466_en-us_topic_0191815273_p1461198134114">The following is a response example. The value of <strong id="projectid_accountid__en-us_topic_0000001668278466_b59871830172012">id</strong> under <strong id="projectid_accountid__en-us_topic_0000001668278466_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="projectid_accountid__en-us_topic_0000001668278466_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>
|
|
|