---
title: "POST /detector/{detectorId}/freeTrial/daysRemaining"
method: POST
path: "/detector/{detectorId}/freeTrial/daysRemaining"
---

# POST /detector/{detectorId}/freeTrial/daysRemaining

`POST /detector/{detectorId}/freeTrial/daysRemaining`

Provides the number of days left for each data source used in the free trial period.

## Path parameters

- `detectorId` string, required

## Request body

- object
  - `accountIds` AccountId[] — A list of account identifiers of the GuardDuty member account.

## Response `200`

Success

- GetRemainingFreeTrialDaysResponse
  - `Accounts` AccountFreeTrialInfo[] — The member accounts which were included in a request and were processed successfully.
    - `AccountId` string — The account identifier of the GuardDuty member account.
    - `DataSources` object — Describes the data source enabled for the GuardDuty member account.This parameter is deprecated, use Features instead
      - `CloudTrail` object — Describes whether any Amazon Web Services CloudTrail management event logs are enabled as data sources.
        - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
      - `DnsLogs` object — Describes whether any DNS logs are enabled as data sources.
        - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
      - `FlowLogs` object — Describes whether any VPC Flow logs are enabled as data sources.
        - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
      - `S3Logs` object — Describes whether any S3 data event logs are enabled as data sources.
        - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
      - `Kubernetes` object — Describes whether any Kubernetes logs are enabled as data sources.
        - `AuditLogs` object — Describes whether Kubernetes audit logs are enabled as a data source.
          - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
      - `MalwareProtection` object — Describes whether Malware Protection is enabled as a data source.
        - `ScanEc2InstanceWithFindings` object — Describes whether Malware Protection for EC2 instances with findings is enabled as a data source.
          - `FreeTrialDaysRemaining` integer — A value that specifies the number of days left to use each enabled data source.
    - `Features` FreeTrialFeatureConfigurationResult[] — A list of features enabled for the GuardDuty account.
      - `Name` 'FLOW_LOGS' | 'CLOUD_TRAIL' | 'DNS_LOGS' | 'S3_DATA_EVENTS' | 'EKS_AUDIT_LOGS' | 'EBS_MALWARE_PROTECTION' | 'RDS_LOGIN_EVENTS' | 'EKS_RUNTIME_MONITORING' | 'LAMBDA_NETWORK_LOGS' — The name of the feature for which the free trial is configured.
      - `FreeTrialDaysRemaining` integer — The number of the remaining free trial days for the feature.
  - `UnprocessedAccounts` UnprocessedAccount[] — The member account that was included in a request but for which the request could not be processed.
    - `AccountId` string, required — The Amazon Web Services account ID.
    - `Result` string, required — A reason why the account hasn't been processed.

## Other responses

- `480` — BadRequestException
- `481` — InternalServerErrorException

---

[API](https://skmtc.net/aws/apis/guardduty.md) · [All operations](https://skmtc.net/aws/apis/guardduty/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/guardduty/versions/d35ef49b25a3/schema)
