Skip to content

Commit

Permalink
Add 'team' and 'user' principals to restriction_policy documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-dd committed Oct 17, 2024
1 parent d706ac3 commit 45040b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadog/fwprovider/resource_datadog_restriction_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (r *RestrictionPolicyResource) Schema(_ context.Context, _ resource.SchemaR
},
"principals": schema.SetAttribute{
Required: true,
Description: "An array of principals. A principal is a subject or group of subjects. Each principal is formatted as `type:id`. Supported types: `role` and `org`. The org ID can be obtained through the api/v2/users API.",
Description: "An array of principals. A principal is a subject or group of subjects. Each principal is formatted as `type:id`. Supported types: `role`, `team`, `user`, and `org`. Org ID can be obtained from the GET /api/v2/current_user API request. Find it in the `data.relationships.org.data.id` field.",
ElementType: types.StringType,
},
},
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/restriction_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Note: Dashboards support is in private beta. Reach out to your Datadog contact o

Required:

- `principals` (Set of String) An array of principals. A principal is a subject or group of subjects. Each principal is formatted as `type:id`. Supported types: `role` and `org`. The org ID can be obtained through the api/v2/users API.
- `principals` (Set of String) An array of principals. A principal is a subject or group of subjects. Each principal is formatted as `type:id`. Supported types: `role`, `team`, `user`, and `org`. Org ID can be obtained from the [GET /api/v2/current_user API](https://app.datadoghq.com/api/v2/current_user) request. Find it in the `data.relationships.org.data.id` field.
- `relation` (String) The role/level of access. See this page for more details https://docs.datadoghq.com/api/latest/restriction-policies/#supported-relations-for-resources

## Import
Expand Down

0 comments on commit 45040b5

Please sign in to comment.