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>
43 lines
3.8 KiB
HTML
43 lines
3.8 KiB
HTML
<a name="EN-US_TOPIC_0000001917130752"></a><a name="EN-US_TOPIC_0000001917130752"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining a Project ID</h1>
|
|
<div id="body1592979868268"><div class="section" id="EN-US_TOPIC_0000001917130752__section666918252248"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000001917130752__p322932182217">When calling APIs, you need to specify the project ID in some URLs. To do so, you need to obtain the project ID using either of the following methods:</p>
|
|
<ul id="EN-US_TOPIC_0000001917130752__ul1938973714396"><li id="EN-US_TOPIC_0000001917130752__li183897377391"><a href="#EN-US_TOPIC_0000001917130752__section85791974381">Obtaining the Project ID by Calling an API</a></li><li id="EN-US_TOPIC_0000001917130752__li11307945123915"><a href="#EN-US_TOPIC_0000001917130752__section1952915126435">Obtaining a Project ID from the Console</a></li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001917130752__section85791974381"><a name="EN-US_TOPIC_0000001917130752__section85791974381"></a><a name="section85791974381"></a><h4 class="sectiontitle">Obtaining the Project ID by Calling an API</h4><p id="EN-US_TOPIC_0000001917130752__p857314915139">The API used to obtain a project ID is <strong id="EN-US_TOPIC_0000001917130752__b11784132725918">GET https://</strong><em id="EN-US_TOPIC_0000001917130752__i15785112712591">{Endpoint}</em><strong id="EN-US_TOPIC_0000001917130752__b127864277594">/v3/projects</strong>. <em id="EN-US_TOPIC_0000001917130752__i0786727145916">{Endpoint}</em> is the IAM endpoint and can be obtained from <a href="https://docs.otc.t-systems.com/regions-and-endpoints/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>. For details about API authentication, see <a href="opengauss_api_0010.html">Authentication</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001917130752__p3770181514218">The following is an example response. <strong id="EN-US_TOPIC_0000001917130752__b67341522114917">id</strong> indicates the project ID.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001917130752__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="EN-US_TOPIC_0000001917130752__section1952915126435"><a name="EN-US_TOPIC_0000001917130752__section1952915126435"></a><a name="section1952915126435"></a><h4 class="sectiontitle">Obtaining a Project ID from the Console</h4><ol id="EN-US_TOPIC_0000001917130752__ol145281212134316"><li id="EN-US_TOPIC_0000001917130752__li14527171210436"><span>Register yourself on the management console and log in to it.</span></li><li id="EN-US_TOPIC_0000001917130752__li12528131284314"><span id="EN-US_TOPIC_0000001917130752__p852701219438">On the <strong id="EN-US_TOPIC_0000001917130752__b13341325165217">My Credential</strong> page, view project IDs in the project list.</span><p><div class="fignone" id="EN-US_TOPIC_0000001917130752__fig1552811219438"><span class="figcap"><b>Figure 1 </b>Viewing project IDs</span><br><span><img id="EN-US_TOPIC_0000001917130752__image8528161218438" src="figure/en-us_image_0000001917290800.jpg"></span></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="opengauss_api_0030.html">Appendix</a></div>
|
|
</div>
|
|
</div>
|
|
|