case_project_favorites
Creates, updates, deletes, gets or lists a case_project_favorites resource.
Overview
| Name | case_project_favorites |
| Type | Resource |
| Id | datadog.service_management.case_project_favorites |
Fields
The following fields are returned by SELECT queries:
- list_user_case_project_favorites
| Name | Datatype | Description |
|---|---|---|
id | string | The UUID of the favorited project. (example: e555e290-ed65-49bd-ae18-8acbfcf18db7) |
type | string | JSON:API resource type for project favorites. (project_favorite) (default: project_favorite, example: project_favorite) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_user_case_project_favorites | select | Returns the list of case projects that the current authenticated user has marked as favorites. | ||
favorite_case_project | insert | project_id | Marks a case project as a favorite for the current authenticated user. | |
unfavorite_case_project | delete | project_id | Removes a case project from the current user's favorites list. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
project_id | string | Project UUID. (example: e555e290-ed65-49bd-ae18-8acbfcf18db7) |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
SELECT examples
- list_user_case_project_favorites
Returns the list of case projects that the current authenticated user has marked as favorites.
SELECT
id,
type
FROM datadog.service_management.case_project_favorites
;
INSERT examples
- favorite_case_project
- Manifest
Marks a case project as a favorite for the current authenticated user.
INSERT INTO datadog.service_management.case_project_favorites (
project_id
)
SELECT
'{{ project_id }}'
;
# Description fields are for documentation purposes
- name: case_project_favorites
props:
- name: project_id
value: "{{ project_id }}"
description: Required parameter for the case_project_favorites resource.
DELETE examples
- unfavorite_case_project
Removes a case project from the current user's favorites list.
DELETE FROM datadog.service_management.case_project_favorites
WHERE project_id = '{{ project_id }}' --required
;