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>
44 lines
3.5 KiB
HTML
44 lines
3.5 KiB
HTML
<a name="dds_projectid"></a><a name="dds_projectid"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining a Project ID</h1>
|
|
<div id="body8662426"><div class="section" id="dds_projectid__section136545262478"><h4 class="sectiontitle">Scenarios</h4><p id="dds_projectid__p1556115614615">A project ID is required for some URLs when an API is called. To obtain the project ID:</p>
|
|
<ul id="dds_projectid__ul7963113144712"><li id="dds_projectid__li3757103814464"><a href="#dds_projectid__section18520151052413">Obtaining the Project ID by Calling an API</a></li><li id="dds_projectid__li1296373184719"><a href="#dds_projectid__section127010198244">Obtain a Project ID from the Console</a></li></ul>
|
|
</div>
|
|
<div class="section" id="dds_projectid__section18520151052413"><a name="dds_projectid__section18520151052413"></a><a name="section18520151052413"></a><h4 class="sectiontitle">Obtaining the Project ID by Calling an API</h4><p id="dds_projectid__en-us_topic_0111868863_p857314915139">The API used to obtain a project ID is <strong id="dds_projectid__b312654014207">GET https://{Endpoint}/v3/projects</strong>. <strong id="dds_projectid__b20126340182020">{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="dds_api_0010.html">Authentication</a>.</p>
|
|
<p id="dds_projectid__en-us_topic_0111868863_p3770181514218">The following is an example response. The value of <strong id="dds_projectid__b126652044182110">id</strong> is the project ID.</p>
|
|
<pre class="screen" id="dds_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="dds_projectid__section127010198244"><a name="dds_projectid__section127010198244"></a><a name="section127010198244"></a><h4 class="sectiontitle">Obtain a Project ID from the Console</h4><ol id="dds_projectid__ol117026301421"><li id="dds_projectid__li147028301824">Register yourself on the management console and log in to it.</li><li id="dds_projectid__li3996134016711">Move your pointer over the username and select <strong id="dds_projectid__b783154810">My Credential</strong> in the displayed drop-down list.<p id="dds_projectid__p168811428710">On the <strong id="dds_projectid__b1059816482039">My Credential</strong> page, view the project ID in the project list.</p>
|
|
<div class="fignone" id="dds_projectid__en-us_topic_0111868863_fig39324824103512"><span class="figcap"><b>Figure 1 </b>Viewing project IDs</span><br><span><img id="dds_projectid__en-us_topic_0111868863_image538470016132" src="en-us_image_0000001803204868.jpg"></span></div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_public_parameters.html">Appendix</a></div>
|
|
</div>
|
|
</div>
|
|
|