---
title: "GET /workspaces/{workspace}/policies/{policy}/actions/"
method: GET
path: "/workspaces/{workspace}/policies/{policy}/actions/"
tags: ["workspaces"]
---

# GET /workspaces/{workspace}/policies/{policy}/actions/

`GET /workspaces/{workspace}/policies/{policy}/actions/`

List all actions for the policy.

## Path parameters

- `policy` string, required
- `workspace` string, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

- PaginatedPolicyActionList
  - `results` PolicyAction[], required
    - union
      - SetPackageStatePolicyActionTyped
        - `action_type` string, required
        - `precedence` integer — The order in which this action occurs relative to other actions for the same policy.
        - `slug_perm` string, required — The Action identifier.
        - `created_at` string, date-time, required — The date and time the policy was created.
        - `updated_at` string, date-time, required — The date and time the policy was updated.
        - `effect` string, required
        - `package_state` 'AVAILABLE' | 'DELETED' | 'QUARANTINED' | 'HIDDEN', required — * `AVAILABLE` - The package is available for download. * `DELETED` - The package is deleted. * `QUARANTINED` - The package is quarantined. * `HIDDEN` - The package is hidden.
      - AddPackageTagsPolicyActionTyped
        - `action_type` string, required
        - `precedence` integer — The order in which this action occurs relative to other actions for the same policy.
        - `slug_perm` string, required — The Action identifier.
        - `created_at` string, date-time, required — The date and time the policy was created.
        - `updated_at` string, date-time, required — The date and time the policy was updated.
        - `effect` string, required
        - `tags` string[], required
      - RemovePackageTagsPolicyActionTyped
        - `action_type` string, required
        - `precedence` integer — The order in which this action occurs relative to other actions for the same policy.
        - `slug_perm` string, required — The Action identifier.
        - `created_at` string, date-time, required — The date and time the policy was created.
        - `updated_at` string, date-time, required — The date and time the policy was updated.
        - `effect` string, required
        - `tags` string[], required

---

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