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

# Generate a CloudRanger report

`POST /organizations/{organization_id}/reports`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/reports`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

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

## Response `200`

200 response

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

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
