Skip to content

Commit 41eb287

Browse files
Add receives_permissions_from field to Roles API (#3179)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> bc0c103
1 parent d95f974 commit 41eb287

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

datadog_api_client.v2.api.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12910,6 +12910,8 @@ <h2 id="submodules">Submodules<a class="headerlink" href="#submodules" title="Li
1291012910
in the Datadog application without using this API. For example, granting
1291112911
read access on a specific log index to a role can be done in Datadog from the
1291212912
<a class="reference external" href="https://app.datadoghq.com/logs/pipelines">Pipelines page</a>.</p>
12913+
<p>Roles can also be managed in bulk through the Datadog UI, which provides
12914+
the capability to assign a single permission to multiple roles simultaneously.</p>
1291312915
<dl class="py method">
1291412916
<dt class="sig sig-object py" id="datadog_api_client.v2.api.roles_api.RolesApi.add_permission_to_role">
1291512917
<span class="sig-name descname"><span class="pre">add_permission_to_role</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">role_id</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">body</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="datadog_api_client.v2.model.html#datadog_api_client.v2.model.relationship_to_permission.RelationshipToPermission" title="datadog_api_client.v2.model.relationship_to_permission.RelationshipToPermission"><span class="pre">RelationshipToPermission</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="datadog_api_client.v2.model.html#datadog_api_client.v2.model.permissions_response.PermissionsResponse" title="datadog_api_client.v2.model.permissions_response.PermissionsResponse"><span class="pre">PermissionsResponse</span></a></span></span><a class="headerlink" href="#datadog_api_client.v2.api.roles_api.RolesApi.add_permission_to_role" title="Link to this definition">¶</a></dt>

datadog_api_client.v2.model.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99797,6 +99797,9 @@ <h2 id="submodules">Submodules<a class="headerlink" href="#submodules" title="Li
9979799797
<li><p><strong>created_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Creation time of the role.</p></li>
9979899798
<li><p><strong>modified_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Time of last role modification.</p></li>
9979999799
<li><p><strong>name</strong> (<em>str</em><em>, </em><em>optional</em>) – The name of the role. The name is neither unique nor a stable identifier of the role.</p></li>
99800+
<li><p><strong>receives_permissions_from</strong> (<em>[</em><em>str</em><em>]</em><em>, </em><em>optional</em>) – The managed role from which this role automatically inherits new permissions.
99801+
Specify one of the following: “Datadog Admin Role”, “Datadog Standard Role”, or “Datadog Read Only Role”.
99802+
If empty or not specified, the role does not automatically inherit permissions from any managed role.</p></li>
9980099803
<li><p><strong>user_count</strong> (<em>int</em><em>, </em><em>optional</em>) – Number of users with that role.</p></li>
9980199804
</ul>
9980299805
</dd>
@@ -99837,7 +99840,12 @@ <h2 id="submodules">Submodules<a class="headerlink" href="#submodules" title="Li
9983799840
<p>Attributes required to create a new role by cloning an existing one.</p>
9983899841
<dl class="field-list simple">
9983999842
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
99840-
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – Name of the new role that is cloned.</p>
99843+
<dd class="field-odd"><ul class="simple">
99844+
<li><p><strong>name</strong> (<em>str</em>) – Name of the new role that is cloned.</p></li>
99845+
<li><p><strong>receives_permissions_from</strong> (<em>[</em><em>str</em><em>]</em><em>, </em><em>optional</em>) – The managed role from which this role automatically inherits new permissions.
99846+
Specify one of the following: “Datadog Admin Role”, “Datadog Standard Role”, or “Datadog Read Only Role”.
99847+
If empty or not specified, the role does not automatically inherit permissions from any managed role.</p></li>
99848+
</ul>
9984199849
</dd>
9984299850
</dl>
9984399851
</dd></dl>
@@ -99877,6 +99885,9 @@ <h2 id="submodules">Submodules<a class="headerlink" href="#submodules" title="Li
9987799885
<li><p><strong>created_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Creation time of the role.</p></li>
9987899886
<li><p><strong>modified_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Time of last role modification.</p></li>
9987999887
<li><p><strong>name</strong> (<em>str</em>) – Name of the role.</p></li>
99888+
<li><p><strong>receives_permissions_from</strong> (<em>[</em><em>str</em><em>]</em><em>, </em><em>optional</em>) – The managed role from which this role automatically inherits new permissions.
99889+
Specify one of the following: “Datadog Admin Role”, “Datadog Standard Role”, or “Datadog Read Only Role”.
99890+
If empty or not specified, the role does not automatically inherit permissions from any managed role.</p></li>
9988099891
</ul>
9988199892
</dd>
9988299893
</dl>
@@ -100126,6 +100137,9 @@ <h2 id="submodules">Submodules<a class="headerlink" href="#submodules" title="Li
100126100137
<li><p><strong>created_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Creation time of the role.</p></li>
100127100138
<li><p><strong>modified_at</strong> (<em>datetime</em><em>, </em><em>optional</em>) – Time of last role modification.</p></li>
100128100139
<li><p><strong>name</strong> (<em>str</em><em>, </em><em>optional</em>) – Name of the role.</p></li>
100140+
<li><p><strong>receives_permissions_from</strong> (<em>[</em><em>str</em><em>]</em><em>, </em><em>optional</em>) – The managed role from which this role automatically inherits new permissions.
100141+
Specify one of the following: “Datadog Admin Role”, “Datadog Standard Role”, or “Datadog Read Only Role”.
100142+
If empty or not specified, the role does not automatically inherit permissions from any managed role.</p></li>
100129100143
<li><p><strong>user_count</strong> (<em>int</em><em>, </em><em>optional</em>) – The user count.</p></li>
100130100144
</ul>
100131100145
</dd>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)