---
title: "Get all S3 data forwarding rules."
method: GET
path: "/v1/logsDataForwarding/rules"
tags: ["logsDataForwardingManagement"]
---

# Get all S3 data forwarding rules.

`GET /v1/logsDataForwarding/rules`

Get a list of all S3 data forwarding rules.

## Query parameters

- `limit` integer
- `token` string

## Response `200`

List of all S3 data forwarding rules.

- GetRulesAndBucketsResult
  - `data` RuleAndBucketDetail[] — List of S3 data forwarding rules.
    - `indexId` string, required — The `id` of the Partition or Scheduled View the rule applies to.
    - `destinationId` string, required — The data forwarding destination id.
    - `enabled` boolean — True when the data forwarding rule is enabled.
    - `fileFormat` string — Specify the path prefix to a directory in the S3 bucket and how to format the file name.
    - `payloadSchema` string — Schema for the payload. Default value of the payload schema is "allFields" for scheduled view, and "builtInFields" for partition. "raw" payloadSchema should be used in conjunction with "text" format and vice-versa.
    - `format` string — Format of the payload. Default format will be "csv". "text" format should be used in conjunction with "raw" payloadSchema and vice-versa.
    - `createdAt` string, date-time, required — Creation timestamp in UTC in [RFC3339](https://tools.ietf.org/html/rfc3339) format.
    - `createdBy` string, required — Identifier of the user who created the resource.
    - `modifiedAt` string, date-time, required — Last modification timestamp in UTC.
    - `modifiedBy` string, required — Identifier of the user who last modified the resource.
    - `id` string — The unique identifier of the data forwarding rule.
    - `bucket` LogsDataForwardingRuleManagement
  - `nextToken` string — Next continuation token.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/revisions/18a824df1e78/schema)
