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

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

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

Retrieve an action for a policy.

## Path parameters

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

## Response `200`

- 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)
