---
title: "Generate a CloudRanger report"
method: POST
path: "/organizations/{organization_id}/reports"
tags: ["Reports"]
---

# Generate a CloudRanger report

`POST /organizations/{organization_id}/reports`

Generate a CloudRanger report. This will initiate a report. To check if the report has finished generating perform a GET call using the report_id returned in the response from this request and check if the status is 'complete'.

## Path parameters

- `organization_id` string, required

## Request body

- PostOrganizationsReportsRequest
  - `report_template_id` string
  - `parameters` object
    - `date_range` object
      - `start_time` string, date-time
      - `stop_time` string, date-time
    - `dr_plans` object
      - `values` integer[]
      - `all` boolean
    - `backup_policies` object
      - `values` integer[]
      - `all` boolean
    - `schedules` object
      - `values` integer[]
      - `all` boolean
  - `all_accounts` boolean
  - `accounts` object[]
    - `account_id` string
  - `format` 'pdf' | 'csv'
  - `timezone` string
  - `s3_key` string
  - `s3_bucket` string
  - `size_in_bytes` integer
  - `created_by` string
  - `created_at` string, date-time
  - `status` string

## Response `200`

200 response

- PostOrganizationsReportsResponse
  - `id` integer
  - `organization_id` string
  - `report_template_id` string
  - `format` string
  - `s3_bucket` string
  - `s3_key` string
  - `size_in_bytes` integer
  - `parameters` object
    - `date_range` object
      - `start_time` string, date-time
      - `stop_time` string, date-time
    - `dr_plans` object
      - `values` integer[]
  - `timezone` string
  - `status` string
  - `accounts` object[]
    - `model` object
      - `report_id` integer
      - `account_id` string
    - `report_id` integer
    - `account_id` string
  - `created_by` string
  - `created_at` string, date-time

## Other responses

- `201` — 201 response
- `401` — 401 response
- `403` — 403 response
- `404` — 404 response

---

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