Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 106 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30868,9 +30868,10 @@ components:
additionalProperties: {}
description: The set of attributes recorded for the entity at this revision. The keys depend on the kind of entity.
example:
accounts:
- linked-account-123
display_name: Test User
emails:
- user@example.com
email: user@example.com
principal_id: user@example.com
type: object
EntityData:
Expand Down Expand Up @@ -86488,6 +86489,14 @@ components:
type: string
x-enum-varnames:
- AGGREGATED_DNS
SingleEntityContextResponse:
description: Response from the single entity context endpoint, containing the matching entity.
properties:
data:
$ref: "#/components/schemas/EntityContextEntity"
required:
- data
type: object
SlackIntegrationMetadata:
description: Incident integration metadata for the Slack integration.
properties:
Expand Down Expand Up @@ -163328,9 +163337,10 @@ paths:
- attributes:
revisions:
- attributes:
accounts:
- linked-account-123
display_name: Test User
emails:
- user@example.com
email: user@example.com
principal_id: user@example.com
first_seen_at: "2026-04-01T00:00:00Z"
last_seen_at: "2026-05-01T00:00:00Z"
Expand Down Expand Up @@ -163361,7 +163371,98 @@ paths:
permissions:
- siem_entities_read
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/security_monitoring/entity_context/{id}:
get:
description: |-
Get a single entity from the Cloud SIEM entity context store by its identifier, returning the historical
revisions of the entity in the requested time range. The endpoint can either return revisions across an
interval (`from` / `to`) or the snapshot of the entity at a single point in time (`as_of`); the two modes
are mutually exclusive.
operationId: GetSingleEntityContext
parameters:
- description: The unique identifier of the entity to retrieve.
in: path
name: id
required: true
schema:
example: user@example.com
type: string
- description: |-
The start of the time range to query, as an RFC3339 timestamp or a relative time (for example, `now-7d`).
Defaults to `now-7d`. Ignored when `as_of` is set.
in: query
name: from
required: false
schema:
default: now-7d
example: now-7d
type: string
- description: |-
The end of the time range to query, as an RFC3339 timestamp or a relative time (for example, `now`).
Defaults to `now`. Ignored when `as_of` is set.
in: query
name: to
required: false
schema:
default: now
example: now
type: string
- description: |-
A point in time at which to query the entity revisions, as an RFC3339 timestamp, a Unix timestamp
(in seconds), or a relative time (for example, `now-1d`). When set, `from` and `to` are ignored.
Cannot be combined with custom `from` / `to` values.
example: now-1d
in: query
name: as_of
required: false
schema:
type: string
responses:
"200":
content:
application/json:
examples:
default:
value:
data:
attributes:
revisions:
- attributes:
accounts:
- linked-account-123
display_name: Test User
email: user@example.com
principal_id: user@example.com
first_seen_at: "2026-04-01T00:00:00Z"
last_seen_at: "2026-05-01T00:00:00Z"
id: user@example.com
type: siem_entity_identity
schema:
$ref: "#/components/schemas/SingleEntityContextResponse"
description: OK
"400":
$ref: "#/components/responses/BadRequestResponse"
"403":
$ref: "#/components/responses/NotAuthorizedResponse"
"404":
$ref: "#/components/responses/NotFoundResponse"
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- siem_entities_read
summary: Get a single entity context
tags: ["Security Monitoring"]
x-permission:
operator: OR
permissions:
- siem_entities_read
x-unstable: |-
**Note**: This endpoint is in Preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/security_monitoring/rules:
get:
Expand Down
25 changes: 25 additions & 0 deletions examples/v2/security-monitoring/GetSingleEntityContext.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Get a single entity context returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.SecurityMonitoringApi;
import com.datadog.api.client.v2.model.SingleEntityContextResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getSingleEntityContext", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
SingleEntityContextResponse result = apiInstance.getSingleEntityContext("user@example.com");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SecurityMonitoringApi#getSingleEntityContext");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
1 change: 1 addition & 0 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ public class ApiClient {
put("v2.getSecurityMonitoringHistsignalsByJobId", false);
put("v2.getSecurityMonitoringIntegrationConfig", false);
put("v2.getSignalEntities", false);
put("v2.getSingleEntityContext", false);
put("v2.getStaticAnalysisDefaultRulesets", false);
put("v2.getStaticAnalysisNodeTypes", false);
put("v2.getStaticAnalysisRuleset", false);
Expand Down
Loading
Loading