Skip to content

Commit b314617

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[DOCS-12652] Document permissions automatically added to new roles (#1825)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e1fc9a8 commit b314617

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168771,7 +168771,21 @@ paths:
168771168771
permissions:
168772168772
- user_access_read
168773168773
post:
168774-
description: Create a new role for your organization.
168774+
description: |-
168775+
Create a new role for your organization.
168776+
168777+
The following read permissions are automatically added to every new role, even if they are not included in the request:
168778+
168779+
- Dashboards Read
168780+
- Notebooks Read
168781+
- Monitors Read
168782+
- APM Read
168783+
- Vulnerability Management Read
168784+
- RUM Apps Read
168785+
- Incidents Read
168786+
- SLOs Read
168787+
- CI Visibility Read
168788+
- CD Visibility Read
168775168789
operationId: CreateRole
168776168790
requestBody:
168777168791
content:

src/datadogV2/api/api_roles.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,19 @@ impl RolesAPI {
763763
}
764764

765765
/// Create a new role for your organization.
766+
///
767+
/// The following read permissions are automatically added to every new role, even if they are not included in the request:
768+
///
769+
/// - Dashboards Read
770+
/// - Notebooks Read
771+
/// - Monitors Read
772+
/// - APM Read
773+
/// - Vulnerability Management Read
774+
/// - RUM Apps Read
775+
/// - Incidents Read
776+
/// - SLOs Read
777+
/// - CI Visibility Read
778+
/// - CD Visibility Read
766779
pub async fn create_role(
767780
&self,
768781
body: crate::datadogV2::model::RoleCreateRequest,
@@ -782,6 +795,19 @@ impl RolesAPI {
782795
}
783796

784797
/// Create a new role for your organization.
798+
///
799+
/// The following read permissions are automatically added to every new role, even if they are not included in the request:
800+
///
801+
/// - Dashboards Read
802+
/// - Notebooks Read
803+
/// - Monitors Read
804+
/// - APM Read
805+
/// - Vulnerability Management Read
806+
/// - RUM Apps Read
807+
/// - Incidents Read
808+
/// - SLOs Read
809+
/// - CI Visibility Read
810+
/// - CD Visibility Read
785811
pub async fn create_role_with_http_info(
786812
&self,
787813
body: crate::datadogV2::model::RoleCreateRequest,

0 commit comments

Comments
 (0)