forked from docs/doc-exports
MRS API Doc 20240802 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<p id="mrs_02_0011__p748044519418">If there are multiple projects in one region, expand <strong id="mrs_02_0011__b36307239217">Region</strong> and view subproject IDs in the <strong id="mrs_02_0011__b1463242319212">Project ID</strong> column.</p>
|
||||
</div>
|
||||
<div class="section" id="mrs_02_0011__section199243176407"><h4 class="sectiontitle">Obtaining a Project ID by Calling an API</h4><p id="mrs_02_0011__p188021379593">You can obtain the project ID by calling the IAM API used to query project information based on the specified criteria.</p>
|
||||
<p id="mrs_02_0011__p5924317194011">The API used to obtain a project ID is <strong id="mrs_02_0011__b1628111114378">GET https://</strong><em id="mrs_02_0011__i1262911115377">{Endpoint}</em><strong id="mrs_02_0011__b10629161116372">/v3/projects</strong>. <em id="mrs_02_0011__i176294111370">{Endpoint}</em> 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="mrs_02_0009.html">Authentication</a>.</p>
|
||||
<p id="mrs_02_0011__p5924317194011">The API used to obtain a project ID is <strong id="mrs_02_0011__b1628111114378">GET https://</strong><em id="mrs_02_0011__i1262911115377">{Endpoint}</em><strong id="mrs_02_0011__b10629161116372">/v3/projects</strong>. <em id="mrs_02_0011__i176294111370">{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="mrs_02_0009.html">Authentication</a>.</p>
|
||||
<p id="mrs_02_0011__p11925101711406">The following is an example response. The value of <strong id="mrs_02_0011__b1921338123016">id</strong> under <strong id="mrs_02_0011__b19933381303">projects</strong> is the project ID of the region specified by <strong id="mrs_02_0011__b329762511172">name</strong>.</p>
|
||||
<pre class="screen" id="mrs_02_0011__screen199253174407">{
|
||||
"projects": [
|
||||
|
||||
Reference in New Issue
Block a user