doc-exports/docs/dli/api-ref/dli_02_0299.html
Su, Xiaomeng 483e5cc6cc dli_api_20240430
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2024-05-15 12:04:03 +00:00

141 lines
12 KiB
HTML

<a name="dli_02_0299"></a><a name="dli_02_0299"></a>
<h1 class="topictitle1">Creating a DLI Agency (Discarded)</h1>
<div id="body1596422865256"><div class="section" id="dli_02_0299__section18998185384911"><h4 class="sectiontitle">Function</h4><p id="dli_02_0299__p342141019132">This API is used to create an agency for a DLI user.</p>
<div class="note" id="dli_02_0299__note794562214412"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0299__dli_02_0298_p69451622184111">This API has been discarded and is not recommended.</p>
</div></div>
</div>
<div class="section" id="dli_02_0299__s9e1b8ec5b57c422a942b19835da7d66e"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0299__en-us_topic_0069077927_ul10082125"><li id="dli_02_0299__en-us_topic_0069077927_li23630265">URI format<p id="dli_02_0299__en-us_topic_0069077927_p11345797"><a name="dli_02_0299__en-us_topic_0069077927_li23630265"></a><a name="en-us_topic_0069077927_li23630265"></a>POST /v2/{project_id}/agency</p>
</li><li id="dli_02_0299__li1725612218454">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0299__en-us_topic_0069077803_table60779388" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter</caption><thead align="left"><tr id="dli_02_0299__en-us_topic_0069077803_row61411666"><th align="left" class="cellrowborder" valign="top" width="13.900000000000002%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0299__a420a62a594f9410eaea229ffc8037a61">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.42%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0299__en-us_topic_0069077803_p873025824211">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.03%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0299__p7982123815147">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="64.64999999999999%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0299__a692d3cd97b464aed90ba6d841900a4a5">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0299__en-us_topic_0069077803_row48589216"><td class="cellrowborder" valign="top" width="13.900000000000002%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0299__en-us_topic_0069077803_p43412436">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.42%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0299__en-us_topic_0069077803_p26746391">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11.03%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0299__p79838386148">String</p>
</td>
<td class="cellrowborder" valign="top" width="64.64999999999999%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0299__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dli_02_0299__section20458182103"><h4 class="sectiontitle">Request</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0299__table127313925813" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="dli_02_0299__row137326917589"><th align="left" class="cellrowborder" valign="top" width="8.74%" id="mcps1.3.3.2.2.5.1.1"><p id="dli_02_0299__p12732995582">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.49%" id="mcps1.3.3.2.2.5.1.2"><p id="dli_02_0299__p1573239185818">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.139999999999999%" id="mcps1.3.3.2.2.5.1.3"><p id="dli_02_0299__p144204427586">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="68.63%" id="mcps1.3.3.2.2.5.1.4"><p id="dli_02_0299__p1473219916588">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0299__row273218965810"><td class="cellrowborder" valign="top" width="8.74%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0299__p1144183305813">roles</p>
</td>
<td class="cellrowborder" valign="top" width="9.49%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0299__p1144633185817">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="13.139999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0299__p184201442105819">Array of Strings</p>
</td>
<td class="cellrowborder" valign="top" width="68.63%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0299__p956818152532">Role.</p>
<p id="dli_02_0299__p1147911383537">Currently, only <strong id="dli_02_0299__b21061736114311">obs_adm</strong>, <strong id="dli_02_0299__b1929133913435">dis_adm</strong>, <strong id="dli_02_0299__b11746174218432">ctable_adm</strong>, <strong id="dli_02_0299__b492119463435">vpc_netadm</strong>, <strong id="dli_02_0299__b937335764418">smn_adm</strong>, and <strong id="dli_02_0299__b4339729451">te_admin</strong> are supported.</p>
<p id="dli_02_0299__p193112404590"> </p>
<ul id="dli_02_0299__ul1951443125312"><li id="dli_02_0299__li4511343205317"><strong id="dli_02_0299__b580310183168">obs_adm</strong>: Administrator permissions for accessing and using the Object Storage Service.</li><li id="dli_02_0299__li95174311536"><strong id="dli_02_0299__b172148218168">dis_adm</strong>: Administrator permissions for using Data Ingestion Service data as the data source</li><li id="dli_02_0299__li125134316539"><strong id="dli_02_0299__b48122351612">ctable_adm</strong>: Administrator permissions for accessing and using the CloudTable service</li><li id="dli_02_0299__li145116437531"><strong id="dli_02_0299__b74901135201617">vpc_netadm</strong>: Administrator permissions for using the Virtual Private Cloud service</li><li id="dli_02_0299__li19519438537"><strong id="dli_02_0299__b126293385161">smn_adm</strong>: Administrator permissions for using the Simple Message Notification service</li><li id="dli_02_0299__li14516431532"><strong id="dli_02_0299__b13384164210164">te_admin</strong>: Tenant Administrator permissions</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0299__sd1ecb66580054b2ea403be8b2272a2c7"><h4 class="sectiontitle">Response</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0299__en-us_topic_0069077927_table56638444" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0299__en-us_topic_0069077927_row48911609"><th align="left" class="cellrowborder" valign="top" width="16.88%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0299__ae076f6b3f1bf463b9cc087fc566253d5">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.83%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0299__p12583123083811">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.41%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0299__a59685f4525af4d82a623288ff8ccb0f4">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.88%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0299__en-us_topic_0069077927_p632718127368">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0299__en-us_topic_0069077927_row27919264"><td class="cellrowborder" valign="top" width="16.88%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0299__en-us_topic_0069077927_p46867877">is_success</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0299__p9584230133817">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0299__en-us_topic_0069077927_p7327597">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0299__en-us_topic_0069077927_p56664447">Indicates whether the request is successfully executed. Value <span class="parmvalue" id="dli_02_0299__parmvalue162031279454"><b>true</b></span> indicates that the request is successfully executed.</p>
</td>
</tr>
<tr id="dli_02_0299__en-us_topic_0069077927_row40217981"><td class="cellrowborder" valign="top" width="16.88%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0299__en-us_topic_0069077927_p36431005">message</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0299__p95842301382">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.41%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0299__en-us_topic_0069077927_p49163111">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.88%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0299__a4fa277540d3e42e48cec2027a36ca6bc">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0299__section15772143623410"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0299__p165644255546">Create a DLI user agency. The agency has the following permissions: <strong id="dli_02_0299__b14604105613404">CloudTable Administrator</strong> for accessing and using CloudTable, <strong id="dli_02_0299__b1581331219415">VPC Administrator</strong> for using VPC, <strong id="dli_02_0299__b4152740184215">DIS Administrator</strong> for accessing and using DIS, <strong id="dli_02_0299__b1099213565422">SMN Administrator</strong> for using SMN, and accessing and using OBS.</p>
<pre class="screen" id="dli_02_0299__screen764214332619">{
"roles": [
"ctable_adm",
"vpc_netadm",
"dis_adm",
"smn_adm",
"obs_adm"
]
}</pre>
</div>
<div class="section" id="dli_02_0299__section59635464345"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0299__screen4559121772114">{
"is_success": true,
"message": ""
}</pre>
</div>
<div class="section" id="dli_02_0299__s1b495ba11cd9411c9ad2ee50103334a7"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0299__acef1445366354016b2ed90921927a555"><a href="#dli_02_0299__t43c1f1c0ba344f4cbcb270953d9cca2a">Table 4</a> describes status codes.</p>
<div class="tablenoborder"><a name="dli_02_0299__t43c1f1c0ba344f4cbcb270953d9cca2a"></a><a name="t43c1f1c0ba344f4cbcb270953d9cca2a"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0299__t43c1f1c0ba344f4cbcb270953d9cca2a" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Status codes</caption><thead align="left"><tr id="dli_02_0299__r2ad0f008ce2248a1800a3e8b77226a56"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0299__afa33b7f5b0ac4d008ebcf6493f629b24">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0299__af801170b350b4f8ba3b575c7ddb8b13e">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0299__r0b449b1d3b8c498ea3e6cce16c80a14c"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0299__a8c63a97e3bad402ebaead0bd99cad632">200</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0299__p528373855714">The job is created successfully.</p>
</td>
</tr>
<tr id="dli_02_0299__row1012873412149"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0299__p1912813348145">400</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0299__p154287617445">Request failure.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0299__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0299__dli_02_0225_p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0297.html">Agency-related APIs (Discarded)</a></div>
</div>
</div>