forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
63 lines
14 KiB
HTML
63 lines
14 KiB
HTML
<a name="mrs_01_24142"></a><a name="mrs_01_24142"></a>
|
|
|
|
<h1 class="topictitle1">Creating an IoTDB Role</h1>
|
|
<div id="body0000001583150765"><p id="mrs_01_24142__a6ab4909b056b40e4a00dfe5470f9c7c4">Create and configure an IoTDB role on Manager as an MRS cluster administrator. An IoTDB role can be configured with IoTDB administrator permissions or a common user's permissions to read, write, or delete data.</p>
|
|
<div class="section" id="mrs_01_24142__s1bcc316cdf0d4c8393088695f012466e"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_24142__u8b17ec54ddd54ae48f8a71bd33901d48"><li id="mrs_01_24142__li17830161512010">The MRS cluster administrator has understood service requirements.</li><li id="mrs_01_24142__li2926326174818">You have installed the IoTDB client.</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_24142__section1129312014453"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_24142__ol9244247181719"><li id="mrs_01_24142__l7bf2fec327e64c74a810a6d9868dccc2"><span>On Manager, choose <strong id="mrs_01_24142__b3925109648566">System </strong>> <strong id="mrs_01_24142__b18768354668566">Permission </strong>> <strong id="mrs_01_24142__b13348974678566">Role</strong>.</span></li><li id="mrs_01_24142__l384619f400714a499acf3f190486b551"><span>On the displayed page, click <strong id="mrs_01_24142__b980672578566">Create Role</strong> and specify <strong id="mrs_01_24142__b15214109428566">Role Name</strong> and <strong id="mrs_01_24142__b17626395458566">Description</strong>.</span></li><li id="mrs_01_24142__l8c8314cfaae741fdb765b123d68968a9"><span>Configure <strong id="mrs_01_24142__b625963013361">Configure Resource Permission</strong>. For details, see <a href="#mrs_01_24142__t873a9c44357b40cd98cb948ce9438d93">Table 1</a>.</span><p><p id="mrs_01_24142__afcc0faa989194357a61da9de3606ab8a">IoTDB permissions:</p>
|
|
<ul id="mrs_01_24142__u3431e698392949ebb0755cca3cf8fe7e"><li id="mrs_01_24142__l7bb92b4600e34a61b96fc8f208ce13f0"><strong id="mrs_01_24142__b16738630144016">Common User Privileges</strong>: includes data operation permissions. Permissions on the IoTDB <strong id="mrs_01_24142__b74391526104614">root</strong> directory, storage group, and any node path from a storage group to a time series can be granted selectively. The minimum permissions are read, write, modify, and delete permissions on the time series.</li><li id="mrs_01_24142__l320823236dd145a9a71786cc613c0046"><strong id="mrs_01_24142__b17479255132319">IoTDB Admin Privilege</strong>: includes all permissions in <a href="mrs_01_24141.html#mrs_01_24141__table1392557124016">Table 1</a>.</li></ul>
|
|
|
|
<div class="tablenoborder"><a name="mrs_01_24142__t873a9c44357b40cd98cb948ce9438d93"></a><a name="t873a9c44357b40cd98cb948ce9438d93"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24142__t873a9c44357b40cd98cb948ce9438d93" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Configuring a role</caption><thead align="left"><tr id="mrs_01_24142__r22d8abe0340447d689b9e0e015272547"><th align="left" class="cellrowborder" valign="top" width="30.259999999999998%" id="mcps1.3.3.2.3.2.3.2.3.1.1"><p id="mrs_01_24142__ac6fb62376c174fb5a3fc46f3ac6455d4">Scenario</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.74000000000001%" id="mcps1.3.3.2.3.2.3.2.3.1.2"><p id="mrs_01_24142__aa62388fc922c4b9d9bf078faefd25db3">Role Authorization</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24142__row62954416143450"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__p39209373143450">Configuring the IoTDB administrator permission</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><p id="mrs_01_24142__p17770765143450">In the <strong id="mrs_01_24142__b6377184193817">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i4377164113811">Name of the desired cluster</em> > <strong id="mrs_01_24142__b8377141143811">IoTDB</strong> and select <strong id="mrs_01_24142__b15378141193816">IoTDB Admin Privilege</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__r5dfed8c26b5f4a208625be1492d26005"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__a41b42dfe116b448e9c83482bba5070b3">Configuring the permission for users to create storage groups</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__o637a274405c540a28eb3e2d9087eae63"><li id="mrs_01_24142__l384a221a63e744c788e6207e93b71986">In the <strong id="mrs_01_24142__b833873204319">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i19345203234319">Name of the desired cluster</em> > <strong id="mrs_01_24142__b13345143274312">IoTDB</strong> > <strong id="mrs_01_24142__b6345203274310">Common User Privileges</strong>.</li><li id="mrs_01_24142__l5066d959948d48cba14ef10e903dde48">Select <strong id="mrs_01_24142__b1493341384412">Set StorageGroup</strong> for the <strong id="mrs_01_24142__b4341920144711">root</strong> directory.</li><li id="mrs_01_24142__li8407105514013">A user with this permission can create storage groups in the <strong id="mrs_01_24142__b880582617475">root</strong> directory.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__ra5f354c6849d44edbeed327936919363"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__a6c2cafda8f5b409ba74b68582842934f">Configuring the permission for users to create time series</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__ob98db7ec463946fab48b32af2a41711a"><li id="mrs_01_24142__l03667d6b1cc545f2afd38f8a5cd4606b">In the <strong id="mrs_01_24142__b1766192133215">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i1366262163218">Name of the desired cluster</em> > <strong id="mrs_01_24142__b2066219293213">IoTDB</strong> > <strong id="mrs_01_24142__b16621523324">Common User Privileges</strong>.</li><li id="mrs_01_24142__li9131143219485">Select <strong id="mrs_01_24142__b1174010574618">Create</strong> for the <strong id="mrs_01_24142__b370214412471">root</strong> directory. You will have the permission to create time series in all recursive paths in the <strong id="mrs_01_24142__b131901673483">root</strong> directory.</li><li id="mrs_01_24142__l4a0d53c830f2446ebf4750f4e136bbfa">Click <strong id="mrs_01_24142__b197047150481">root</strong> to go to the storage group page and select the <strong id="mrs_01_24142__b21321223135115">Create</strong> permission for the corresponding storage group. You will have the permission to create time series in all recursive paths in the storage group directory.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__row1950063320373"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__p9500163312373">Configuring the permission for users to modify time series</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__ol5300122013620"><li id="mrs_01_24142__li83005201867">In the <strong id="mrs_01_24142__b808725934">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i1740269027">Name of the desired cluster</em> > <strong id="mrs_01_24142__b1601929378">IoTDB</strong> > <strong id="mrs_01_24142__b2074616958">Common User Privileges</strong>.</li><li id="mrs_01_24142__li19300020566">Select <strong id="mrs_01_24142__b18109634174519">Alter</strong> for the <strong id="mrs_01_24142__b6109103418457">root</strong> directory. You will have the permission to modify time series in all recursive paths in the <strong id="mrs_01_24142__b4109173411450">root</strong> directory.</li><li id="mrs_01_24142__li230118201868">Click <strong id="mrs_01_24142__b675184424611">root</strong> to go to the storage group page and select the <strong id="mrs_01_24142__b175124414611">Alter</strong> permission for the corresponding storage group. You will have the permission to modify time series in all recursive paths of the storage group.</li><li id="mrs_01_24142__li17301112018616">Click the specified storage group to go the time series page and select the <strong id="mrs_01_24142__b155281222124714">Alter</strong> permission for the corresponding time series. You will have the permission to modify the time series.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__r6c36edec31fa430c91f7ad84f3e9a0ff"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__adaee6dab764348d083aca4da79c6e99b">Configuring the permission for users to insert data into time series</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__oa30fe88c86374c54947cf54944c691b6"><li id="mrs_01_24142__li1515144716418">In the <strong id="mrs_01_24142__b17624114494816">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i186306441488">Name of the desired cluster</em> > <strong id="mrs_01_24142__b563024420481">IoTDB</strong> > <strong id="mrs_01_24142__b1363084413487">Common User Privileges</strong>.</li><li id="mrs_01_24142__li1851518471545">Select <strong id="mrs_01_24142__b1251333314468">Insert</strong> for the <strong id="mrs_01_24142__b14916114974619">root</strong> directory. You will have the permission to insert data into the time series in all recursive paths in the <strong id="mrs_01_24142__b19479114619474">root</strong> directory.</li><li id="mrs_01_24142__li155156471745">Click <strong id="mrs_01_24142__b767561011494">root</strong> to go to the storage group page and select the <strong id="mrs_01_24142__b1847193724916">Insert</strong> permission for the corresponding storage group. You will have the permission to insert data into the time series in all recursive paths of the storage group.</li><li id="mrs_01_24142__li67944270718">Click the specified storage group to go the time series page and select the <strong id="mrs_01_24142__b1303775610">Insert</strong> permission for the corresponding time series. You will have the permission to insert data into the time series.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__r95be17dbfe5646919d7299c1e229900e"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__ad1db0bbdb9ec47cd95f0101bcc3f8699">Configuring the permission for users to read data from time series</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__o4fec88099543498580262f53621ac547"><li id="mrs_01_24142__li3244203271419">In the <strong id="mrs_01_24142__b1784818116493">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i20854151184918">Name of the desired cluster</em> > <strong id="mrs_01_24142__b188541914494">IoTDB</strong> > <strong id="mrs_01_24142__b108546164910">Common User Privileges</strong>.</li><li id="mrs_01_24142__li72441832161412">Select <strong id="mrs_01_24142__b346512119920">Read</strong> for the <strong id="mrs_01_24142__b24712011593">root</strong> directory. You will have the permission to read data from the time series in all recursive paths in the <strong id="mrs_01_24142__b1347116111918">root</strong> directory.</li><li id="mrs_01_24142__li162457327144">Click <strong id="mrs_01_24142__b1662553819100">root</strong> to go to the storage group page and select the <strong id="mrs_01_24142__b9631338191013">Read</strong> permission for the corresponding storage group. You will have the permission to read data from the time series in all recursive paths of the storage group.</li><li id="mrs_01_24142__li12245932121411">Click the specified storage group to go the time series page and select the <strong id="mrs_01_24142__b1442711132492">Read</strong> permission for the corresponding time series. You will have the permission to read data from the time series.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24142__rd18a916a62e0438291e70f9ddf14c7e7"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.3.2.3.2.3.2.3.1.1 "><p id="mrs_01_24142__acbb7239ce1a54b668354ecfc89b0b91a">Configuring the permission for users to delete time series</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.3.2.3.2.3.2.3.1.2 "><ol type="a" id="mrs_01_24142__ol16615127171719"><li id="mrs_01_24142__li661516751713">In the <strong id="mrs_01_24142__b14785617124914">Configure Resource Permission</strong> table, choose <em id="mrs_01_24142__i16790121711494">Name of the desired cluster</em> > <strong id="mrs_01_24142__b1679111704915">IoTDB</strong> > <strong id="mrs_01_24142__b117912176491">Common User Privileges</strong>.</li><li id="mrs_01_24142__li2615127141715">Select <strong id="mrs_01_24142__b1261915207155">Delete</strong> for the <strong id="mrs_01_24142__b18625192071517">root</strong> directory. You will have the permission to delete data or time series in all recursive paths in the <strong id="mrs_01_24142__b1062512011515">root</strong> directory.</li><li id="mrs_01_24142__li1961513716173">Click <strong id="mrs_01_24142__b242072841714">root</strong> to go to the storage group page and select the <strong id="mrs_01_24142__b0420828201710">Delete</strong> permission for the corresponding storage group. You will have the permission to delete data or time series in all recursive paths of the storage group.</li><li id="mrs_01_24142__li2061511771718">Click the specified storage group to go the time series page and select the <strong id="mrs_01_24142__b93981343171818">Delete</strong> permission for the corresponding time series. You will have the permission to delete data from the time series or delete the time series.</li></ol>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24140.html">IoTDB Permission Management</a></div>
|
|
</div>
|
|
</div>
|
|
|