---
title: "Get scripts"
method: GET
path: "/organizations/{organization_id}/scripts"
tags: ["Scripts"]
---

# Get scripts

`GET /organizations/{organization_id}/scripts`

## Request

- Base URL: `//apis.druva.com/awsnative` (relative, and the document’s source URL is not known)
- URL: `//apis.druva.com/awsnative/organizations/{organization_id}/scripts`
- Auth: API key in header `Authorization`

Get scripts imported within an organization

## Path parameters

- `organization_id` string, required

## Response `200`

200 response

- GetOrganizationsScriptsResponse
  - `total` integer
  - `hits` object
    - `model` object
      - `id` integer
      - `organization_id` string
      - `name` string
      - `region` string
      - `type` string
      - `owner` string
      - `description` string
      - `usage` string
      - `use_latest_version` boolean
      - `cached_id` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `deletedAt` string
      - `accounts` object[]
        - `script_id` integer
        - `account_id` string
        - `scriptId` integer
      - `rules` object[]
        - `regions` string[]
        - `id` integer
        - `script_id` integer
        - `rule_type` string
        - `execution_type` string
        - `all_regions` boolean
        - `all_accounts` boolean
        - `createdAt` string, date-time
        - `updatedAt` string, date-time
        - `resources` object[]
          - `rule_id` integer
          - `resource_id` string
          - `resource_name` string
          - `account_id` string
          - `type` string
          - `region` string
          - `ruleId` integer
        - `tags` string[]
        - `accounts` object[]
          - `rule_id` integer
          - `account_id` string
          - `ruleId` integer
    - `id` integer
    - `organization_id` string
    - `name` string
    - `type` string
    - `owner` string
    - `region` string
    - `description` string
    - `cachedId` string
    - `usage` string
    - `useLatestVersion` boolean
    - `accounts` object[]
      - `model` object
        - `script_id` integer
        - `account_id` string
        - `scriptId` integer
      - `script_id` integer
      - `account_id` string
    - `rules` object[]
      - `model` object
        - `regions` string[]
        - `id` integer
        - `script_id` integer
        - `rule_type` string
        - `execution_type` string
        - `all_regions` boolean
        - `all_accounts` boolean
        - `createdAt` string, date-time
        - `updatedAt` string, date-time
        - `resources` object[]
          - `rule_id` integer
          - `resource_id` string
          - `resource_name` string
          - `account_id` string
          - `type` string
          - `region` string
          - `ruleId` integer
        - `tags` string[]
        - `accounts` object[]
          - `rule_id` integer
          - `account_id` string
          - `ruleId` integer
      - `id` integer
      - `script_id` integer
      - `rule_type` string
      - `execution_type` string
      - `all_accounts` boolean
      - `all_regions` boolean
      - `regions` string[]
      - `resources` object[]
        - `model` object
          - `rule_id` integer
          - `resource_id` string
          - `resource_name` string
          - `account_id` string
          - `type` string
          - `region` string
          - `ruleId` integer
        - `rule_id` integer
        - `resource_id` string
        - `account_id` string
        - `type` string
        - `region` string
        - `resource_name` string
      - `tags` string[]
      - `accounts` object[]
        - `model` object
          - `rule_id` integer
          - `account_id` string
          - `ruleId` integer
        - `rule_id` integer
        - `account_id` string

## Other responses

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

---

[API](https://skmtc.dev/druva/apis/aws-native.md) - [All operations](https://skmtc.dev/druva/apis/aws-native/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/aws-native/revisions/6dd34c53e5f5?raw)
