forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
46 lines
3.8 KiB
HTML
46 lines
3.8 KiB
HTML
<a name="nosql_projectid"></a><a name="nosql_projectid"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining a Project ID</h1>
|
|
<div id="body0000001354538904"><div class="section" id="nosql_projectid__section136545262478"><h4 class="sectiontitle">Scenarios</h4><p id="nosql_projectid__p143381322355">When calling APIs, you need to specify the project ID in some URLs. To do so, you need to obtain the project ID first.</p>
|
|
<p id="nosql_projectid__p1556115614615">You can obtain the required project ID with either of the following methods:</p>
|
|
<ul id="nosql_projectid__ul7963113144712"><li id="nosql_projectid__li3757103814464"><a href="#nosql_projectid__section18520151052413">Obtaining the Project ID by Calling an API</a></li><li id="nosql_projectid__li1296373184719"><a href="#nosql_projectid__section127010198244">Obtaining a Project ID from the Console</a></li></ul>
|
|
</div>
|
|
<div class="section" id="nosql_projectid__section18520151052413"><a name="nosql_projectid__section18520151052413"></a><a name="section18520151052413"></a><h4 class="sectiontitle">Obtaining the Project ID by Calling an API</h4><p id="nosql_projectid__en-us_topic_0111868863_p31183326524">You can obtain the project ID by calling the IAM API used to query project information based on specified criteria.</p>
|
|
<p id="nosql_projectid__en-us_topic_0111868863_p857314915139">The API used to obtain a project ID is <strong id="nosql_projectid__b122231285914">GET https://{Endpoint}/v3/projects/</strong>. <strong id="nosql_projectid__b19223131215593">{Endpoint}</strong> is the IAM endpoint and can be obtained from <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>. For details about API authentication, see <a href="nosql_05_0009.html">Authentication</a>.</p>
|
|
<p id="nosql_projectid__en-us_topic_0111868863_p3770181514218">The following is an example response. The value of <strong id="nosql_projectid__b1577511203011">id</strong> is the project ID.</p>
|
|
<pre class="screen" id="nosql_projectid__en-us_topic_0111868863_screen676419149446">{
|
|
"projects": [
|
|
{
|
|
"domain_id": "65382450e8f64ac0870cd180d14e684b",
|
|
"is_domain": false,
|
|
"parent_id": "65382450e8f64ac0870cd180d14e684b",
|
|
"name": "project_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 class="section" id="nosql_projectid__section127010198244"><a name="nosql_projectid__section127010198244"></a><a name="section127010198244"></a><h4 class="sectiontitle">Obtaining a Project ID from the Console</h4><ol id="nosql_projectid__ol117026301421"><li id="nosql_projectid__li147028301824">Sign up and log in to the management console.</li><li id="nosql_projectid__li3996134016711">Move your pointer over the username and select <strong id="nosql_projectid__b16840193311119">My Credentials</strong> in the displayed drop-down list.<p id="nosql_projectid__p168811428710">On the <strong id="nosql_projectid__b6750837311">Projects</strong> tab page, view project IDs.</p>
|
|
<div class="fignone" id="nosql_projectid__en-us_topic_0111868863_fig39324824103512"><span class="figcap"><b>Figure 1 </b>Viewing project IDs</span><br><span><img id="nosql_projectid__en-us_topic_0111868863_image538470016132" src="en-us_image_0000001354858484.jpg"></span></div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="nosql_public_parameters.html">Appendixes</a></div>
|
|
</div>
|
|
</div>
|
|
|