Skip to content
Merged
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
191 changes: 191 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131811,6 +131811,137 @@ components:
x-enum-varnames:
- DONE
- TIMEOUT
SecurityMonitoringAWSIdentityCenterAWSAccount:
description: An integrated AWS account the AWS IAM Identity Center integration reads users from.
properties:
account_config_id:
description: The ID of the AWS account integration configuration.
example: 11111111-2222-3333-4444-555555555555
type: string
account_id:
description: The AWS account ID.
example: "111122223333"
type: string
account_name:
description: The name of the AWS account integration.
example: management
type: string
collecting_users:
description: Whether AWS IAM Identity Center users were collected from this AWS account.
example: false
type: boolean
resource_collection_enabled:
description: Whether resource collection is enabled for this AWS account.
example: true
type: boolean
required:
- account_id
- account_config_id
- account_name
- resource_collection_enabled
- collecting_users
type: object
SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes:
description: The attributes of the AWS IAM Identity Center AWS account prerequisites.
properties:
aws_accounts:
description: |-
The integrated AWS accounts that users are read from, including AWS Organization management accounts
and any accounts that users were collected from.
items:
$ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccount"
type: array
has_valid_prerequisite:
description: Whether AWS IAM Identity Center users were collected for the organization.
example: false
type: boolean
reason:
description: The missing setup step when `has_valid_prerequisite` is `false`.
example: Resource collection on an AWS Organization management account is required
type: string
required:
- aws_accounts
- has_valid_prerequisite
type: object
SecurityMonitoringAWSIdentityCenterAWSAccountsData:
description: The AWS account prerequisites for the AWS IAM Identity Center integration.
properties:
attributes:
$ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes"
id:
description: The ID of the organization the AWS accounts belong to.
example: "123456"
type: string
type:
$ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType"
required:
- id
- type
- attributes
type: object
SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType:
default: aws_identity_center_aws_accounts
description: The type of the resource. The value should always be `aws_identity_center_aws_accounts`.
enum:
- aws_identity_center_aws_accounts
example: aws_identity_center_aws_accounts
type: string
x-enum-varnames:
- AWS_IDENTITY_CENTER_AWS_ACCOUNTS
SecurityMonitoringAWSIdentityCenterAWSAccountsResponse:
description: Response containing the AWS account prerequisites for the AWS IAM Identity Center integration.
properties:
data:
$ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsData"
required:
- data
type: object
SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes:
description: |-
The attributes of an AWS IAM Identity Center entity context sync configuration to create. The sync reads
the users that the AWS integration collects, so it doesn't require any secrets.
properties:
domain:
description: The domain associated with the external entity source.
example: default
type: string
integration_type:
$ref: "#/components/schemas/SecurityMonitoringIntegrationTypeAWSIdentityCenter"
name:
description: The display name for the entity context sync configuration.
example: AWS IAM Identity Center
type: string
settings:
$ref: "#/components/schemas/SecurityMonitoringIntegrationConfigSettings"
required:
- integration_type
- domain
- name
type: object
SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes:
description: |-
Fields to update on an AWS IAM Identity Center entity context sync configuration. Enabling the sync requires
the AWS integration to have collected AWS IAM Identity Center users.
properties:
domain:
description: The new domain associated with the external entity source.
example: default
type: string
enabled:
description: Whether the entity context sync should be enabled.
example: true
type: boolean
integration_type:
$ref: "#/components/schemas/SecurityMonitoringIntegrationTypeAWSIdentityCenter"
name:
description: The new display name for the entity context sync configuration.
example: AWS IAM Identity Center (renamed)
type: string
settings:
$ref: "#/components/schemas/SecurityMonitoringIntegrationConfigSettings"
required:
- integration_type
type: object
SecurityMonitoringAzureAppRegistration:
description: An Azure App Registration discovered for the organization.
properties:
Expand Down Expand Up @@ -133993,6 +134124,7 @@ components:
- $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes"
SecurityMonitoringIntegrationConfigCreateData:
Expand Down Expand Up @@ -134144,6 +134276,7 @@ components:
- $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes"
SecurityMonitoringIntegrationConfigUpdateData:
Expand Down Expand Up @@ -134209,6 +134342,7 @@ components:
- GOOGLE_WORKSPACE
- OKTA
- ENTRA_ID
- AWS_IDENTITY_CENTER
- CROWDSTRIKE
- SENTINELONE
example: GOOGLE_WORKSPACE
Expand All @@ -134217,8 +134351,17 @@ components:
- GOOGLE_WORKSPACE
- OKTA
- ENTRA_ID
- AWS_IDENTITY_CENTER
- CROWDSTRIKE
- SENTINELONE
SecurityMonitoringIntegrationTypeAWSIdentityCenter:
description: The source type for an AWS IAM Identity Center entity context sync.
enum:
- AWS_IDENTITY_CENTER
example: AWS_IDENTITY_CENTER
type: string
x-enum-varnames:
- AWS_IDENTITY_CENTER
SecurityMonitoringIntegrationTypeCrowdStrike:
description: The source type for a CrowdStrike entity context sync.
enum:
Expand Down Expand Up @@ -261574,6 +261717,54 @@ paths:
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/configuration/integration_config/aws_identity_center/aws_accounts:
get:
description: |-
Get the integrated AWS accounts that the AWS IAM Identity Center entity context sync reads users from, and
whether users have been collected from them. Collected users are a prerequisite for creating or enabling the
AWS IAM Identity Center entity context sync configuration. The accounts include AWS Organization management
accounts and any accounts that users were collected from.
operationId: GetAWSIdentityCenterAWSAccounts
responses:
"200":
content:
application/json:
examples:
default:
value:
data:
attributes:
aws_accounts:
- account_config_id: 11111111-2222-3333-4444-555555555555
account_id: "111122223333"
account_name: management
collecting_users: false
resource_collection_enabled: true
has_valid_prerequisite: false
reason: AWS IAM Identity Center users collected from an AWS Organization management account are required
id: "123456"
type: aws_identity_center_aws_accounts
schema:
$ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse"
description: OK
"403":
$ref: "#/components/responses/NotAuthorizedResponse"
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- integrations_read
summary: Get AWS IAM Identity Center account prerequisites
tags: ["Security Monitoring"]
x-permission:
operator: OR
permissions:
- integrations_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/configuration/integration_config/entra_id/azure_app_registrations:
get:
description: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Get AWS IAM Identity Center account prerequisites 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.SecurityMonitoringAWSIdentityCenterAWSAccountsResponse;

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

try {
SecurityMonitoringAWSIdentityCenterAWSAccountsResponse result =
apiInstance.getAWSIdentityCenterAWSAccounts();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling SecurityMonitoringApi#getAWSIdentityCenterAWSAccounts");
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 @@ -1260,6 +1260,7 @@ public class ApiClient {
put("v2.disableSecurityFindingsAutomationDefaultInboxRule", false);
put("v2.enableSecurityFindingsAutomationDefaultInboxRule", false);
put("v2.exportSecurityMonitoringTerraformResource", false);
put("v2.getAWSIdentityCenterAWSAccounts", false);
put("v2.getContentPacksStates", false);
put("v2.getEntityContext", false);
put("v2.getEntityContextRecentlyUpdated", false);
Expand Down
Loading
Loading